Hi - please don't yell if I am posting a query that has been answered before. I have searched the forum but was not able to spot this.
I am designing a simple rpi radio system on top of moode. I will use web access to maintain it but I want an ultra simplified mechanical control and display setup on the box, just three controls: hardware: power toggle switch to Rpi, Rotary Encoder 1 and Rotary Encoder 2. small hdmi screen (waveshare). iqaudio dac pro.
I plan to control the hdmi panel by just displaying a simple php website full screen on it. The display will only have the name of the station, a few nearby stations in the list of all favorite stations, the image thumbnail representing the station (typically a square image), and the volume level. The web page is reloaded whenever events happen on the REs.
Rotary Encoder 1: volume up/down and the pushbutton controls mute.
Rotary Encoder 2: station selector (rotate left or right to select previous or next station in favorites list; cyclic, like a drum-type dial), the button returns control to the station selector in case moode is e.g. playing something else like airplay or a file.
I have a script to read the changes in REs. I was able to call the shell script vol.sh to change the volume from within my script, so RE1 is working.
The station selector should choose from among the Moode favorites list of radio stations.
I need the following four things to complete my project:
1. A way to determine the sequential list of all favorite radio stations. I am sure this is in a database somewhere but I am not well versed in sqlite commands and operation and I don't know how to access the info.
2. Determine the index in that list of the current playing station.
3. For the current selected station, obtain the url of the station, the short name of the station (e.g. BBC3, KQED, FIP, Radio Paradise Mellow), the file name (unix path) of the thumbnail (cover art) for the station
4. Switch playback to a specified entry in the list of favorite radio stations, e.g. the 5th station in the favorites list
I am not able to achieve this using mpc calls as far as I can tell.
To achieve these things, I can use python or php or shell scripts, whatever suits.
Thank you for any assistance!
I am designing a simple rpi radio system on top of moode. I will use web access to maintain it but I want an ultra simplified mechanical control and display setup on the box, just three controls: hardware: power toggle switch to Rpi, Rotary Encoder 1 and Rotary Encoder 2. small hdmi screen (waveshare). iqaudio dac pro.
I plan to control the hdmi panel by just displaying a simple php website full screen on it. The display will only have the name of the station, a few nearby stations in the list of all favorite stations, the image thumbnail representing the station (typically a square image), and the volume level. The web page is reloaded whenever events happen on the REs.
Rotary Encoder 1: volume up/down and the pushbutton controls mute.
Rotary Encoder 2: station selector (rotate left or right to select previous or next station in favorites list; cyclic, like a drum-type dial), the button returns control to the station selector in case moode is e.g. playing something else like airplay or a file.
I have a script to read the changes in REs. I was able to call the shell script vol.sh to change the volume from within my script, so RE1 is working.
The station selector should choose from among the Moode favorites list of radio stations.
I need the following four things to complete my project:
1. A way to determine the sequential list of all favorite radio stations. I am sure this is in a database somewhere but I am not well versed in sqlite commands and operation and I don't know how to access the info.
2. Determine the index in that list of the current playing station.
3. For the current selected station, obtain the url of the station, the short name of the station (e.g. BBC3, KQED, FIP, Radio Paradise Mellow), the file name (unix path) of the thumbnail (cover art) for the station
4. Switch playback to a specified entry in the list of favorite radio stations, e.g. the 5th station in the favorites list
I am not able to achieve this using mpc calls as far as I can tell.
To achieve these things, I can use python or php or shell scripts, whatever suits.
Thank you for any assistance!