remotely control iTunes over Wi-Fi using Ruby.
alternatively you can also 💥 shake 💥 your smartphone to change song (just don't do it with your laptop)
Check Gemfile
to see all dependencies required or just run:
bundle install
this app also requires cowsay and lolcat:
$ gem install lolcat
$ brew install cowsay
and you are ready to go.
Download this repo or clone it. Run the app with the following command:
$ ruby app.rb
now open the web browser on your device and type the ip address of the server followed by port 4567
; you can check your ip address with ifconfig
command and look for inet
address on interface en1
. After that you should see the web app asking for the secret pin generated randomly on the terminal like so:
Copy it into the login page and once you've clicked on Verify you should be able to control iTunes with your smartphone.
Here's an example of how to set up rubomote server.
If you want to get lyrics when you're listening to a song, simply add your client access token from genius.com to rubomote_config.json
. Once the token is stored inside rubomote configuration file you'll be able to get the lyrics of the current song played by clicking the green button under the volume bar, see the picture displayed before.
I've also written a command line tool to download lyrics from genius.com, check this out!
- OS X Mavericks
- OS X Yosemite
- OS X El Capitan
- macOS Sierra
Unfortunately this app currently works only on Macs due to itunes-client library which uses AppleScript scripts to control iTunes.