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