Personal Weather Station on Cloud

With a smartphone and an internet connection, it is possible to get the weather status of any locality. But a personal weather station can tell exactly what is happening at my house. I decided to build a cloud-based weather station so that I can monitor the microclimate of my home from anywhere.

The station uses a BMP180 atmospheric pressure sensor and a DHT11 temperature and humidity sensor. These sensors are connected to a NodeMCU module using I2C and Single-wire serial protocol. These modules have their custom libraries in the Arduino IDE and are very easy to use.

NodeMCU reads the sensors at a few-minute interval and sends the data encoded as a JSON string to my personal website. On the website, a script decodes the JSON data after due authentication and saves it into a SQLite database.

There is a reporting script that shows the past few days’ weather data on my personal website. You can see it at https://www.soumyanath.in/weather/

The IoT weather station is kept in a foam box. Foam does not block the wifi radio signals and offers good weather protection. I added an extra layer of foam sheet to prevent direct sun rays from falling on the box.

oplus_262176
This entry was posted in automation, Electronics, Hobby, web technology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *