Text-based player for Nightride FM synthwave radio.
In this screenshot I am running the player on cool-retro-term to give it a bit more retro flavour.
The player should work on the terminal emulator of your choice however.
NightrideAPI.py
Handles communication with the web audio stream and audio player.
Radio.py
Text interface for radio. Handles user input and communicates that to the API.
AudioPlayer.py
Handles audio player functionality using VLC
settings.ini
Various settings for the player
RGB1602.py
Controller for optional Waveshare RGB1602 LCD module.
Developed to work on Linux. I might add support for different operating systems later :)
-
Install dependencies:
sudo apt update && sudo apt install vlc pip3 install python-vlc sseclient-py urllib3
-
Run Radio.py:
python3 Radio.py
Press F1 to pop up a little info screen.
Press F2 to open station selector.
Use arrow keys UP and DOWN to choose station, and press ENTER to confirm selection.
Stations can also be changed using numbers 1 through 9 on the main screen.
Press PLUS or MINUS to change volume.
Press F12 to quit.
Press v to enable/disable the mock VU-meter.
You might want to set your terminal window to 52 colums by 10 rows, as that is the aspect ratio to fit the player perfectly.