This is a demo of an iPhone app I’ve been working on to control the Pandora playing on your desktop.
Set the mood with some Barry White before you walk in the door.
Thumbs up/down a song from the couch or anywhere in the world.
See what song is playing without getting up and squinting at the monitor.
Blast the speakers off the deck and pause or turn it down with your iPhone when you hear the cops rolling up.
Using C# I wrote a socket server that coupled with the ASyncSocket library for the iPhone, allowed me to create the Pandora control part of my home-automation app. Here’s a demo video I made for a member of iphonedevsdk.com.
This uses windows APIs to first focus and bring to the front the Pandora One Adobe Air standalone client, then it will grab an image of the screen and Pandora’s coordinates to crop it down to show me what’s going on in the window. Then I chop up the full screenshot and grab the album art send it to the phone and then strip out areas I know contain text and assemble them into a new image that only contains text. Then I run OCR on the image, using the Microsoft Office Document Imaging library, and viola, String objects for the song name, artist, song position, length, etc. I then use pixels colors to determine if it’s on the right screen (stations/playing) and if it’s playing or thumbed up. Note that this will stop working if Pandora changes their UI/colors and the app would need to be updated. I may release source if I can clean up my obj-c and there is interest.
It works great with Pandora v2.0.1 and I use it daily, but I still have lot’s more to do in other areas of the app. I’ll be posting more as it nears completion.
hi.. nice project..
currently, i did a project about controlling remote control car using iphone. I am stuck in applying asyncsocket into iphone app to send signal through TCP socket port 1000. I would like to send to arduino which act as server.
can you help me about how to start? any simple tutorial since i am new in xcode. thanks a lot..
Hi Chanda,
Thanks for your comment! You can email me at phil.harlow [at] gmail if you still need some help!
This is great! Did you ever release it to the App Store? I would love to have this for my home stereo setup.
Thanks!
Hi Nilay,
Thanks for the comment! 🙂 I never got around to polishing this up for the app store, but I will be looking at that project again soon and will let you know if I get it clean enough to go live!
Thanks!
Any updates or release on your code?
I don’t plan to release my code but I do hope to get it into the app store somewhat soon. I will keep this blog updated with any progress.
Hey Brady, were you interested in the OCR code, or more the end functionality? If you’re going to functionality, I have posted the code for a google chrome plugin here: https://philsprojects.wordpress.com/2014/03/10/pandora-controlling-google-chrome-plugin/
Hey Phil,
Good job, your pandora one iPhone controller is exactly what I’m looking for, I really hope you make it in to the app store, I’ll be the first to buy your app!
Hi Jimmy, unfortunately I don’t think I’ll be pursuing the app store route. I’ve since written a google chrome plugin to allow much more control over pandora http://snipt.org/MaOc8. I have it wired into my app with a socket connection, but you could control it with a socket connection straight from the idevice.
Typically I do not read post on blogs, even so I wish to say that this write-up really forced me to take a look at and do so! Your writing taste has been amazed me. Thanks, very excellent post.
Nike Shox Junior pink italy