Introduction: Online Weather Display Using OpenWeatherMap
As a follow up to the first DIY project (Room Thermometer), we write a sketch that communicates with an online weather service (OpenWeatherMap) which provides the weather data for just about any city. We use this information to display the temperature, humidity and weather conditions to an OLED module.
BONUS: We also talk to the TeamTrees website and obtain the live tree count as an example to talk to webservers that do not provide a JSON response.
Step 1: Watch the Video
Since this project requires you to set up and obtain an API key along with other tasks, I would recommend you watch the video to get an understanding of how it all flows together. The video also breaks down the sketch to make it easier to understand.
Step 2: Download & Update the Sketch
The video covers this topic step-by-step but you need to obtain the API key from the OpenWeatherMap website in order to access the weather information. Once that is done, download the sketch and update it and don't forget to update your city details.
Link To Sketch: https://github.com/bnbe-club/online-weather-display-diy-4
Step 3: Wire Up the OLED Module & Upload
Simply wire up the OLED module to the Nano 33 IoT board and upload the sketch.
Step 4: Bonus: Obtaining the Live Tree Count
The video covers the logic behind this, but you simply need to download the sketch, add your WiFi network credentials and upload it to your board. There is no need to obtain an API key for this sketch.
Link to the sketch: https://github.com/bnbe-club/online-weather-display-diy-4
Step 5: Share It With the World
Don't forget to share this with us and the world by tagging us on social media. Also, don't forget to subscribe to our channel to watch more videos and leave future build ideas while you're at it :) Here are some relevant links in case you would like to learn more about us. Thank you for your support!
- YouTube: https://www.youtube.com/channel/UCbWiK1A5RqAugSquB...
- BnBe Website: https://www.bitsnblobs.com/
- Instagram: https://www.instagram.com/bnbe.club/
- Facebook: https://www.facebook.com/BnBe.club
- Twitter: https://twitter.com/bnbe_club