Skip to content

paneee/RaspbianWebRadio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaspbianWebRadio

Raspbian Web Radio is a web application created in Flask technology using mpc player (minimalist command line interface to MPD). Originally run on the rasbian system on the rasberry platform.

Commissioning

git clone https://github.com/paneee/RaspbianWebRadio.git
cd RaspbianWebRadio
python3 app.py

Dependencies

flask
flask-bootstrap4
flask_restful
flask_cors

Usage

Listenable radio stations are in the model.py file in the WebRadio dictionary variable, you can add more... In the example the server runs on a raspberry pi 3. (ip 192.168.1.50 port 5000)

Web page

2021-09-23_150724

Web API - Available commands

Returns all possible stations.

192.168.1.50:5000/api/getAllStation

Returns the current volume.

192.168.1.50:5000/api/getVolume

Increases the volume by 15%. To decrease, enter the argument -15.

192.168.1.50:5000/api/setVolume/+15

Sets volume to 40.

192.168.1.50:5000/api/setVolume/40

Sets the station being played back to RNS. List of available stations in the file radio.py.

192.168.1.50:5000/api/Play/RNS

Stop playing a station.

192.168.1.50:5000/api/Stop

Speaker On / Off.

192.168.1.50:5000/api/speakerOnOff/

Speaker volume UP.

192.168.1.50:5000/api/speakerVolumeUP/

Speaker volume DOWN.

192.168.1.50:5000/api/speakerVolumeDOWN/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published