MQTT - Min/Max values ?

188 views
Skip to first unread message

Andy Hudson-Smith

unread,
Mar 3, 2020, 11:48:18 AM3/3/20
to weewx-user

Just wondering if its possible to add Min/Max tags for the day to topics - so Min / Max temperature etc.


It would mean i could use MQTT for all my outputs, rather than just the current live ones.. i have had a look and cant work out if its possible,


Hope thats ok to ask,


Andy

Message has been deleted

Martin H.

unread,
Aug 3, 2021, 1:38:04 PM8/3/21
to weewx-user
hi
i´m looking for the same, but didnt find any solution.
I´m coming from meteohub where all this datas are there and i parsed to iobroker.
Now im sending via mqtt from weewx to iobroker but im missing also a lot of min / max values.
Is there any solution ??

lg 
martin

vince

unread,
Aug 3, 2021, 2:42:04 PM8/3/21
to weewx-user
On Tuesday, August 3, 2021 at 10:38:04 AM UTC-7 martin...@gmail.com wrote:
I´m coming from meteohub where all this datas are there and i parsed to iobroker.
Now im sending via mqtt from weewx to iobroker but im missing also a lot of min / max values.
Is there any solution ??


It's unclear what you are trying to do or what you think is 'missing'.
Do you want to have MQTT publish min/max values as well as observations ?
 
If so, you probably need to write some kind of custom extension to periodically capture the min/max values you are looking for and publish them separately to your MQTT broker.

Karen K

unread,
Aug 3, 2021, 3:05:00 PM8/3/21
to weewx-user
As I understood the question, people wants to send some aggregations additionally to the observations to the MQTT broker, similar to the tags in skins, where you can write $current.outTemp and $day.outTemp.max. The same applies to images where you can set aggregate_type and aggregate_interval together with the observation type. Contrary to that, in MQTT section you can set observation types only.

Actually I see no solution besides sending a PR to the MQTT extension author.

vince

unread,
Aug 3, 2021, 4:32:51 PM8/3/21
to weewx-user
On Tuesday, August 3, 2021 at 12:05:00 PM UTC-7 kk44...@gmail.com wrote:
As I understood the question, people wants to send some aggregations additionally to the observations to the MQTT broker, similar to the tags in skins, where you can write $current.outTemp and $day.outTemp.max. The same applies to images where you can set aggregate_type and aggregate_interval together with the observation type. Contrary to that, in MQTT section you can set observation types only.

Actually I see no solution besides sending a PR to the MQTT extension author.


Yes - if you can't find it, you have to write it yourself (and hopefully contribute a PR so the next person doesn't have to write it too).
 

andyhud...@googlemail.com

unread,
Oct 18, 2021, 5:33:54 AM10/18/21
to weewx-user
I made a workbaround by getting the min/max/trend via a json file and republishing to MQTT alongside the main feed - github if it helps at https://github.com/digitalurban/mqttweewxhtml

Andy

Reply all
Reply to author
Forward
0 new messages