Piclodio: Raspberry Pi Alarm Clock Radio
Web agency » Digital news » Piclodio: Raspberry Pi Alarm Clock Radio

Piclodio: Raspberry Pi Alarm Clock Radio

New version of Piclodio available!
Piclodio is a web application to transform the Raspberry Pi into an internet clock radio. I had done an article for the first version there at one point. Obviously, you can install the application on any nunux machine as long as it supports the Django framework. The following commands will however only work on a Debian basis.

So why a new version would you ask me? Well for several reasons:

  • Using a framework (Django). As a user, we don't care, but for a developer it is important. This will allow the application to evolve, to maintain it and above all to have a clean base for other people to bring their lots of features into the code.
  • New interface. The old one looked good on a smartphone but was not very suitable for PC type terminals.
  • Better performance. Switching from PHP to Python. Rpi love python.
  • New features. Possibility to set several alarm clocks, choose the day, stop the alarm clock automatically and manage several web radios

The code is open and available on Github. Don't hesitate to fork and pull-request your improvements. You can also just comment on your ideas in this article. Here is a small preview of the interface

 

 

 

 

 

 

 

 

 

 

 

 

In short, let's move on to the installation!

Installation

Installing the Django framework

You can verify your installation with the following command. This should give you the version of Django.

Installation of the web server, the media player, the database and the python module to connect django to the web server.

The project uses a particular python module. This is python-crontab.

We are now retrieving Piclodio from Github. We install it in the web server directory and give the rights to this directory to the apache user.

We copy the configuration file for apache (vHost)

VHost activation

This last command line invites us to restart apache.

Finally, you must authorize the apache server to use the multimedia player. We type

and we add this line at the end of the file

And There you go! The application is available at the ip address of your Rpi via your browser.

If you want to set a specific url, you need to modify the vHost in the apache config file. For example if I want to contact the application via the url http: // address_ip_du_rpi / piclodio I will modify the configuration file as follows:

Restart apache to take this into account and it's good.

★ ★ ★ ★ ★