[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-08-03 Thread morr...@gmail.com
User norecord has made changes to wxMesh so that it should work with python 3 and weewx 4.x. I have merged in their changes and pushed it to the master branch. I've also changed my implementation so that the data is in JSON format. I'll likely push that up too, but need to make the switch to

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-07-11 Thread Bill Morrow
Sorry for the late reply. I don't have much time to work on my original wxMesh driver. >From what I have seen of MQTTSubscribe, it's a much more complete implementation of an MQTT subscriber, and offers the features I was planning on adding some day. When I get a chance, I plan on switching

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread Rich Bell
Great to hear. Just give a shout if you run into any other difficulties. rich On Wednesday, 24 June 2020 16:50:26 UTC-4, Christian Peters wrote: > > Hi Rich, > > thank you very much. > It works like a charm! :-) > > I set up a temporary mapping to values already available in the databae. > For

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread Rich Bell
I should say that in the first test, I saw the disconnect and reconnect and processing pick back up. I did a couple more tests. First, just stop publishing. No disconnect, MQTTSubscribe waited until the next message. No surprise there. Next I shut the broker down. Again, I saw MQTTSubscribe

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread 'Christian Peters' via weewx-user
Hi Rich, thank you very much. It works like a charm! :-) I set up a temporary mapping to values already available in the databae. For the temp and humid values it works out of the box, for CPM, CPS and radiation I have to setup unit groups later. This is my working setup - just to have

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread Rich Bell
Christian, What are the symptoms that cause you to have to restart WeeWX when MQTT connection is lost with wxmesh? The reason I ask, I tried just disconnection the MQTTSubscribe client from the network and then reconnecting. It seemed to behave correctly. I am hesitant to stop the broker, but

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread Rich Bell
Well, I haven't heard of having to restart WeeWX when the connection is lost, and if that happens I would certainly want to look into fixing that. I'll do some experiments to see if I can recreate. Sounds like picking the service might be the best long term choice, with the caveat about the

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread 'Christian Peters' via weewx-user
Rich, that's great. I'm not sure whether I should stay on the driver version or switch to the service versionwhich could make it maybe more easy. But if the MQTTSubscribe as service lost connection and wouldn't reconnect I have to restart the main weewx prog to get it up again!? So maybe a

[weewx-user] Re: howto receive MQTT data from a running broker and put the data into database with weewx..?

2020-06-24 Thread Rich Bell
Christian, MQTTSubscribe should be able to meet your needs. I know the documentation is a bit sparse, but I can help get you up and running. The first question you need to answer is whether to run as a service or driver? From what I am understanding. If you ran as a driver it would