ESPWatch With Weather

Supplies:

Makerfabs

Step 1: Hardware Assembly

The ESPWatch may be a kit for customer assembling, users should firstly solder all the components. A hand tool and a few Tin wires are needed.There the detailed soldering guide at youtube.

Step 2: Setup Arduino IDE

Install the IDE and all the related drivers and Start the IDE, there would be a simple sketch by default.

Step 3: Add the ESP8266 Core Into Arduino IDE

Start Arduino and open Preferences window, and enter
And then you should find the ESP8266 in the Arduino IDE: Tools->board-> boards manager, let’s install it by click the “install”:

After the installing, you can find the NodeMCU 1.0(ESP12E module) platform at Tools-> Board Menu:

Step 4: Install Related Library

There at least these libraries need to be installed:
Arduino-mqtt
Thingpulse ESP8266 OLED SSD1306
TimeLib
ESP8266 Weather Station
JSON Streaming Parser by Daniel Eichhorn
We can seach “ntpclient”,”lwmqtt”, ” ESP8266 OLED Driver for SSD1306 display”,”timekeeping”,“ESP8266 Weather Station”, ”JSON Streaming Parser” to seek out these libraries in library manager, and install them.


Open the sketch->include library->manage libraries

Step 5: MQTT Register for Time

1. Log-in the cloudMQTT(if no, you need to register an Account)
2. And Create a new instance
3. And then here you can get the instance info:

Step 6: Weather Forecasting

We use the thingpulse(https://docs.thingpulse.com/how-tos/openweathermap-key/) to urge the weather forcasting data, the ultimate data from openweathermap (https://openweathermap.org/price).

Let’s use the free data.

After regestering, you’ll get your API key , And you’ll also check your city ID at the web site https

Step 7: Hardware Connection

Connect the ESPwatch to PC with PL2303 UART wire, the drivers at:
After driver installed , it will act as a COMM port.
Connect the PL2303 wire to ESPwatch programming port:

Step 8: Programming

Open the watch.ino sketches:

1. Change SSID and passowrd of the Wi-Fi, 2. Modify hostname, port, user and user_password for MQTT, 3. and therefore the weather_map_ID and Location_ID;

2. we will now update the codes to ESPWatch now. Select the proper COM prt and board in Arduino IDE.

3. Hold the FLASH button; Power on the ESP8266 by the SW1, while the FLASH button holding on, to place ESP8226 into bootloader mode ,and click the upload to start out the programming:

Step 9: *Premuim* ESPWatch Remote Control

The ESPwatch can be also use to control other modules, such as the ESP relay:
and thus to make remote application, like AC lamp/Fans.
1. Create a replacement MQTT instance,Log-in the cloudMQTT(if no, you would like to register an Account), and make a replacement instance。

2. Sketch Modification. Open the sketches relay.ino, change SSID and passowrd of the Wi-Fi, and modify hostname, port, user and user_password for MQTT.

Noted: port must same because the watch.

3. Programming. Plug the ESP-01 on the ESP8266 debugger, and programming the ESP module, Select the proper board to start the programming


And now you’ll connect the Relay to your AC lamp/Fan,etc, to form it remote controlled by the ESPWatch.

USB Charger

Wine Glass Shelf