Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Auto music arriving home......
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Auto music arriving home......
7th Aug, 2013, 10:58 PM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
Auto music arriving home......
Hi.

I had a thought that it would be nice to have music playing as soon as I walk throught the door.

Thinking on this it would be simple to add a small transmitter to the door that sends a signal to the pi when it's opened. Then, the pi could run a python script to turn on the amp via a small relay board. This is all fairly simple.

But, how would you make a script to (for example) load an audio plugin (tunein radio) and select the station and volume you want to play?

I just think it would be cool to be welcomed home like this every day!

Or am I mad? Wink

Skywatch
Find all posts by this user
Quote this message in a reply
7th Aug, 2013, 11:41 PM
Post: #2
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: Auto music arriving home......
you r just crazy an having a lot of spare time.
Imagine you came home than your music plays. than you start watching movie and than your missus came through same door so the movie stops and music plays again, than your kids and music plays again, than you go to empty a bin and music plays again,....
To me, crazy idea...
more simple solution would be to add NFC tagg programed to play stream direct to any XBMC at home when you you place your Phone on specific place where the tag would be Wink
much easier what you say Wink
Cool

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 12:17 AM
Post: #3
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: Auto music arriving home......
Maybe even easier to install the Xbmc remote app on your Android or !phone and as soon as you are within WiFi range of your house, you can start music, play TV or see what the Kids are watching in your absence (Hmm maybe not a good idea :-) )

However, as RK mentions, you do have too much time on your hands!! how about helping out with some testing :-)

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 12:50 AM
Post: #4
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: Auto music arriving home......
(8th Aug, 2013 12:17 AM)IriDium Wrote:  Maybe even easier to install the Xbmc remote app on your Android or !phone and as soon as you are within WiFi range of your house, you can start music, play TV or see what the Kids are watching in your absence (Hmm maybe not a good idea :-) )

However, as RK mentions, you do have too much time on your hands!! how about helping out with some testing :-)
your idea would work too(thats what I thought first) but requires and human interaction with screen and most of the time you came home from work and you tired so you just want to relax and chill. As most the people empty the things like car keys, wallet and mobile phone, they also place those on same spot always - somewhere close to door or kitchen,dining table etc
So and here comes the NFC tagg Smile once phone is close (the usual place for it after work Smile ) all turns on as magic and by that time you throw all your clothes and you lying down to your bellowed sofa and start listening you favorite music Smile
Cool

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 01:32 AM
Post: #5
Fred Offline
Registered
Posts: 321
Joined: Apr 2013
Reputation: 36
RE: Auto music arriving home......
This would be so awesome.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 01:33 AM
Post: #6
f1vefour Offline
Administrator
******
Posts: 1,335
Joined: Mar 2013
Reputation: 58
Re: Auto music arriving home......
If you have an Android phone the best way to accomplish your task is with Tasker, your RPi would need to have remote ssh access.

List of needed things:
Android phone.
Tasker for Android (Llama may work).
ssh binary for Android (I could provide this if you need it)
Remote access to your Pi over ssh

You could use NFC tags but may still need Tasker.

I would create a location specific profile that runs a command over ssh when you get close to home, it's really quite easy with this method assuming you have an Android phone. (I will help if you need it)

Or an even easier way is remote access to XBMC, then you could simply send the proper json commands over http.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 01:39 AM
Post: #7
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: Auto music arriving home......
just program the NFC tag to start Yatse and play from music files, nothing else is needed, except the wifi on phone needs to be on Smile

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 01:55 AM
Post: #8
f1vefour Offline
Administrator
******
Posts: 1,335
Joined: Mar 2013
Reputation: 58
Re: RE: Auto music arriving home......
(8th Aug, 2013 01:39 AM)rikardo1979 Wrote:  just program the NFC tag to start Yatse and play from music files, nothing else is needed, except the wifi on phone needs to be on Smile

He wants to first launch a music plugin, Yatse has an API but you can't simply access it.

How can you make Yatse play music with an NFC tag? I have NFC tags and NFC Task Launcher.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 02:01 AM
Post: #9
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: Auto music arriving home......
(8th Aug, 2013 01:55 AM)f1vefour Wrote:  
(8th Aug, 2013 01:39 AM)rikardo1979 Wrote:  just program the NFC tag to start Yatse and play from music files, nothing else is needed, except the wifi on phone needs to be on Smile

He wants to first launch a music plugin, Yatse has an API but you can't simply access it.
you can access addons actually Wink

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 05:07 PM
Post: #10
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto music arriving home......
Wow!

Thanks for all the input, I didn't expect you all would be interested Wink

Having thought about it I have a simple workable solution.

Leave the pi playing radio station of choice. Have a relay turning the power to the amp off and set a door opening detector (or button remote) to turn on the amp again when entering. Easy and the pi's low power makes it a green soltion too.

I suppose you could also detect when the phone/tablet logs into the wi-fi (ie when in range) and use that to turn on the amp again.

Both options are simple, no messing with phone/tablet in the rain or juggling the shopping etc...

There will be a 'one shot' detector so that I can 'arm' the system to auto play on leaving the house so that only the first opening of the door will trigger a music event. Subsequent door openings will not trigger unless set to do so in the software.

Thanks for sharing all your thoughts and highlighting areas of concern.

Now once this is up and running I have another plan......

Skywatch
Find all posts by this user
Quote this message in a reply
8th Aug, 2013, 07:53 PM
Post: #11
brantje Offline
Tester
Posts: 305
Joined: Dec 2012
Reputation: 32
RE: Auto music arriving home......
(8th Aug, 2013 05:07 PM)Skywatch Wrote:  Wow!

Thanks for all the input, I didn't expect you all would be interested Wink

Having thought about it I have a simple workable solution.

Leave the pi playing radio station of choice. Have a relay turning the power to the amp off and set a door opening detector (or button remote) to turn on the amp again when entering. Easy and the pi's low power makes it a green soltion too.

I suppose you could also detect when the phone/tablet logs into the wi-fi (ie when in range) and use that to turn on the amp again.

Both options are simple, no messing with phone/tablet in the rain or juggling the shopping etc...

There will be a 'one shot' detector so that I can 'arm' the system to auto play on leaving the house so that only the first opening of the door will trigger a music event. Subsequent door openings will not trigger unless set to do so in the software.

Thanks for sharing all your thoughts and highlighting areas of concern.

Now once this is up and running I have another plan......

Skywatch
What i have is an cron job, that executes every minute to check if i'm away.
If i'm away (aka mobile phone not found on network), then the security system is activated.

XBian Skin Beta Testing
Clock Screensaver

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 29th Mar, 2023, 05:51 PM Powered By MyBB, © 2002-2023 MyBB Group.