Skip to content
Code of my Raspberry Pi Weather Station. It uses 18D20 temperature sensor, DHT11 humidity sensor and BMP085 air pressure sensor. It gets live weather date from and uses a REST PHP Interface to store this data into a web hosted MySQL Database.
Branch: master
Clone or download
Latest commit fe41afb Jun 1, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information. Readme update Jun 1, 2019
database.sql add all needed scrips Jun 1, 2019 add all needed scrips Jun 1, 2019

Raspberry Pi Weather Station

This Source Code is used to get sensor data from

  • DS18B20 temperature sensor
  • DHT11 humitity sensor
  • BMP085 air pressure sensor from connected sensors on your Raspberry Pi.

The script also gets live data from and send it as JSON to a web hosted database.

api.php is used as REST interface endpoint to get this data and store it into a MySQL database.

database.sql contains CREATE statement for single table to store sensor data.

All details about hardware and software for this project can be found on my blog:

You can’t perform that action at this time.