web-yamaha
A web based app for controlling a Yamaha amplifier using the Extended Control API.
Prerequisites
sudo apt update
sudo apt install golang golint
make install
Recommend this be run before committing:
make format
Check and Test
make
Check
Run golint
.
make check
Test
make test
Run
make run
Open http://localhost:8080/
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