This project tries to predict the solar radiation based on temperature, humidity and the actual solar radiation.
The system is composed of two elements: the node and the server
- Raspberry Pi 2 model B with a Linux distribution (we use Raspbian)
- 1 Led
- 1 DHT22 to measure temperature and humidity
- Piranometer (we don't have it integrated in the project yet)
The wiring is described in node/node_setup.txt
In the Raspberry pi we need
- paho-mqtt:
pip install paho-mqtt
- Place the folder node in our Raspberry Pi
- Change the variables brokerIp, brokerPort, topic, ubication in solar_node.py
- Execute node/solar_node.py
- thingspeak account
- Mosquitto
- Python 2.7
- Pandas to manage csv files
sudo pip install pandas
- Paho MQTT to create the listener of the MQTT server
sudo pip install paho-mqtt
- Place the folder server in your server.
- Change the variables brokerIp, brokerPort, topic and thingspeakKey in solar_node.py
- execute
mosquitto
- execute server/main.py