Skip to content

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

License

Notifications You must be signed in to change notification settings

agargiulo/alsaRemoteControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alsaRemoteControl

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

Build/deploy from source

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

Install official builds

Static binaries are available for the default branch of this repo and all tagged builds at releases.agarg.me

https://releases.agarg.me/alsaRemoteControl/arm-<GOARM>/alsaRemoteControl-arm-<GOARM>-<REF>.xz
GOOS GOARCH GOARM
Linux arm 6

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 specified value

About

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

Topics

Resources

License

Stars

Watchers

Forks