Hello, The initial driver from Bill is working (as far as I know). It is subscribing to a single mqtt topic which should contain a long string looking like this: TIME:0,AMBT: 7.23,BARP:1001.97,RHUM:70.92,HUMT: 4.44,IRRA:12,BATV:974,PHOV: 673,SYST:33.20,WIND: 0.0,WDIR: 0.0
In the conf file, it is set the dictionnary to convert labels like "HUMT" to weewx database schema 'outHumidity'. My own modification if based on Bill's job, but I modified a bit to use separated mqtt topics for each sensor. for example I have the following mqtt topics: "weewx/outTempature" , "weewx/barometer" etc... the sensors publish the measurement value a string in the topics. for example "23.42" for temperature (when it's 23.42°C). weewx is subscribing to all topics below "weewx/" (but you can choose something else as root topic). I have done this modification because my sensors are at different locations and different rates. for example, temperature is published every few minutes, rain is published only when it's raining. to make it simple, as I am a python noob, I use as right part of the mqtt topic exactly weewx database schema : for example, in the topic " weewx/outTemperature" the "outTemperature" is the same label as weewx use. in case you publish some topics not available in the schema, weewx will just not consider them. For example, I have published some topics like "www/Vsolar" which is the voltage of the solar panel supplying the sensor. This value Vsolar is rejected by weewx unless you add it in the schema. This is working pretty well for some time now on my setup (barometer, inTemperature, outTemperature, outHumidity, rain & UV are working well.) I hope that helps ? Le lundi 7 août 2017 14:21:57 UTC+2, Neil Trimboy a écrit : > > I am wanting to get some remote sensors data into weewx and was > considering mqtt. > It seems there are currently at least 2 threads of development on > drivers/services to load data into weewx ? > > Could someone summarize their differences and statuses please?. Are they > forks and work fundamentally differently, or is one a more mature version ? > > thanks > > On Friday, 7 July 2017 07:10:03 UTC+12, Wysiwyg wrote: >> >> Hi There! >> >> I just wanted to share a bit the news on this project. >> >> The mqtt driver works since a few monthes now with pressure, barometer & >> intemp like a charm ! >> Since a few days, I introduced outTemp, outHumidity, rain & UV. it works >> perfectly ! >> >> Best regards, >> Frederic >> >> >> >> >> >> >> Le jeudi 6 avril 2017 22:58:22 UTC+2, Wysiwyg a écrit : >>> >>> Thx for feedback Andy !! >>> Nice to hear it works fine ! >>> >>> the MQTT driver works fine also on my side, with barometer & inTemp >>> sensors. >>> Still slowly but not stopping developping the other sensors >>> >>> >>> >>> >>> >>>
