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.


Solved: Hardware Button to select next streaming radio channel
#1
Greetings from BC, Canada!

Here is what I am trying to accomplish:

- have the player start playing a streaming station taken from a list of favorite stations that I can manage via the web interface.
- use a GPIO button to select the 'next' streaming station in the playlist.
- when I get to the end of the playlist, I want the next button push to select the first station again.

I have been able to open my Favourites folder, manually add a number of stations to the queue, and use the 'next track' button on the GUI to select the next streaming station. One issue is that when I press next track enough times, I get to the end of the queue and I cannot get back to the first station in the queue.

My ultimate goal would be to have a playlist automatically added to the queue on startup, or reloaded when a hardware button is pressed if possible.

Could anyone point me in the right direction?

I know a bit of Python - enough to be dangerous, but the way.

Cheers,
Brian
Reply


Messages In This Thread
Hardware Button to select next streaming radio channel - by cvmakerspace - 02-11-2022, 07:18 PM

Forum Jump: