Melon – Multimedia- & Entertainment Linking and Operation Node – is a daemon that allows linking media devices (e.g. Sonos, Televisions) and operating them through one API
- WiFi
- A Raspberry Pi Zero W / A / A+ / B / B + with an LIRCd-compatible IrDA transmitter
- Raspbian on its microSD card
- A GitHub account
On your Raspberry:
$ aptitude install python3 python3-pip python3-dev python3-spidev
$ pip3 install gunicorn falcon ujson tinydb
$ # For controlling Samsung TVs:
$ pip3 install samsungctl
$ # For controlling Sonos speakers:
$ pip3 install soco
$ # For controlling Philips Hue:
$ pip3 install phue
$ # For controlling anything IrDA related:
$ pip3 install py_irsend
$ cd /opt
$ git clone https://github.com/mrusme/melon.git
$ ln -s /opt/melon/init.d/melon /etc/init.d/melon
$ update-rc.d melon defaults
Melon will now be run automatically every time your Raspberry starts.
$ cd melon/
$ ./melon.sh
You can change the port by creating a file named /etc/melon
and adding the following content to it:
export PORT=1337
The init.d-script will look for the file and in case it was found source it.
PORT=1337 ./melon.sh
TODO
Sure, tell me!