Thank you for your donation!


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


Does the moode palyer have some kind of status page?
#3
Awesome, it looks like in this section:


Code:
       # Wake local display on play
       MULTIROOM_TX=$(sqlite3 $SQLDB "SELECT value FROM cfg_system WHERE param='multiroom_tx'")
       if [[ $MULTIROOM_TX = "On" ]]; then
               DUMMY_HW_PARAMS=$(cat /proc/asound/card2/pcm0p/sub0/hw_params)
               if [[ $DUMMY_HW_PARAMS = "closed" ]]; then
                       MSG="Info: Multiroom sender is not transmitting"
               else
                       MSG="Info: Multiroom sender is transmitting"
                       wake_display
               fi
       else
               LOCAL_CARD_NUM=$(sqlite3 $SQLDB "SELECT value FROM cfg_mpd WHERE param='device'")
               LOCAL_HW_PARAMS=$(cat /proc/asound/card$LOCAL_CARD_NUM/pcm0p/sub0/hw_params)
               if [[ $LOCAL_HW_PARAMS = "closed" || $LOCAL_HW_PARAMS = "" ]]; then
                       MSG="Info: Local audio output is closed or audio device is disconnected"
               else
                       MSG="Info: Local audio output is active"
                       wake_display                                                                                                        
               fi
       fi

I only need to add a trigger to my webhook via say curl to the else section right behind "wake_display"  
I'll report back here once I have tested it. Thanks for the pointer.
Listening with the latest moOde on a RPI zero w with a MiniBoss DAC PCM5122 32bit 384kHz and a Volt+ AMP on a pair of Monitor Audio Bronze 100 speakers.

pi@moody:~ $ moodeutl -m 
CPU: 1.0 GHz, LOAD: 35% 47C | MEM: 63% used | DISK: 39% used, 4.1G free | PHP: 7 workers
Reply


Messages In This Thread
RE: Does the moode palyer have some kind of status page? - by ovizii - 06-06-2024, 12:42 PM

Forum Jump: