The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


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


Problem: how do I know what moode is doing?
#1
Lightbulb 
Dear all

I am enjoying moode a lot - now I want to go a step further and get the system more integrated into my home automation.

I am looking to a neat way to know at any point in time what moode audio is doing, i.e.
  • idle: MPD/airplay/spotify/etc mode with status "stop"
  • play: as above, but with the status "play"
Now, in case of MPD is active, I just need to send a GET request to http://moode/engine-mpd.php and parse the JSON output, e.g.

Quote:State: play
Volume: 0
File: http://psn1.prostreaming.net:8095/stream

However, I cannot figure out how to obtain a similar output when I stream through Airplay or Spotify. While I am aware of the limited information when using the other streaming options. I would love to have at least

Quote:State: play (possible?)
Volume: 0
File: http://psn1.prostreaming.net:8095/stream

I think there is http://moode/audioinfo.php providing some of the information but it is not JSON compatible, so I will need different parsing strategies depending from the service (doable but not preferred Dodgy )

Any other suggestion or could you point me to some docs?

DISCLAIMER: I am not a web programmer, I am sure that interactions done through http://moode/ could be done with GET/POST requests, but how?

Thanks
Max
Reply


Messages In This Thread
how do I know what moode is doing? - by didomax - 03-27-2021, 09:40 PM
RE: how do I know what moode is doing? - by adrii - 03-28-2021, 10:03 AM
RE: how do I know what moode is doing? - by adrii - 03-28-2021, 10:19 AM

Forum Jump: