web-yamaha

command module
v0.0.0-...-ea680b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL