Skip to content

mkjones/spotnado

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why?

I got tired of having to come inside to change the song that was on Spotify, modify the volume, etc. I couldn't find any good iphone apps to do this for me, so I wrote this thing that runs as a webapp you can access from your iphone.

How?

The main file runs on the same machine as Spotify, and basically just receives web requests, executes applescript that does the actions you tell it, queries information from Spotify, etc, then renders HTML for an iphone.

At first I tried writing it in PHP and just running on Apache, but doing that means that whatever applescript you execute runs as the Apache user, which (rightfully) doesn't have permissions to touch Spotify. So instead I wrote it with Tornado in Python.

How to use

  1. Install Tornado (http://www.tornadoweb.org/) and Imagemagick (http://www.imagemagick.org).
  2. Start up Spotify.
  3. Run python spotnado.py
  4. Hit http://a.mkjon.es:9999 from your iphone or browser

About

A Tornado webserver for controlling Spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages