Skip to content

A ruby script to control your mac's iTunes via MQTT. Your friends at the hackerspace will love it :)

Notifications You must be signed in to change notification settings

DevLoL/iTunesMQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

A ruby script to control your mac's iTunes via MQTT. Your friends at the hackerspace will love it :)

Installation:

iTunesMQTT has been developed on a recent OSX with ruby 2.2. Only library required is mqtt which you can install as follows:

$ gem install mqtt

Copy iTunesMQTT.rb into you bin directory and run whenever you want to loose control over your iTunes.

You will have to change the SERVER and BASE variables in the ruby file to match your mqtt server.

Besides controls, it also output the trackinfo when a new song starts playing.

Webinterface

This version also ships with a small webinterface for conveniently remote control your iTunes, which looks like this

Commands supported

BASE/control pause
BASE/control toggle
BASE/control next
BASE/control previous

BASE/volume up
BASE/volume down
BASE/volume 42

BASE/play Title of a track

BASE/current
  will send the current artist and track to BASE/playing

Output only paths:

BASE/playing
  output for /current and the automatic updater

BASE/status
  outputs the version on startup

About

A ruby script to control your mac's iTunes via MQTT. Your friends at the hackerspace will love it :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published