ESP8266(NodeMCU) Weather Station
by 513696765 in Circuits > Wireless
7291 Views, 72 Favorites, 0 Comments
ESP8266(NodeMCU) Weather Station
![运行效果.jpg](/proxy/?url=https://content.instructables.com/FT0/CQUK/IZYGB49N/FT0CQUKIZYGB49N.jpg&filename=运行效果.jpg)
Use ESP8266_RTOS_SDK-1.4.x CJson Resolution Weather Web Json Data and Display on the OLED12864,the code include ESP8266 SmartConfig function can use SmartPhone APP connect to WiFi
Schematic Diagram
![电路.bmp](/proxy/?url=https://content.instructables.com/FIM/K230/IZYGD74E/FIMK230IZYGD74E.bmp&filename=电路.bmp)
![硬件.jpg](/proxy/?url=https://content.instructables.com/FPW/FA7M/IZYGB3TC/FPWFA7MIZYGB3TC.jpg&filename=硬件.jpg)
use NodeMCU and OLED JLX12864G-222-PN
Software : Oracle VM VirtualBox + SDK + ESP8266_lubuntu
![开发环境.bmp](/proxy/?url=https://content.instructables.com/F6J/OAQC/IZYGB34O/F6JOAQCIZYGB34O.bmp&filename=开发环境.bmp)
Development environment to build, please go to the http://pan.baidu.com/s/1jIcwHSi to download
Install Virtual Box
![VirtualBox.bmp](/proxy/?url=https://content.instructables.com/F8Q/LUQX/IZYGB2H0/F8QLUQXIZYGB2H0.bmp&filename=VirtualBox.bmp)
install Virtual Box
Oracle VM VirtualBox Import the Official Development Environment
![导入虚拟电脑.bmp](/proxy/?url=https://content.instructables.com/FX2/74I2/IZYGB2WS/FX274I2IZYGB2WS.bmp&filename=导入虚拟电脑.bmp)
![导入开发环境.bmp](/proxy/?url=https://content.instructables.com/FH2/JSXJ/IZYGB2MQ/FH2JSXJIZYGB2MQ.bmp&filename=导入开发环境.bmp)
![导入开发环境Next.bmp](/proxy/?url=https://content.instructables.com/FMO/1MPS/IZYGB2OG/FMO1MPSIZYGB2OG.bmp&filename=导入开发环境Next.bmp)
![导入开发环境安装.bmp](/proxy/?url=https://content.instructables.com/FT7/9178/IZYGB2RL/FT79178IZYGB2RL.bmp&filename=导入开发环境安装.bmp)
Oracle VM VirtualBox Import the official development environment
Set Up the Shared Directory
![设置共享文件夹.bmp](/proxy/?url=https://content.instructables.com/F3N/3ZZX/IZYGB3BW/F3N3ZZXIZYGB3BW.bmp&filename=设置共享文件夹.bmp)
Set up the Shared directory
Apply for APIkey
![气象网站API申请.bmp](/proxy/?url=https://content.instructables.com/FSH/N7OI/IZYGB398/FSHN7OIIZYGB398.bmp&filename=气象网站API申请.bmp)
![浏览器天气数据.bmp](/proxy/?url=https://content.instructables.com/FVF/FW02/IZYGB35Q/FVFFW02IZYGB35Q.bmp&filename=浏览器天气数据.bmp)
Need from the http://www.openweathermap.com/ apply for APIkey
Compile the Program Code
![代码中加入Key.bmp](/proxy/?url=https://content.instructables.com/FOR/BHHY/IZYGB2KF/FORBHHYIZYGB2KF.bmp&filename=代码中加入Key.bmp)
![进入共享文件夹.bmp](/proxy/?url=https://content.instructables.com/FZX/K4OW/IZYGB320/FZXK4OWIZYGB320.bmp&filename=进入共享文件夹.bmp)
![编译.bmp](/proxy/?url=https://content.instructables.com/FQ0/UJCC/IZYGB2H3/FQ0UJCCIZYGB2H3.bmp&filename=编译.bmp)
![放置SDK文件.bmp](/proxy/?url=https://content.instructables.com/FM0/7HRV/IZYGB2YY/FM07HRVIZYGB2YY.bmp&filename=放置SDK文件.bmp)
![编译成功.bmp](/proxy/?url=https://content.instructables.com/FX1/GIDO/IZYGB2HV/FX1GIDOIZYGB2HV.bmp&filename=编译成功.bmp)
Compile the program code,If you want to get this https://github.com/hxy513696765/ESP8266-Weather-Station
to download code channels
Download the Firmware
![导入烧录文件.bmp](/proxy/?url=https://content.instructables.com/F84/CTMD/IZYGB2V1/F84CTMDIZYGB2V1.bmp&filename=导入烧录文件.bmp)
![串口com口选择.bmp](/proxy/?url=https://content.instructables.com/FNK/0QUG/IZYGB2IV/FNK0QUGIZYGB2IV.bmp&filename=串口com口选择.bmp)
Download the firmware
Config NodeMCU Connect the Wifi
![模块wifi连接.png](/proxy/?url=https://content.instructables.com/FGC/EVBI/IZYGB36P/FGCEVBIIZYGB36P.png&filename=模块wifi连接.png)
![IMG_20161018_174543.jpg](/proxy/?url=https://content.instructables.com/FP0/3659/IZYGB2GZ/FP03659IZYGB2GZ.jpg&filename=IMG_20161018_174543.jpg)
Config NodeMCU connect the wifi press the button for 20s to enter Smartconfig mode。
The Final Result
![硬件.jpg](/proxy/?url=https://content.instructables.com/FVQ/WT4K/IZYGDFZ0/FVQWT4KIZYGDFZ0.jpg&filename=硬件.jpg)
![运行效果.jpg](/proxy/?url=https://content.instructables.com/F80/4Y91/IZYGDFSF/F804Y91IZYGDFSF.jpg&filename=运行效果.jpg)
Demo video http://v.youku.com/v_show/id_XMTYwOTQyODE5Ng==.html?firsttime=6
http://player.youku.com/player.php/sid/XMTYwOTQyODE5Ng==/v.swf