Belchertown station_observations bindings

112 views
Skip to first unread message

mercurystorm

unread,
Feb 14, 2020, 4:09:41 PM2/14/20
to weewx-user
Heya

I use rtl_433 to download my data which does not provide me with the inTemp, inHumidity and Barometer readings - I have set these up on a separate raspberry pi with a BMP280 and DHT22 and saving them to a separate MySQL database which i have then used multiple bindings to generate reports based on 

The reports are generating perfectly and I can see the inTemp, inHumidity and Barometer in the graphs, but in the station_observations they show as N/A and I am not sure how to change them to use the different bindings

Any ideas?

https://stormy.ie/weather/live/ is the weather station

Thanks!

Pat

unread,
Feb 14, 2020, 5:23:42 PM2/14/20
to weewx-user
The station info box doesn't support multiple bindings... It's on my list of things to try and figure out but haven't had time to dedicate to it. Can you send me a sample of your additional database? I could use it as a sample set for testing.

mercurystorm

unread,
Feb 14, 2020, 5:39:43 PM2/14/20
to weewx-user
Attached, its two sql databases on the same server

The graphs are working great! (Thank you!!)
weewx2 (1).sql

Pat

unread,
Feb 14, 2020, 6:07:14 PM2/14/20
to weewx-user
Are you using MQTT for updates? If I recall from a few months ago part of the challenge is that the station observation box is updated from the MQTT data packets, and I don't think MQTT is multiple binding capable. 

So I could potentially update a 2nd binding on initial load, but not on MQTT update. 

I have to look into this again 

Pat

unread,
Feb 14, 2020, 6:10:10 PM2/14/20
to weewx-user
Also, is your raspberry pi submitting it's observations to the weewx loop, or only saving directly to a database?

Francis Yates

unread,
Feb 14, 2020, 6:43:28 PM2/14/20
to weewx...@googlegroups.com
I am not sending the data from the 2nd Pi via MQTT as it’s not real time like wind etc from the weather station.. that data is being sent from mqtt on the main pi with the rtl_433 dongle 

--
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/kyWW2BmGXoE/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/758a009a-1151-410f-b7a7-137dcdf0fd5b%40googlegroups.com.

Pat

unread,
Feb 14, 2020, 6:52:33 PM2/14/20
to weewx-user
I think I understand but to be certain; your Pi is only saving its values right to database?


On Friday, February 14, 2020 at 6:43:28 PM UTC-5, mercurystorm wrote:
I am not sending the data from the 2nd Pi via MQTT as it’s not real time like wind etc from the weather station.. that data is being sent from mqtt on the main pi with the rtl_433 dongle 
On Fri 14 Feb 2020 at 23:07, Pat <p...@obrienphoto.net> wrote:
Are you using MQTT for updates? If I recall from a few months ago part of the challenge is that the station observation box is updated from the MQTT data packets, and I don't think MQTT is multiple binding capable. 

So I could potentially update a 2nd binding on initial load, but not on MQTT update. 

I have to look into this again 

On Friday, February 14, 2020 at 5:39:43 PM UTC-5, mercurystorm wrote:
Attached, its two sql databases on the same server

The graphs are working great! (Thank you!!)

On Friday, 14 February 2020 22:23:42 UTC, Pat wrote:
The station info box doesn't support multiple bindings... It's on my list of things to try and figure out but haven't had time to dedicate to it. Can you send me a sample of your additional database? I could use it as a sample set for testing.

--
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/kyWW2BmGXoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

mercurystorm

unread,
Feb 15, 2020, 6:20:46 AM2/15/20
to weewx-user
Nope loop packets

if __name__ == "__main__":
   
import weeutil.weeutil


    driver
= BME280WXDriver()


   
for packet in driver.genLoopPackets():
       
print(weeutil.weeutil.timestamp_to_string(packet["dateTime"]), packet)

mercurystorm

unread,
Feb 15, 2020, 4:37:48 PM2/15/20
to weewx-user
So I decided to install weewx-mqtt on the secondary raspberry pi and send it to the same topic.. and it WORKS!

{" "barometer_mbar": "968.689986891", "dateTime": "1581802530.0", "inHumidity": "62.0999984741", "inTemp_C": "20.7614171879", "extraTemp1_C": "18.2999992371", "usUnits": "17.0"}

So now my station observations are working via the MQTT data.. the only thing not working is the  Barometer trend arrow

mercurystorm

unread,
Feb 15, 2020, 6:45:04 PM2/15/20
to weewx-user
I have just changed

/etc/weewx/skins/Belchertown/json/weewx_data.json.tmpl:64:        "barometer_trend": "$trend.barometer"

to

/etc/weewx/skins/Belchertown/json/weewx_data.json.tmpl:64:        "barometer_trend": "$trend($data_binding='indoor_binding').barometer"

Will see if the Barometer trend now reports correctly
Reply all
Reply to author
Forward
0 new messages