The weewx-mqtt project provides a straightforward driver that enables Weewx to ingest MQTT messages. This solution simplifies the integration of various devices, including ESP32 sensors, allowing for efficient data collection and monitoring. It offers users an easy way to manage weather data through MQTT, enhancing their Weewx experience.
weewx-mqtt is a robust adapter for integrating Weewx with MQTT messaging, enabling seamless data ingestion from various ESP32 devices. This project simplifies the process of subscribing to MQTT messages, making it easier for users to collect and analyze environmental data from IoT devices.
The following is a sample packet that demonstrates the format of the received data:
{
"time":"2025-04-06 04:43:04",
"model":"ESP32s",
"sequence_num":0,
"temperature_C":13.77,
"temperature_F":56.79,
"id":"66838BA28DCC",
"pressure_hPa":982.12,
"pressure_inHg":29.00191,
"altitude_m":262.4896,
"altitude_ft":861.1863
}
To set up the MQTT driver, the following configuration file (mqtt.conf) can be used:
[MQTTDriver]
host = mqtt.lan.kroy.io
topic = rtl_433/analog/events
poll_interval = 5
driver = user.mqtt_driver
usUnits = weewx.METRICWX # Incoming data is in metric units
[ModelMappings]
[[ESP32s]]
# Target ESP32s with id 66838BA28DCC
pressure = pressure_hPa.ESP32s.66838BA28DCC # Pressure in hPa
altitude = altitude_m.ESP32s.66838BA28DCC # Altitude in m
This configuration allows users to specify the MQTT host, topic, and unit options for the incoming data, thereby tailoring the settings to their specific requirements.
The weewx-mqtt driver enhances the capabilities of Weewx by providing a straightforward method to gather data from MQTT sources, making it an essential tool for users looking to expand their meteorological data collection efforts.
No comments yet.
Sign in to be the first to comment.