Esp8266 Weather Data Parser Openweathermap

455

2

Hello friends!

In this short instructable i would like to present my first Esp8266 project.

It is a weather data parser.

Step 1: Before We Begin

Back in a few weeks i was reading many articles about the Esp8266 and the weather data parsing,encoding, decoding and printing it to an LCD. So i decided to make my own minimal looking weather data parser with Nodemcu and i thought i share it.

Step 2: Openweathermap

The https://openweathermap.org/ is a relatively big and accurate weather forecast site. I have been using it for a time now. All my Android apps and esp8266 boards use the API keys provided by the site. I am using the free API key, but you can purchase more options if you are willing to pay some money for it.

The most interesting thing is, that you can generate multiple API keys with your account. This way you can use more IoT boards at the same time.

https://home.openweathermap.org/api_keys

Step 3: Materials

Parts needed:

- Esp8266 compatible board

- ILI9341 SPI TFT LCD

- F-F jumper wires

Step 4: Software

In order to make our weather station work we will need the included libraries and sketch.

I am providing the sketch and the library for the tft lcd that i have used.

Plus we will need the Openweathermap API key.

Step 5: Connections

The connections are the following:

TFT DC Digital 3

TFT CS Digital 8

TFT MOSI Digital 7

TFT SCK Digital 5

TFT RESET Reset or 3.3V

VCC - 3.3 Volts

GND - Ground

LED - 3.3 Volts

In the sketch don't change the pinout!!!!!

Step 6: Weather Station Running

OK! After assembling the hardware and uploading the sketch the Esp board is connecting to the internet and parsing the weather data.

What wee see:

- The first line indicates when the board is connected to the wifi network.

- Second line is showing the location according to the city ID.

- Third line is the weather description.

- Fourth line is the temperature and humidity.

- Fifth line is the barometric pressure.

- Sixth line is the wind speed in m/s.

- Below it is the Temperature min and max , wind angle in degrees.

- The visibility in meters

- And last the local IP Address

The esp8266 is connecting to the internet every 10 minutes to update the conditions.

Step 7: Done!

You are done.

Use it as you like :)

If you want to use a more advenced weather station pls take a look at the videos below.

Share

    Recommendations

    • Beauty Tips Contest

      Beauty Tips Contest
    • Paint Challenge

      Paint Challenge
    • Sew Tough Challenge

      Sew Tough Challenge

    Discussions