Hi all, newbie to the forums but have been using Volumio 1.x for ages & just upgraded to 2.0 RC1.
I wanted to improve the volume control so that I can hook in a hardware rotary encoder, currently if I change the volume via alsamixer behind volumio’s back, then the UI just blats the volume with whatever is in the UI’s current state.
There’s a couple of ways of achieving this & wondered if anyone had a preference:
Update the CoreVolumeController to poll the alsa mixer, pushing changes out to the UI if the volume changes behind it’s back .
Add support for hardware encoders into volumio itself using something like pi-gpio.
I’m kinda new to node, but have been using angular for a year or so daily, so I’m sure I can muddle my way through
Polling Alsa for changes will be quite a unefficient method… What is more easy to do, is just send a signal to volumio core to update the volume… And you can do that easily:
You have the ws client github.com/volumio/Volumio2/blo … sclient.js .
Just call it from whenever you want, and send as a parameter volume 30 (to set volume to 30) .
Let me know how it goes