Weather Station – The software

Hi guys!

Last time I explained a bit about the weather station.
Now I would like to try to explain its features and how the various components interact with each other in a little more detail, so more articles on this topic will follow (doing just one would be too long).

Let’s start with the digital part: the software.

WeatherStation.php

As already mentioned in the last article as a programming language I chose PHP for the code behind and css with html for the graphical interface. I could have used many other languages to create it but personally I think this was the quickest choice.

The software is a web application that runs on Raspberry Pi 4 and simply retrieves the pressure, temperature and humidity values that are detected by the sensors from the database and then shows them on the screen organized in multiple pages.
The reading of the sensors is instead done through a script in Python which also takes care of storing them in a DB (we will talk about this in more detail in another article).

For the database I used MySQL. There is no precise reason behind this choice, except that I use it often (also in other projects) and I already had an installed instance ready to be used… therefore, I opted for the MySQL + phpMyAdmin combination. 😁

Graphically, the software is divided into 3 screens: homepage, realtime and graphs.

Homepage

Questa immagine ha l'attributo alt vuoto; il nome del file è Schermata-da-2020-06-26-00-48-05-1.png

On the homepage there is the main menu with all the functions that the software must have once completed (my goal is to create a home automation program and not just a weather station).

The top bar is fixed and is present in all screens:

Questa immagine ha l'attributo alt vuoto; il nome del file è immagine.png

It shows the date, time and current temperature.

Let’s see the menù icons in detail.

This is the weather station icon. By clicking on it you go to the screen that shows the realtime data detected by the sensors.

Icon that leads to the home temperature control screen (air conditioning) once the structure of the home automation program has been implemented.

This will be the icon that will show on the home alarm control screen.

Icon that will lead to the access control screen of the house and then the control of the door locks.

This will be the icon of the light control screen and smart sockets in general.

I know there is still a free space in the menù and it will probably be occupied by the control of the window shutters but… I’ll think about it! 😁

Now let’s get to the heart of the project, don’t miss the next article!!