Thank you for your donation!


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


How to get current playing radio station with from cli or api
#2
The Queue position of the previously played item (song or radio station) is stored in a SQL column. You can play it via MPC command. See example below.

Code:
# Assume item 43 is currently playing item and item 37 was previously played item,

pi@rp1:~ $ moodeutl -q "select value from cfg_system where param='toggle_songid'"
37

pi@rp1:~ $ mpc play 37
Mission Control: Celebrating NASA and space explorers everywhere. [SomaFM]: LAD - Inertia
[playing] #37/48   0:00/0:00 (0%)
volume: 15%   repeat: off   random: off   single: off   consume: off

pi@rp1:~ $ moodeutl -q "select value from cfg_system where param='toggle_songid'"
43
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: How to get current playing radio station with from cli or api - by Tim Curtis - 04-27-2021, 09:31 PM

Forum Jump: