Thank you for your donation!


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


Problem: Displayed volume not updated when using triggerhappy
#1
Greetings!

TriggerHappy successfully updates the output volume (and I can hear the action).

However the volume display on the web page is never updated.

What else do I need to know ;-) ?

Regards,

PS: here is a sample output from the triggerhappy daemon

musical@moOde:~ $ sudo systemctl status triggerhappy
● triggerhappy.service - triggerhappy global hotkey daemon
     Loaded: loaded (/lib/systemd/system/triggerhappy.service; enabled; preset: enabled)
     Active: active (running) since Tue 2025-05-06 12:32:34 EDT; 55min ago
TriggeredBy: ● triggerhappy.socket
   Main PID: 8352 (thd)
      Tasks: 1 (limit: 9574)
        CPU: 136ms
     CGroup: /system.slice/triggerhappy.service
             └─8352 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --dev>
 
May 06 12:36:45 moOde thd[8352]: Executing trigger action: /usr/bin/mpc stop
May 06 12:36:45 moOde thd[10738]: volume: 85%   repeat: off   random: off   single: off   consume: off
May 06 12:39:17 moOde thd[8352]: Executing trigger action: /usr/bin/mpc toggle
May 06 12:39:17 moOde thd[11387]: http://listen.jazz88.org/ksds.mp3
May 06 12:39:17 moOde thd[11387]: [playing] #8/31   0:00/0:00 (0%)
May 06 12:39:17 moOde thd[11387]: volume: 85%   repeat: off   random: off   single: off   consume: off
May 06 13:28:16 moOde thd[8352]: Executing trigger action: /usr/bin/mpc volume +5
May 06 13:28:16 moOde thd[20567]: http://listen.jazz88.org/ksds.mp3
May 06 13:28:16 moOde thd[20567]: [playing] #8/31  48:59/0:00 (0%)
May 06 13:28:16 moOde thd[20567]: volume: 90%   repeat: off   random: off   single: off   consume: off
musical@moOde:~ $
Reply
#2
Have a look at the default triggerhappy conf file
https://github.com/moode-player/moode/bl...media.conf
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Hello Tim,

Perhaps you did not read the triggerhappy log in the original post: triggerhappy is reporting volume decrease/increase properly. It is the main display that is not updated.

As noted before, I can hear the volume going up or down.

For the record, here is my OSMCRemoteControl.conf triggerhappy configuration:
Code:
KEY_MINUS 1 /usr/bin/mpc volume -5
KEY_EQUAL 1 /usr/bin/mpc volume +5
KEY_PLAYPAUSE 1 /usr/bin/mpc toggle
KEY_STOP 1 /usr/bin/mpc stop
KEY_BACK 1 /usr/bin/mpc clear; /usr/bin/mpc load “Default Playlist”
KEY_C 1 /usr/bin/mpc playlist
# KEY_DOWN      1       command
# KEY_UP        1       command
KEY_LEFT  1 /usr/bin/mpc prev
KEY_RIGHT 1 /usr/bin/mpc next
# KEY_ESC       1       command
# KEY_I 1       command
# KEY_ENTER     1       command
Reply
#4
You need to use the vol.sh command if you want the volume knob in the WebUI updated. An example is in the default media.conf file that posted earlier.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Great!

Thank you for your patience ;-).
Reply


Forum Jump: