AaronRobson / web-yamaha

A web based app for controlling a Yamaha amplifier using the Extended Control API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web-yamaha

Build Status

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

Format code

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

About

A web based app for controlling a Yamaha amplifier using the Extended Control API.

License:GNU General Public License v3.0


Languages

Language:Go 83.7%Language:HTML 14.1%Language:Makefile 2.2%