Welcome to the IoT Weather Station! A project realized in the course ”Internet Of Things” at Aarhus University in 2023. This Markdown document will guide you through the setup and usage of the weather station system.
Before starting, ensure that you have the following components connected:
- Raspberry Pi
- SensorHat
- Clone the source code repository for the IoT Weather Station by running the following command:
$ git clone https://github.com/Gitgutgait/IoT-Weather-Station.git
- Navigate to the project directory on your Raspberry Pi.
$ cd IoT-Weather-Station
- Install the necessary Python libraries by running the following command:
$ pip3 install Flask==2.3.2 paho-mqtt==1.6.1 sense-hat==2.4.0
To run the IoT Weather Station project, follow the steps below:
- In the project directory, navigate to the WeatherStation directory and execute the following command:
$ python3 controller.py
- In the same project directory, navigate to the WebServer directory and run the following command:
$ python3 webApp.py
- Open a web browser and visit the following address: http://127.0.0.1:5001/
- To view the data format or directly retrieve data, go to http://127.0.0.1:5001/fetch_data
- The average temperature will first appear after the 10th iteration of data fetch.
- Please note that the temperature displayed might not indicate the precise current temperature in the room. This discrepancy is due to the sensors being placed closely to the Raspberry Pi, which can generate heat and provide inaccurate readings.