Thank you for your donation!


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


Problem: Detect state changes
#3
(02-05-2021, 03:17 PM)TheOldPresbyope Wrote: @steven4build 

If you are using only the MPD renderer then you have a chance. If you are using alternative renderers which are separate from MPD, such as Bluetooth (in), Airplay, Spotify, UPnP, etc., then many state changes will be difficult or impossible to detect.

As a start, have a look at the moOde code for the LCD update engine (configured via System Config) and also at the MPD Protocol documentation about querying MPD's status, e.g, the idle command.

Regards,
Kent
Thanks Kent for the quick response!

Hmm... interesting, well I was already wondering why I cannot for example skip a track when my phone was connected via bluetooth or UPnP (haven't tried Airplay or Spotify yet).
It would already be pretty awesome if I could get the currently active source and volume. How does the UI know whats going on, since that is everything i need to know.

Mabye the LCD update engine that you mentioned, I will have a look at that!

Also you've mentioned the Music Player Daemon (MPD), I will look into that aswell, I didn't even knew what it was until you've mentioned it, thanks!

I came across the 'worker.php' file. Allot of the connectivity and state stuff seems to be happening here (quote me if i'm wrong Wink ), is it a good idea to edit that file so at cerain actions it will call a python script? or is there another way?

Regards,
Steven
Reply


Messages In This Thread
Detect state changes - by steven4build - 02-05-2021, 02:55 PM
RE: Detect state changes - by TheOldPresbyope - 02-05-2021, 03:17 PM
RE: Detect state changes - by steven4build - 02-05-2021, 06:29 PM
RE: Detect state changes - by TheOldPresbyope - 02-05-2021, 09:51 PM
RE: Detect state changes - by Tim Curtis - 02-05-2021, 10:04 PM
RE: Detect state changes - by steven4build - 02-07-2021, 11:56 AM
RE: Detect state changes - by bitlab - 02-06-2021, 07:49 PM
RE: Detect state changes - by steven4build - 02-07-2021, 11:58 AM
RE: Detect state changes - by steven4build - 02-10-2021, 06:27 PM
RE: Detect state changes - by Tim Curtis - 02-10-2021, 08:10 PM
RE: Detect state changes - by hindumagic - 02-11-2021, 02:18 AM
RE: Detect state changes - by Tim Curtis - 02-11-2021, 03:26 AM
RE: Detect state changes - by hindumagic - 02-11-2021, 06:28 AM

Forum Jump: