Desktop Weather Station With WIFI
by Juncheng in Living > Life Hacks
5769 Views, 85 Favorites, 0 Comments
Desktop Weather Station With WIFI
![DSC07086.jpg](/proxy/?url=https://content.instructables.com/FX6/DZZ6/J9SVR1BQ/FX6DZZ6J9SVR1BQ.jpg&filename=DSC07086.jpg)
![IMG_8176.JPG](/proxy/?url=https://content.instructables.com/F5B/NXC5/J9SVR2MD/F5BNXC5J9SVR2MD.jpg&filename=IMG_8176.JPG)
Life is more than making a living. Life-Hacks and DIYs can make your days more enjoyable. By being a designer of your own house, you don't have to follow the latest fashion. For some time, simple changes make a big difference and can bring you great satisfaction. When tech, Open-source hardware and Design meet each other there would be amazing chemical reactions.
We have to be kind to every single day of our life. For this project, I made the shell like a cloud, which stands pure and lovely.
Components Lists
FireBeetle Board-ESP8266 WiFi [https://www.dfrobot.com/product-1634.html]
2.8" USB TFT Touch Display Screen [https://www.dfrobot.com/product-1062.html]
3.7V Polymer Lithium lon battery [https://www.dfrobot.com/product-437.html ]
Modeling
![1508305751(1).jpg](/proxy/?url=https://content.instructables.com/FZY/BO3U/J9SVQZQF/FZYBO3UJ9SVQZQF.jpg&filename=1508305751(1).jpg)
Product measurements is important for building an aethetic appearance.A caliper can save your time.
Loading Arduino Libraries
For beginners, you can either download libraries to local folder or make an automated install from the IDE nav bar.
libraries required:
Adafruit GFX Library
Adafruit ILI9341 Library
Adafruit STMPE610
WIFIManager for esp8266
JSON Streaming Paser
Wiring
![105136hxin6rf6qwx0giq0.png](/proxy/?url=https://content.instructables.com/FG7/HFD7/J9SVSL1I/FG7HFD7J9SVSL1I.png&filename=105136hxin6rf6qwx0giq0.png)
Api Key
![Screen Shot 2017-11-11 at 1.16.41 AM.png](/proxy/?url=https://content.instructables.com/FKF/8MEB/J9SVSL67/FKF8MEBJ9SVSL67.png&filename=Screen Shot 2017-11-11 at 1.16.41 AM.png)
![}$1GLEVYFF[7S}%226`Y$SV.png](/proxy/?url=https://content.instructables.com/F1S/JDJZ/J9SVQZFZ/F1SJDJZJ9SVQZFZ.png&filename=}$1GLEVYFF[7S}%226`Y$SV.png)
Wunderground API helped me with the weather data.
And it's free to create a new account for your email.
And you have to replace the default ones in setting.h file. It is very important that you remember that key.
Step5 Configure Setting
set your language ,country and city to show the correct weather report
check following code in setting.h
eg.
1. // Wunderground setting
2. const boolean IS_METRIC = false ;
3. const String WUNDERGRROUND_API_KEY = “api_key_here” ;
4. const String WUNDERGRROUND_LANGUAGE = “ZH” ;
5. const String WUNDERGROUND_COUNTRY = “China” ;
6. const String WUNDERGROUND_CITY = “shanghai” ;
Run the Project
![weather_join-esp-wifi.png](/proxy/?url=https://content.instructables.com/F86/3TKA/J9SVR2QB/F863TKAJ9SVR2QB.png&filename=weather_join-esp-wifi.png)
![weather_esp-wifi-select.png](/proxy/?url=https://content.instructables.com/F5V/M4ZA/J9SVR2PH/F5VM4ZAJ9SVR2PH.png&filename=weather_esp-wifi-select.png)
![weather_enter-ssid-psk.png](/proxy/?url=https://content.instructables.com/FQ2/X6MG/J9SVR2O5/FQ2X6MGJ9SVR2O5.png&filename=weather_enter-ssid-psk.png)
When you run the project for the first time, the screen would show you the instruction. Connect to the wifi of ESP8266 and configure wifi.
Sleep and Power Saving Mode
![DSC07085.jpg](/proxy/?url=https://content.instructables.com/FAO/B309/J9SVR17Y/FAOB309J9SVR17Y.jpg&filename=DSC07085.jpg)
![DSC07102.jpg](/proxy/?url=https://content.instructables.com/FVS/B54N/J9SVR2KL/FVSB54NJ9SVR2KL.jpg&filename=DSC07102.jpg)
The screen was set to enter sleep mode in 10 sec.And it would be wake up when you touch the screen.You can custom that period of time by applying changes to the code in weather_station_color.ino.
// for AWAKE_TIME seconds we'll hang out and wait for OTA(over the air) updates
for (uint16_t i=0; i
// Handle OTA update requests
ArduinoOTA.handle();
delay(10000);
yield();
}