Weewx and Mqtt

345 views
Skip to first unread message

Tim Shepherd

unread,
Sep 12, 2022, 5:49:37 AM9/12/22
to weewx-user
Hi,
I have weewx linked via mqtt to a homeassistant.
Everything is working fine apart from the parameters highOutsideTemp and lowOutsideTemp which return incorrect results.

I can't see any errors in the installation - just wondering if anyone has any ideas

Thanks

vince

unread,
Sep 12, 2022, 4:58:31 PM9/12/22
to weewx-user
In the absence of any description of your setup, any logs or any snippets from your config file(s) - no, no ideas.

I've never heard of those two parameters nor where they might come from.

Troy Roberts

unread,
Sep 12, 2022, 7:43:08 PM9/12/22
to weewx...@googlegroups.com
I'm going to go out on a limb and say there is no mqtt topic labeled highOutsideTemp and lowOutsideTemp. If there is it might me labeled something different. Do you have a list of all the topics /weather? 

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/zD-I9CmElsY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f0b71c74-964a-45ac-9168-2ee9e111e186n%40googlegroups.com.

Doug Jenkins

unread,
Sep 12, 2022, 8:15:17 PM9/12/22
to weewx...@googlegroups.com
Troy:

You can dump out the topic from your broker. I found Pat O'Brien's mqtt broker setup very helpful. I would read this for more insight


Doug Jenkins 

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CABY4LHM4v9KxndqsTAWaUMkdLh0nbDHZY2fe2BYhwpbiO%3DXBaQ%40mail.gmail.com.

Tim Shepherd

unread,
Sep 13, 2022, 5:21:35 AM9/13/22
to weewx-user
Thanks for the replies I apologise for not providing more information 
I have attached a dump from of the MQTT messages output from Weewx. You can see the parameters I mentioned lines 61 and 62 and repeated here for clarity. 
highOutTemp_C = 14.722222222222221
lowOutTemp_C = 14.666666666666666
The data does not seem to relate to anything although the max value does seem to track the ambient temp to some degree
Here is the mqtt config bit from weewx.conf

 [[MQTT]]
        server_url = mqtt://XXXX:YY...@ZZZZ.local:1883/
        topic = weather
        unit_system = METRIC
        binding = archive, loop
        aggregation = individual

Tim
homeassistant.txt

Karen K

unread,
Sep 13, 2022, 6:32:24 AM9/13/22
to weewx-user
Could you provide the complete weewx.conf? Please make sure to obfuscate passwords and IPs before sending it. Which driver do you use to receive the readings from the hardware? Which hardware? Which skin(s)? highOutTemp and lowOutTemp are not standard readings for WeeWX. So without knowing where they come from no-one can answer your question.

steepleian

unread,
Sep 13, 2022, 7:09:58 AM9/13/22
to weewx...@googlegroups.com
I have observed similar. It appears to be the max and min between consecutive observations, or at the very least a very short time span.

Sent from my iPhone

On 13 Sep 2022, at 11:32, Karen K <kk44...@gmail.com> wrote:

Could you provide the complete weewx.conf? Please make sure to obfuscate passwords and IPs before sending it. Which driver do you use to receive the readings from the hardware? Which hardware? Which skin(s)? highOutTemp and lowOutTemp are not standard readings for WeeWX. So without knowing where they come from no-one can answer your question.


--
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.

Tim Shepherd

unread,
Sep 13, 2022, 11:04:14 AM9/13/22
to weewx-user
The software is connected to a Davis VantageVue station via the normal serial link
The configuration is pretty standard, I have enabled the standard and seasons reports. The MQTT and steel gauges  extensions have been installed.
High and low external temperatures are shown in the standard report so I assumed were standard parameters in the database. The values shown in this report seem correct and are different to the MQTT values.
I have attached a copy of the config file
weewxconfig copy.txt

Warren Gill

unread,
Sep 13, 2022, 11:30:28 AM9/13/22
to weewx-user
I offer this screen shot of MQTT explorer that I left running overnight to graph various topics
mqtt-weather-explorer.png

vince

unread,
Sep 13, 2022, 12:36:05 PM9/13/22
to weewx-user
I stand corrected. The parameters are in the MQTT loop info, I just never noticed it before.

Here's a screenshot of my setup here, with the graphs from grafana and the data from influxdb. 

You'll note that outTemp (purple) is always in between highOutTemp (green) and lowOutTemp (yellow), which seems reasonable to me.

My thought is that the outTemp (average across the archive period) shouldn't necessarily line up 'exactly' with either the high (max) or the low (min) reading for outside temperature during that archive period unless all the readings were absolutely identical for the entire archive period.

So I don't see a bug here....

Screen Shot 2022-09-13 at 9.30.45 AM.png



Tim Shepherd

unread,
Sep 13, 2022, 1:37:20 PM9/13/22
to weewx-user
Vince thank you for that. I think you are correct. I had assumed that the max and min values were daily max and min values starting and ending at midnight. Looks like that is not the case 
Reply all
Reply to author
Forward
0 new messages