My goal is to have my existing weather data (mostly from sensors connected to an esp8266), which are published to my mosquitto server and then send to my home automation system (openHAB) as input to weewx from where I would like to upload the data to weather underground.
Is this possible and if yes, how?
you'll have to write a driver to talk to the esp8266
you also might want to import existing data into weewx. for that, consider gary's wee_import utility. see this thread:
you'll have to write a driver to talk to the esp8266
Okay, then I was on the wrong track: I thought because my weather data is already published from the esp8266 to the mqtt broker (and from there into openHAB) I could simply use the weewx mqtt extension for inputting this data into weewx.
But it looks like the weewx mqtt extension is only able to output/publish data to the mqtt broker (I tried that and it works fine)
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
an mqtt driver that feeds weewx with data from any mqtt broker would useful for many use cases.
(1) publish each observation, e.g., /telemetry/outside_temperature with data 32.3
This is what WeeRT does.
This is what WeeRT does.
I'm only a weewx beginner, although I have read your wiki for WeeRT, I cannot bring in the context for my usecase, sorry.
--
Matthew and I have been working on a use case where an MQTT broker is used as a source for WeeRT.
Matthew and I have been working on a use case where an MQTT broker is used as a source for WeeRT.-tk
On Sun, Aug 7, 2016 at 8:21 AM, Siegfried H. <siegfried...@gmail.com> wrote:
This is what WeeRT does.
I'm only a weewx beginner, although I have read your wiki for WeeRT, I cannot bring in the context for my usecase, sorry.
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
I know this is an old thread, but did you guys ever get around to making a driver that subscribes to an mqtt server to get sensor data? My RFM69 sensors connect to a gateway which parses the data into my mqtt server, so now I'm looking for a way to get it into weewx.
Hi
Does your mqtt driver work?
Can anyone show me a example where to change settings in the config files ect.
I have installed weewx and mosquitto broker and client on my Pi.
This is the setting I have set in /etc/weewx/weewx.conf
loop_on_init=true
station_type = wxMesh
[wxMesh]
host = 127.0.0.1
client = Arduino-station
username = username
password = password
topic = weather
driver = user.wxMesh
poll_interval = 1
[[label_map]]
TIME = dateTime
HUMT = outTemp
RHUM = outHumidity
INTE = inTemp
INHU = inHumidity
BARP = barometer
IRRA = radiation
PHOV = supplyVoltage
BATV = consBatteryVoltage
AMBT = extraTemp1
SYST = extraTemp2
This is the setting I have set in /usr/share/weewx/user/wxMesh.py
where to find the data file
self.host = stn_dict.get('host', '127.0.0.1')
self.topic = stn_dict.get('topic', 'weather')
self.username = stn_dict.get('username', 'username')
self.password = stn_dict.get('password', 'password')
self.client_id = stn_dict.get('client', 'Arduino-station') # MQTT client id - adjust $
Thank you Ørjan and NorbertF. I have done clean installation of Raspberry Pi OS, Weewx (APT method) and WeeWX-MQTTSubscribe. Before installing MQTTSubscribe everything was going without problems (no errors in weewx.log). But after install of MQTTSubscribe, trying to restart Weewx I still got the message in the log: (...)
Jul 27 09:52:20 pogoda weewx[3702] ERROR weewx.engine: Import of driver failed: [Errno 111] Connection refused (<class 'ConnectionRefusedError'>)
Jul 27 09:52:20 pogoda weewx[3702] CRITICAL weewx.engine: **** ConnectionRefusedError: [Errno 111] Connection refused
Jul 27 09:52:20 pogoda weewx[3702] CRITICAL __main__: Unable to load driver: [Errno 111] Connection refused
Jul 27 09:52:20 pogoda weewx[3702] CRITICAL __main__: **** Exiting...