Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: volume via rest api doesnt work with multiroom
#1
So I got a multiroom setup with 2 rpi, one is sender and one is receiver.

I connect a keyboard to the receiver rpi and use some trickery tricks to apply keyboard shortcut to 3 commands

one easy is "next" with 'mpc -h moode.local next'

then it gets tricky when I want to have volume up and volume down with each key press

I came to have something working with both command such :

curl -G "http://moode.local/command/index.php" -d "cmd=set_volume+up+5"
curl -G "http://moode.local/command/index.php" -d "cmd=set_volume+dn+5"

I can see the webUI changing volume accordingly when I press my keyboard but the 'real' volume doesnt change, until I click on webUI either + or - then it catches up with the volume accordingly.

(Oh and to complexify the setup, I also use the streaming url functionnality...if it interfere somehow)

Is this a normal behavior or a bug ? How can I get to control volume ?

Thanks
Reply
#2
I don't quite understand your usage scenario.

The Receiver option "Master volume" when ON allows the sender to control the volume of the Receiver.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
I ran a quick test and I can repro your issue.

I'll investigate.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
I know the usage scenario can be disturbing, but the receiver is near my amplifier and I want to be able to have basic control from the keyboard accessible near the amplifier. there is no interface whatsover on the receiver rpi just dac hat and rca to amp.

I have try to activate the "USB volume knob" option on sender but got not more luck, still I can see the volume change when I "curl" but it doesnt quite reflect on the receiver as it shall be...
Reply
#5
the rpi receiver is relying on the sender for its master volume so I dont want to mess with "local" volume but I need to query the sender REST API in order to have the correct volume applyed in receiver via multiroom sender.
Reply
#6
I'll add to the TODO list to update the REST API for volume control so that Receiver volume is also updated.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Thanks !
Reply
#8
Thanks for the fix !

Sadly my problem is not solved even after the latest update.
There is a tiny improvement tho.

The situation before the update was :

Volume is 25 in real sound and in UI
I send curl command to raise volume by 5 via API
Volume is still 25 in real sound and in UI
I click on UI + to raise volume, it raised to 31 directly in real sound and in UI.

What happen now after the latest update :

Volume is 25 in real sound and in UI
I send curl command to raise volume by 5 via API
Volume is now 30 in UI but the real sound as not been raised.
I click on UI + to raise volume, it raised to 31 in UI and in real sound.

is there any way I can help to solve this ?
Reply
#9
(09-18-2024, 08:36 AM)LeGuiz Wrote: Thanks for the fix !

Sadly my problem is not solved even after the latest update.
There is a tiny improvement tho.

The situation before the update was :

Volume is 25 in real sound and in UI
I send curl command to raise volume by 5 via API
Volume is still 25 in real sound and in UI
I click on UI + to raise volume, it raised to 31 directly in real sound and in UI.

What happen now after the latest update :

Volume is 25 in real sound and in UI
I send curl command to raise volume by 5 via API
Volume is now 30 in UI but the real sound as not been raised.
I click on UI + to raise volume, it raised to 31 in UI and in real sound.

is there any way I can help to solve this ?

Post the exact curl command you are sending and I'll have a look.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
here

curl -G "http://moode.local/command/index.php" -d "cmd=set_volume+up+2"
Reply


Forum Jump: