Thank you for your donation!


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


[Deprecated} Using the Flirc USB for remote control with mOde 5.4+
#60
@SoundAdikt

I'm not sure I understand your question. What does "in a Moode compliant way so that the Moode UI knows this is station is playing" mean?

Do you mean so that it displays the station name and logo? Then the URL you pass to mpc literally must be one that is already defined in the RADIO library (which means in a .pls file, in the collection of logo files, and in a corresponding entry in the moode-sqlite3.db database)

Let's take Zen FM as an example. Its entry in the moOde RADIO library  contains the stream URL http://lb.zenfm.be/zenfm.mp3

The following triplet of mpc commands clears the queue, adds the Zen FM URL as the first entry and starts the stream playing. The moOde UI shows the Zen FM logo, name, and misc stuff because of the info in the library.

Code:
mpc clear
mpc add http://lb.zenfm.be/zenfm.mp3
mpc play

Here's another URL to the Zen FM stream which I just found in the latest .m3u file from the station website: http://str.topradio.be:80/zenfm.mp3. This stream also can be added and played but no station logo or name is displayed. Name and other info may be displayed if the station includes metadata in its stream.

Regards,
Kent
Reply


Messages In This Thread
RE: Using the Flirc USB for remote control with mOde 5.4+ - by TheOldPresbyope - 07-04-2020, 12:16 PM

Forum Jump: