ESP32 UDP broadcast listener – get information from other sensors

In my home control project I have several ESP8266, Arduino Yun and Arduino Uno WiFi modules placed all around my house. They have different functions like motion detection, alarm system or remote light control. These devices announce their status as UDP broadcasts on my local WiFi network. Why using UDP broadcast instead of a point to point transfer? Because I want to have the status available on any phone, tablet or computer without the need of a central server, I

Read more

ESP32 UDP broadcaster to send information to other devices

As I want to have the basic data from my weather station available on other devices as well, the data is sent periodically as UDP broadcasts on the local WiFi network. As the status data of all my devices are “standardized” the broadcast message has to be in JSON object format like

where “de” is the device name, “wei” stands for weather internal “te” is the temperature “hu” is the humidity “hi” is the heat index “dp” is the

Read more

ESP32 HTTP GET – get weather condition from Weather Underground

Beside of local measured data, a weather station should as well display the current situation from a “professional” weather broadcaster. There are many API’s available from different online weather channels. I chose Weather Underground, because they offer a free account which is not as limited as e.g. Accuweather, which limits the number of accesses per day. The API of Weather Underground is well documented at their API website, they offer to get current conditions, forecasts and even satellite images. To

Read more

ESP32 MQTT client

So far the device is distributing the data within the local network. To make the information available on the ‘Internet‘, MQTT was chosen as the transportation protocol. I have a VPS rented at Contabo, which I can recommend, it is fast, reliable and cheap. I use this VPS for several purposes. It hosts this website, it runs an MySQL server that is used to store data collected from my solar panel and it runs as well a MQTT server. For

Read more

ESP32 OTA updates

Flashing new versions of your applications through the USB connection is convenient and fast during development time and as long as your module is on a breadboard and close to your PC. But once you have your project put into a casing and applied to the place it is supposed to be, it is getting inconvenient if you want to update your code. That’s where OTA comes in. It allows you to update your module code over your local WiFi.

Read more
Free Link Directory