A web based app for controlling a Yamaha amplifier using the Extended Control API.
sudo apt update
sudo apt install golang golint
make install
Recommend this be run before committing:
make format
make
Run golint
.
make check
make test
make run
You may call it programmatically, for example:
curl -i http://localhost:8080/ping
Which ought to return the JSON true
.
Or more usefully:
curl -i -X POST --data '{"mute": "mute"}' --header 'Content-Type: application/json' http://localhost:8080/\$setMute
Or:
curl -i -X POST --data '{"volume": "down"}' --header 'Content-Type: application/json' http://localhost:8080/\$setVolume