Skip to content

Commit

Permalink
Added README
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Feb 12, 2022
1 parent 4b74542 commit 2fe8f01
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# PI Radio 🍇

![](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue) ![](https://img.shields.io/badge/Flask-000000?style=for-the-badge&logo=flask&logoColor=white)

With the goal to put my Raspberry Pi to use as a streaming stataion, I've created this general purpose project. Using
the `flask` library, the code in this project will start a small webserver that serves a main webpage. By using the
controls on this page, a user can select to play/pause an online audio stream and change the volumen. Because everything
is controlled through a webpage, that is hosted by the device running the code, any other device on the same network can
be used to control what is being played.

In my case, I have used this project to turn my Raspberry Pi into a device that is able to play my favorite online radio
streams. After hooking up my Raspberry Pi to a set of speakers in the garden, I can now listen to some music outdoors.
And the best thing of it all, I can easily control what is being played by using my smartphone!

## Try it yourself!

Before you start exploring the project, make sure the following prerequisites are installed on your machine/device:

* `mpc` [](https://www.musicpd.org/clients/mpc/) - This library is required to control the playback of online streams
and volume controls.
* Python

Using the `conf/stations.json`, you can configure a set of online streams to provide on the main webpage. The only thing
left for you to do is to start the `app.py` script and listen to your tunes 🎵🤘🤘
Binary file added screenshots/pi_radio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2fe8f01

Please sign in to comment.