Moode Forum
[How to do instruction] where can I derive information that GUI is up and running - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [How to do instruction] where can I derive information that GUI is up and running (/showthread.php?tid=3332)



where can I derive information that GUI is up and running - Wallyboy - 01-04-2021

I am devising a scheme where my lighted power button will flash during the boot process and go solid when the GUI is up and running.  Is there somewhere that I can extract this information and use it to control my GPIO output?  I originally thought of using the watchdog start as a trigger, but it seems that that is too early in the process.  Any suggestions?


RE: where can I derive information that GUI is up and running - Tim Curtis - 01-04-2021

Do you need to detect when a client is actually connected to moOde or do you need to detect when moOde startup processing is complete (client connections can be accepted)?


RE: where can I derive information that GUI is up and running - Wallyboy - 01-04-2021

(01-04-2021, 05:49 PM)Tim Curtis Wrote: Do you need to detect when a client is actually connected to moOde or do you need to detect when moOde startup processing is complete (client connections can be accepted)?

Thank you for responding Tim: Yes, I am trying to detect when MoOde is ready to accept connections.

Kent


RE: where can I derive information that GUI is up and running - Tim Curtis - 01-04-2021

Run the query below. If it returns '1' then startup has completed.

Code:
moodeutl -q "select value from cfg_system where param='wrkready'"



RE: where can I derive information that GUI is up and running - Wallyboy - 01-04-2021

(01-04-2021, 06:53 PM)Tim Curtis Wrote: Run the query below. If it returns '1' then startup has completed.

Code:
moodeutl -q "select value from cfg_system where param='wrkready'"

Thanks Tim:  Looks like that should work for me.

Kent