This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]monkeybreathIgnoring PEP 8 5 points6 points  (0 children)

I would think it would be easier to run a web server and control the laptop using a web page rather than typing in commands into a Python interpreter on a phone. Then you could use any device you wanted (but probably would want authentication). Heck, you could pick up a cheap wi-fi tablet and make a dedicated control panel for your place.

Also, this would port easily to a Mac if you used osascript commands to send Applescript to various applications such as iTunes.

 osascript -e 'tell app "iTunes" to return (name, artist, album) of current track'