A set of scripts to control an Itunes player on a Mac via Bluetooth Low Energy
controlled by a Raspberry Pi. The Raspberry Pi acts as remote-controlled 
remote controlled - it can pass the controlling functions via websocket or 
a small interactive webpage.
Author: Alexander Merz, am@golem.de

File: itunes_control.js

Must be copied on a MacOS platform. The script configures the Bluetooth device as 
peripheral and waits for incoming commands. Requires node.js.

Start via commandline:
node itunes_contral.js


File: ws_bt_server.js

Must be copied on the Raspberry Pi. The script configures an attached Bluetooth Low Energy 
dongle as central, setups a websocket server and also a simple HTTP webserver. 
Requires node.js

Start via commandline:
node ws_bt_server.js

The websocket ist available through port 8001:
ws://<the_raspberry_ip_or_localhost>:8000/local.html


Files: local.html and remote.html

Both webpages are available through the webserver provided by ws_bt_server.js:
http://<the_raspberry_ip_or_localhost>:8000/local.html
http://<the_raspberry_ip_or_localhost>:8000/remote.html

Both webpages acts as websocket client and offer the same functionality. The only 
difference is: local.html tries to access the websocket via "localhost", 
while remote.html must edited to match the IP of the Raspberry Pi in your network.



