sgreene570 / alsaRemoteControl

Control the volume on your alsa based audio systems remotely with a simple Go server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alsaRemoteControl

Control your alsa mixer based audio system from a simple web(api?)

Build/deploy

GOOS=linux GOARCH=arm go build .
scp alsaRemoteControl <rasp-pi_ip-or-domain>:

Running

With TLS

export ALSA_REMOTE_SSL_CERT=cert.pem ALSA_REMOTE_SSL_KEY=key.pem
./alsaRemoteControl [8443]

No TLS

./alsaRemoteControl [8080]
Notes

if no port is specified, it will run on port 12345.

API

None of this is a real REST API, just a heads up

Request Description
GET / Loads the index page, with buttons [TODO]
GET /volume Prints the current volume
GET /toggle Mute or Unmute the audio
GET /mute Mute the audio
GET /unmute Unmute the audio
GET /up Increase volume by 5%
GET /down Decrease volume by 5%
POST /volume/(0-100) Sets the volume to the speficied value

About

Control the volume on your alsa based audio systems remotely with a simple Go server

License:The Unlicense


Languages

Language:Go 98.5%Language:Shell 1.5%