Worked out iTunes interface

Forum about other Home automation topics which can not be categorized in any other forum. So this needs to be Home automation Domotica related! (otherwise use Off Topic)
Post Reply
richard naninck
Member
Member
Posts: 123
Joined: Sun Nov 21, 2010 9:53 pm

Worked out iTunes interface

Post by richard naninck »

I started playing with iPhones Airplay a while ago and installed the app Remote on my iPhone. I saw I was able to control an iTunes library through my iPhone while playing the music on my PC which is connected to my whole house audio system. Because I dislike iTunes running all the time I started playing with some options to automate stuff.

I took a packet sniffer and found that my iPhone sends packets on ip 224.0.0.251 & port 5353 to connect. My software now intercepts the unique iPhone code from these packets and tests if iTunes is already running. If not, it starts up on my server. If iTunes idles for more than 3 minutes (PlayerState = Stop) than iTunes quits again. All done using the iTunes COM object programmable through many languages. I use vbscript.

So now I am able to auto start and stop iTunes to get some internet radio going while sitting in the couch. But I also didn't want to get up to switch on the correct zone on my receiver. So I took an mp3 doorbell sound (about 5 seconds) and copied it 5 times naming the copies after my zones (Livingroom, kitchen etc) and tagged the Genre as Control Home. I loaded these 5 tracks into the iTunes database so I can play them through my iPhone. I use the search function and type in Control Home and all zones appear in the playlist. As soon as such a track is played, the script recognises the track name and genre and switches on the respective amplifier zone on a loud volume so the iPhone has a wide range of volume control.

In short: Whole house audio now automated using the iPhone, home automation scripts in HouseBot and iTunes on my server PC.

Maybe it inspires some of you. Have fun..
Last edited by richard naninck on Tue Nov 22, 2011 3:03 pm, edited 3 times in total.
User avatar
Phaeton
Advanced Member
Advanced Member
Posts: 573
Joined: Wed May 19, 2010 12:44 pm
Location: Wassenaar
Contact:

Post by Phaeton »

It does! What system do you use for speakers? Do you have speakercable/wires everywhere?
richard naninck
Member
Member
Posts: 123
Joined: Sun Nov 21, 2010 9:53 pm

Re: Worked out iTunes interface

Post by richard naninck »

Onkyo TX-NR5007 and Onkyo TX-NR5000e.
All B&W and Boston (wired) speakers.
1 x 9.2 zone (Boston)
1 x 5.1 zone (B&W)
3 x 2.0 zone (B&W)
3 x line out zone where LG TV produces the audio through internal speakers.

Much more flexible this way than Sonos ever was;)
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Re: Worked out iTunes interface

Post by Bwired »

Nice job, is on my todo list also, thanks for the work :)
Post Reply

Return to “Miscellaneous Home Automation topics”