ESP8266 Weather Station

ESP8266 color display weather gadget


This project demonstrates a simple weather station using an Wemos D1 Mini (ESP8266) and a 1.3" color display. The setup requires only two main components and a few SPI connections.


Parts required

1. Wemos D1 Mini board



AliExpress➡️ Buy Option 1 Buy Option 2

2. 1.3" Color TFT Display (ST7789 – 240×240)

AliExpress➡️ Buy Option 1 Buy Option 2

Circuit Diagram


Setup and code

Follow these steps to successfully upload the code without any error.

1.First download the arduino code from this drive link

2.Install ESP8266 board for Arduino IDE (Skip if already installed or follow this simple tutorial)

ESP8266 installing tutorial

3.Install libraries.

i. TFT_eSPI 

ii. NTPClient 

3: Edit pin definition from TFT_eSPI library (very important) and create your weather API
 I provided the setup guideline pdf drive link

If you face any problems you can email me with subject "esp8266 weather" to abid.business01@gmail.com

Comments

  1. Love this project. Took a little while to get going but I did. A couple of questions. Can the time be 24hr, am/pm? Can the temp be in Fahrenheit? I would assume both are API settings. Let me know. Thanks!

    ReplyDelete
    Replies
    1. Correction, Would like time in 12hr format with am/pm, Temp in Fahrenheit, and wind speed in mph.

      Delete
    2. I can provide you the updated code within 48hrs. Please send an email with the subject "esp8266 clock"

      Delete
    3. I searched the code and found the "Units" variable. Switched it to Imperial and changed the C to F on the temp and m/s to MPH on the wind speed.

      Delete

Post a Comment