Only useing BME280 to read weather

84 views
Skip to first unread message

radioin...@gmail.com

unread,
May 29, 2023, 8:27:57 AM5/29/23
to weewx-user
I have no weather-station connected to weewx. but running a BME280 as a service and reporting to CWOP.

how can I change the comment from weewx 4 simulator , to BME280?
how only to report the readings from BME280 (temp, Hym, bao) to CWOP , and not all the simulated date like wind and rain?

greetings from a sunny day.

Mark Fraser

unread,
May 29, 2023, 9:35:21 AM5/29/23
to weewx...@googlegroups.com
You could try installing https://gitlab.com/wjcarpenter/bme280wx and
setting all of the must_have options to empty strings.

radioin...@gmail.com

unread,
May 29, 2023, 5:36:57 PM5/29/23
to weewx-user
I did install the extention/service bme280,wx and it works , but how do i stop weewx for running the simulator

gjr80

unread,
May 29, 2023, 6:31:00 PM5/29/23
to weewx-user
I think you are going to run into a few challenges doing what you want. The CWOP uploader uploads a fixed set of obs, if you want to change this you will need to modify the CWOP uploader code in weewx/restx.py (refer class StdCWOP and class CWOPThread). There are no user configurable options for limiting the uploaded fields. I have no idea if CWOP will accept a cut down suite of obs, CWOP is not a service I use nor am I familiar with it.

In terms of removing the 'weewx 4 simulator' comment, this is hard coded in the CWOP uploader (WeeWX, WeeWX version and station type). Station type is picked up from the driver, so you either need to find a BME280 driver (you have a BME280 service witch is quite distinct from a driver) or you need to change the CWOP uploader code.

If you end up modifying code I strongly suggest your final solution involve sub-classing the CWOP uploader, this will prevent future WeeWX updates possibly overwriting your code.

Gary

radioin...@gmail.com

unread,
May 31, 2023, 3:07:23 AM5/31/23
to weewx-user
Thanks for the pointers, I see what I can/will do.
Reply all
Reply to author
Forward
0 new messages