Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

b3182 rain and solar hour issues

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

b3182 rain and solar hour issues

Post by Gyvate »

1. (reported before already) Sunshine Hours
when backfilling from the Ecowitt cloud the sunhours are not taken from my connected B-L SunRecorder but some other values calculated which are systematically higher than the B-L SR values. When the B-L SR option is set, it would be better to use "0.0" and I can edit the 23:59 record for each day and the dayfile.txt entry (if the backfill goes over more than one day) rather than having wrong values.

Ideally a path to the B-L SR file system with the daily values could be given (if on the same server as CMX) and the values taken from there (if the day backfilled is < current day. If current day use, the current SRsunshine.dat file).

2. yearly rain at startup
my CMX installation with a GW1000 1.7.2 connected does not report the yearly rain in the dashboard even though found in the CMX log files.
CMX tries to execute the CMD_READ_RAIN (even though no WS90 was found at startup), and fails (to be expected) - might this be connected to the issue ?
When I activate my WS90 with the GW1000, the yearly rain is properly shown.
Is it possible that CMX tries to find the yearly values from the CMD_READ_RAIN reply rather than from the CMD_GW1000_LIVEDATA replay also when no WS90 is connected ? And then gives up, puts zero, because the 0x57 call fails ?
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b3182 rain and solar hour issues

Post by mcrossley »

1. I'll investigate, I thought the B-L sun hours was handled automatically in the solar code independent of the station type, obviously something is wrong here.

2. I think you are misunderstanding the use of the rain values.

CMX does not know anything about the yearly total other than from adding up the daily totals in the day file, and possibly adding a correction value for a part year. It does not use your stations "yearly total" as *the* yearly total. The value from the station is simply used as an incrementing counter to determine changes in the totals.

The local API station code does not call CMD_READ_RAIN if your rain sensor is set to traditional/tipper.
(the next update outputs a message on start-up to show which type has being configured)
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: b3182 rain and solar hour issues

Post by Gyvate »

I don't think I'm confusing or misunderstanding - I'm just reporting facts
same installation and data base:
without WS90 connected - no yearly rain shown
with WS90 connected - yearly rain shown

that in itself is a striking observation - independent of my understanding

as you can see from the logs below the yearly rain is very well properly calculated from the dayfile - but not displayed when the WS90 is not connected

in addition the rain preference in the GW1000 set is traditional - with and without the WS90 connected
The local API station code does not call CMD_READ_RAIN if your rain sensor is set to traditional/tipper.
the log below says something else (red)

so something is not working properly
and the only change between the two setups is a(n additional) WS90 connected or not connected



in detail (no WS90)
2022-05-04 09:37:49.216 ReadTodayfile: Rain day start = 0
2022-05-04 09:37:49.216 ReadTodayfile: set initialiseRainCounterOnFirstData false
2022-05-04 09:37:49.245 /home/pi/CumulusMX/data/alltime.ini
2022-05-04 09:37:49.248 Alltime.ini file read
2022-05-04 09:37:49.282 MonthlyAlltime.ini file read
2022-05-04 09:37:49.295 Month.ini file read
2022-05-04 09:37:49.319 Year.ini file read
2022-05-04 09:37:49.322 LoadDayFile: Attempting to load the day file
2022-05-04 09:37:49.556 LoadDayFile: Dayfile parse = 232 ms
2022-05-04 09:37:49.556 LoadDayFile: Loaded 505 entries to recent daily data list
2022-05-04 09:37:49.559 Finding raintoday from logfile data/May22log.txt
2022-05-04 09:37:49.559 Expecting listsep=, decimal=.
2022-05-04 09:37:49.960 Midnight rain found in the following entry:
2022-05-04 09:37:49.960 04/05/22,00:00,11.2,85,8.8,1.1,2.5,109,0.0,0.0,1015.7,354.7,21.6,55,0.0,11.2,11.2,0.0,0,0.00,99.49,10.7,0,0.0,126,0.0,0.0,11.2,11.9
2022-05-04 09:37:49.978 This Cumulus MX instance is running the latest version
2022-05-04 09:37:50.012 Midnight rain found, setting midnight rain count = 354.7
2022-05-04 09:37:50.012 Checking rain counter = 0
2022-05-04 09:37:50.012 Rain counter set to = 0
2022-05-04 09:37:50.015 Getting rain totals, rain season start = 1
2022-05-04 09:37:50.015 Today = 04/05/22
2022-05-04 09:37:50.017 Rainthismonth from dayfile: 0
2022-05-04 09:37:50.017 Rainthisyear from dayfile: 354.9
2022-05-04 09:37:50.022 Using the default outdoor temp/hum sensor data
2022-05-04 09:37:50.024 Using IP address = 192.168.1.37 Port = 45000
2022-05-04 09:37:50.027 Ecowitt Gateway Connect attempt 1
2022-05-04 09:37:55.052 Ecowitt Gateway reconnected
2022-05-04 09:37:55.052 Connected OK
2022-05-04 09:37:55.054 Reading firmware version
2022-05-04 09:37:55.094 DoCommand(CMD_READ_FIRMWARE_VERSION): Valid response
2022-05-04 09:37:55.098 Received: FF-FF-50-12-0E-47-57-31-30-30-30-41-5F-56-31-2E-37-2E-32-BB
2022-05-04 09:37:55.099 Ecowitt firmware version: GW1000A_V1.7.2
2022-05-04 09:37:55.102 Reading Ecowitt system info
2022-05-04 09:37:55.123 DoCommand(CMD_READ_SSSS): Valid response
2022-05-04 09:37:55.124 Received: FF-FF-30-0B-01-01-62-72-49-71-2B-01-F7
2022-05-04 09:37:55.125 GW1000 Info: frequency: 868MHz, main sensor: Other than WH24, date/time: 04 May 2022 11:37:53, Automatic DST adjustment: True
2022-05-04 09:37:55.127 Reading sensor ids
2022-05-04 09:37:55.154 DoCommand(CMD_READ_SENSOR_ID_NEW): Valid response
2022-05-04 09:37:55.154 Received: FF-FF-3C-01-54-00-00-00-00-30-00-04-01-FF-FF-FF-FF-FF-00-02-00-03-00-2B-89-04-03-FF-FF-FF-FE-1F-00-05-00-00-00-E7-00-04-06-00-00-00-5D-00-04-07-00-00-00-0E-00-04-08-00-00-00-CA-00-04-09-00-00-00-6C-00-04-0A-00-00-00-07-00-04-0B-00-00-00-F3-00-04-0C-00-00-00-74-00-04-0D-FF-FF-FF-FE-00-00-0E-00-00-C6-D0-0E-04-0F-00-00-C5-E0-0D-04-10-00-00-C6-A8-0E-04-11-00-00-C8-14-0E-04-12-00-00-C5-3F-1F-00-13-FF-FF-FF-FE-1F-00-14-FF-FF-FF-FE-1F-00-15-FF-FF-FF-FE-1F-00-16-00-00-00-B9-04-04-17-00-00-00-46-04-04-18-FF-FF-FF-FE-0F-00-19-FF-FF-FF-FE-0F-00-1A-00-00-D9-47-05-04-1B-00-00-E4-17-0F-00-1C-00-10-E3-E4-04-04-1D-FF-FF-FF-FF-0F-00-1E-FF-FF-FF-FF-0F-00-1F-FF-FF-FF-FF-FF-00-20-FF-FF-FF-FE-FF-00-21-FF-FF-FF-FE-FF-00-22-FF-FF-FF-FE-FF-00-23-FF-FF-FF-FF-FF-00-24-FF-FF-FF-FF-FF-00-25-FF-FF-FF-FF-FF-00-26-FF-FF-FF-FF-FF-00-27-00-00-2D-43-06-04-28-FF-FF-FF-FF-FF-00-29-FF-FF-FF-FF-FF-00-2A-FF-FF-FF-FF-FF-00-2B-FF-FF-FF-FF-FF-00-2C-FF-FF-FF-FF-FF-00-2D-FF-FF-FF-FF-FF-00-2E-FF-FF-FF-FF-FF-00-2F-FF-FF-FF-FF-FF-00-30-FF-FF-FF-FE-FF-00-E3
2022-05-04 09:37:55.161 - WH24/WH65 sensor id = 48 signal = 4 battery = ???
2022-05-04 09:37:55.162 - WH68 sensor = registering
2022-05-04 09:37:55.162 PrintSensorInfoNew: WS80 sensor detected, changing the update rate from 10 seconds to 4 seconds
2022-05-04 09:37:55.163 - WH80 sensor id = 196651 signal = 4 battery = 2.74V (OK)
2022-05-04 09:37:55.163 - WH40 sensor = disabled
2022-05-04 09:37:55.163 - WH26 sensor id = 231 signal = 4 battery = OK
2022-05-04 09:37:55.163 - WH31CH1 sensor id = 93 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.164 - WH31CH2 sensor id = 14 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.164 - WH31CH3 sensor id = 202 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.164 - WH31CH4 sensor id = 108 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.164 - WH31CH5 sensor id = 7 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.165 - WH31CH6 sensor id = 243 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.165 - WH31CH7 sensor id = 116 signal = 4 battery = 0 (OK)
2022-05-04 09:37:55.165 - WH31CH8 sensor = disabled
2022-05-04 09:37:55.166 - WH51CH1 sensor id = 50896 signal = 4 battery = 1.40V (OK)
2022-05-04 09:37:55.166 - WH51CH2 sensor id = 50656 signal = 4 battery = 1.30V (OK)
2022-05-04 09:37:55.166 - WH51CH3 sensor id = 50856 signal = 4 battery = 1.40V (OK)
2022-05-04 09:37:55.167 - WH51CH4 sensor id = 51220 signal = 4 battery = 1.40V (OK)
2022-05-04 09:37:55.167 - WH51CH5 sensor id = 50495 signal = 0 battery = 3.10V (OK)
2022-05-04 09:37:55.167 - WH51CH6 sensor = disabled
2022-05-04 09:37:55.167 - WH51CH7 sensor = disabled
2022-05-04 09:37:55.167 - WH51CH8 sensor = disabled
2022-05-04 09:37:55.168 - WH41CH1 sensor id = 185 signal = 4 battery = 4 (OK)
2022-05-04 09:37:55.168 - WH41CH2 sensor id = 70 signal = 4 battery = 4 (OK)
2022-05-04 09:37:55.169 - WH41CH3 sensor = disabled
2022-05-04 09:37:55.169 - WH41CH4 sensor = disabled
2022-05-04 09:37:55.169 - WH57 sensor id = 55623 signal = 4 battery = 5 (OK)
2022-05-04 09:37:55.169 - WH55CH1 sensor id = 58391 signal = 0 battery = 15 (OK)
2022-05-04 09:37:55.169 - WH55CH2 sensor id = 1106916 signal = 4 battery = 4 (OK)
2022-05-04 09:37:55.169 - WH55CH3 sensor = registering
2022-05-04 09:37:55.170 - WH55CH4 sensor = registering
2022-05-04 09:37:55.170 - WH34CH1 sensor = registering
2022-05-04 09:37:55.170 - WH34CH2 sensor = disabled
2022-05-04 09:37:55.170 - WH34CH3 sensor = disabled
2022-05-04 09:37:55.170 - WH34CH4 sensor = disabled
2022-05-04 09:37:55.170 - WH34CH5 sensor = registering
2022-05-04 09:37:55.170 - WH34CH6 sensor = registering
2022-05-04 09:37:55.171 - WH34CH7 sensor = registering
2022-05-04 09:37:55.171 - WH34CH8 sensor = registering
2022-05-04 09:37:55.171 - WH45 sensor id = 11587 signal = 4 battery = 6 (DC)
2022-05-04 09:37:55.171 - WH35CH1 sensor = registering
2022-05-04 09:37:55.171 - WH35CH2 sensor = registering
2022-05-04 09:37:55.171 - WH35CH3 sensor = registering
2022-05-04 09:37:55.171 - WH35CH4 sensor = registering
2022-05-04 09:37:55.171 - WH35CH5 sensor = registering
2022-05-04 09:37:55.172 - WH35CH6 sensor = registering
2022-05-04 09:37:55.172 - WH35CH7 sensor = registering
2022-05-04 09:37:55.172 - WH35CH8 sensor = registering
2022-05-04 09:37:55.172 - WH90 sensor = disabled
2022-05-04 09:37:55.173 Loading last N hour data from data logs: 04/05/2022 09:37:00
2022-05-04 09:37:55.186 LoadRecent: Attempting to load 7 days of entries to recent data list
2022-05-04 09:38:02.159 LoadRecent: Loaded 1 new entries to recent database
2022-05-04 09:38:02.165 LoadRecentAqFromDataLogs: Attempting to load 7 days of entries to Air Quality recent data
2022-05-04 09:38:02.483 WS Connect From : 192.168.1.72
2022-05-04 09:38:16.874 LoadRecentAqFromDataLogs: Loaded 8269 new entries to recent database
2022-05-04 09:38:16.877 LoadLast3Hour: Attempting to load 3 hour data list
2022-05-04 09:38:16.914 LoadLast3Hour: Loaded 178 entries to last 3 hour data list
2022-05-04 09:38:16.939 Creating extra sensors
2022-05-04 09:38:16.940 Lock: Station waiting for the lock
2022-05-04 09:38:17.101 855 web tags initialised
2022-05-04 09:38:17.112 Generating the daily graph data files
2022-05-04 09:38:17.305 Lock: Cumulus releasing the lock
2022-05-04 09:38:17.305 Lock: Station has the lock
2022-05-04 09:38:17.326 GetHistoricData: Starting Historic Data Process
2022-05-04 09:38:17.334 API.GetHistoricData: Get Ecowitt Historic Data
2022-05-04 09:38:17.335 API.GetHistoricData: Processing history data from 2022-05-04 09:38 to 2022-05-04 09:43...
2022-05-04 09:38:17.335 Ecowitt URL = https://api.ecowitt.net/api/v3/device/h ... _type=5min
2022-05-04 09:38:18.931 API.GetHistoricData: Ecowitt API Historic Response code: 200
2022-05-04 09:38:18.931 API.GetHistoricData: Ecowitt API Historic Response: {"code":0,"msg":"success","time":"1651649898","data":[]}
2022-05-04 09:38:19.372 Lock: Station releasing the lock
2022-05-04 09:38:19.466 Starting Ecowitt Local API
2022-05-04 09:38:19.470 Start Extra Sensors
2022-05-04 09:38:19.471 Start Timers
2022-05-04 09:38:19.471 Starting 1-minute timer
2022-05-04 09:38:19.475 Data logging interval = 0 (1 mins)
2022-05-04 09:38:19.480 RealtimeFTPLogin: Attempting realtime FTP connect to host meshka.eu on port 21
2022-05-04 09:38:19.960 RealtimeFTPLogin: Realtime FTP connected
2022-05-04 09:38:19.960 Starting Realtime timer, interval = 5 seconds
2022-05-04 09:38:19.960 Wundlist count is zero
2022-05-04 09:38:19.960 Windylist count is zero
2022-05-04 09:38:19.961 MySqlList is Empty
2022-05-04 09:38:19.962 Normal running
2022-05-04 09:38:19.972 Reading live data
2022-05-04 09:38:20.155 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-05-04 09:38:20.155 Received: FF-FF-27-00-94-01-00-D3-06-37-08-26-8F-09-27-B2-02-00-9C-07-3E-0A-00-73-0B-00-00-0C-00-00-15-00-06-C3-A4-16-00-63-17-01-2A-00-5A-4D-00-6E-51-01-36-4E-00-C3-2C-4B-2E-0E-30-1A-32-15-1A-00-AB-22-3A-1B-00-AC-23-44-1C-00-90-24-43-1D-00-8C-25-48-1E-FF-6F-1F-00-DA-27-36-20-00-3C-28-3E-59-00-62-00-00-00-00-61-62-66-9B-AC-60-22-19-00-13-0E-00-00-10-00-00-11-00-00-12-00-00-00-00-13-00-00-0D-DE-0D-00-00-70-00-D8-34-00-39-00-3A-00-34-00-37-03-78-03-7A-06-AA
2022-05-04 09:38:20.177 WH45 CO₂: Decoding...
2022-05-04 09:38:20.177 WH45 CO₂: temp=21.6, hum=52, pm10=5.7, pm10_24h=5.8, pm2.5=5.2, pm2.5_24h=5.5, CO₂=888, CO₂_24h=890, Battery=DC
2022-05-04 09:38:20.177 LiveData: Wind Decode >> Last=0.0, LastDir=115, Gust=0.0, (MXAvg=0.0)
2022-05-04 09:38:20.352 GetPiezoRainData: Reading piezo rain data
2022-05-04 09:38:20.373 DoCommand(CMD_READ_RAIN): Valid response

2022-05-04 09:38:20.373 Received: FF-FF-57-00-27-0E-00-00-10-00-00-00-00-11-00-00-00-00-12-00-00-00-00-13-00-00-0D-DE-0D-00-00-0F-00-64-88-00-00-01-7A-01-41
2022-05-04 09:38:20.373 No rain data available? 0x7a=1
2022-05-04 09:38:20.373 GetPiezoRainData: Error, no piezo rain data found in the response
2022-05-04 09:38:24.397 Reading live data
2022-05-04 09:38:24.420 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-05-04 09:38:24.421 Received: FF-FF-27-00-94-01-00-D3-06-37-08-26-8F-09-27-B2-02-00-9C-07-3E-0A-00-73-0B-00-00-0C-00-00-15-00-06-C9-80-16-00-63-17-01-2A-00-5A-4D-00-6E-51-01-36-4E-00-C3-2C-4B-2E-0E-30-1A-32-15-1A-00-AB-22-3A-1B-00-AC-23-44-1C-00-90-24-43-1D-00-8C-25-48-1E-FF-70-1F-00-DA-27-36-20-00-3C-28-3E-59-00-62-00-00-00-00-61-62-66-9B-AC-60-22-19-00-13-0E-00-00-10-00-00-11-00-00-12-00-00-00-00-13-00-00-0D-DE-0D-00-00-70-00-D8-34-00-39-00-3A-00-34-00-37-03-78-03-7A-06-8D
2022-05-04 09:38:24.421 WH45 CO₂: Decoding...
2022-05-04 09:38:24.422 WH45 CO₂: temp=21.6, hum=52, pm10=5.7, pm10_24h=5.8, pm2.5=5.2, pm2.5_24h=5.5, CO₂=888, CO₂_24h=890
2022-05-04 09:38:24.422 LiveData: Wind Decode >> Last=0.0, LastDir=115, Gust=0.0, (MXAvg=4.9)
2022-05-04 09:38:24.966 Realtime[0]: Start cycle
2022-05-04 09:38:24.981 Realtime[0]: Creating realtime.txt
2022-05-04 09:38:24.990 Realtime[0]: Processing realtime file - realtimegauges.txt
2022-05-04 09:38:25.890 Realtime[0]: End cycle
2022-05-04 09:38:28.423 Reading live data

result: no yearly rain data shown in dashboard

WS90 connected (and yearly rain data shown in dashboard)

2022-05-04 09:33:53.909 ReadTodayfile: Rain day start = 354.7
2022-05-04 09:33:53.909 ReadTodayfile: set initialiseRainCounterOnFirstData false
2022-05-04 09:33:53.925 /home/pi/CumulusMX/data/alltime.ini
2022-05-04 09:33:53.928 Alltime.ini file read
2022-05-04 09:33:53.967 MonthlyAlltime.ini file read
2022-05-04 09:33:53.981 Month.ini file read
2022-05-04 09:33:53.994 Year.ini file read
2022-05-04 09:33:53.997 LoadDayFile: Attempting to load the day file
2022-05-04 09:33:54.212 LoadDayFile: Dayfile parse = 212 ms
2022-05-04 09:33:54.213 LoadDayFile: Loaded 505 entries to recent daily data list
2022-05-04 09:33:54.216 Finding raintoday from logfile data/May22log.txt
2022-05-04 09:33:54.216 Expecting listsep=, decimal=.
2022-05-04 09:33:54.611 Midnight rain found in the following entry:
2022-05-04 09:33:54.611 04/05/22,00:00,11.2,85,8.8,1.1,2.5,109,0.0,0.0,1015.7,354.7,21.6,55,0.0,11.2,11.2,0.0,0,0.00,99.49,10.7,0,0.0,126,0.0,0.0,11.2,11.9
2022-05-04 09:33:54.617 This Cumulus MX instance is running the latest version
2022-05-04 09:33:54.662 Midnight rain found, setting midnight rain count = 354.7
2022-05-04 09:33:54.662 Checking rain counter = 354.7
2022-05-04 09:33:54.662 Rain counter set to = 354.7
2022-05-04 09:33:54.665 Getting rain totals, rain season start = 1
2022-05-04 09:33:54.665 Today = 04/05/22
2022-05-04 09:33:54.667 Rainthismonth from dayfile: 0
2022-05-04 09:33:54.668 Rainthisyear from dayfile: 354.9
2022-05-04 09:33:54.672 Using the default outdoor temp/hum sensor data
2022-05-04 09:33:54.674 Using IP address = 192.168.1.37 Port = 45000
2022-05-04 09:33:54.676 Ecowitt Gateway Connect attempt 1
2022-05-04 09:33:59.689 Ecowitt Gateway reconnected
2022-05-04 09:33:59.689 Connected OK
2022-05-04 09:33:59.691 Reading firmware version
2022-05-04 09:33:59.762 DoCommand(CMD_READ_FIRMWARE_VERSION): Valid response
2022-05-04 09:33:59.766 Received: FF-FF-50-12-0E-47-57-31-30-30-30-41-5F-56-31-2E-37-2E-32-BB
2022-05-04 09:33:59.767 Ecowitt firmware version: GW1000A_V1.7.2
2022-05-04 09:33:59.769 Reading Ecowitt system info
2022-05-04 09:33:59.791 DoCommand(CMD_READ_SSSS): Valid response
2022-05-04 09:33:59.791 Received: FF-FF-30-0B-01-01-62-72-48-86-2B-01-0B
2022-05-04 09:33:59.793 GW1000 Info: frequency: 868MHz, main sensor: Other than WH24, date/time: 04 May 2022 11:33:58, Automatic DST adjustment: True
2022-05-04 09:33:59.794 Reading sensor ids
2022-05-04 09:33:59.820 DoCommand(CMD_READ_SENSOR_ID_NEW): Valid response
2022-05-04 09:33:59.820 Received: FF-FF-3C-01-54-00-00-00-00-30-00-04-01-FF-FF-FF-FF-FF-00-02-00-03-00-2B-89-04-03-FF-FF-FF-FE-1F-00-05-00-00-00-E7-00-04-06-00-00-00-5D-00-04-07-00-00-00-0E-00-04-08-00-00-00-CA-00-04-09-00-00-00-6C-00-04-0A-00-00-00-07-00-04-0B-00-00-00-F3-00-04-0C-00-00-00-74-00-04-0D-FF-FF-FF-FE-00-00-0E-00-00-C6-D0-0E-04-0F-00-00-C5-E0-0D-04-10-00-00-C6-A8-0E-04-11-00-00-C8-14-0E-04-12-00-00-C5-3F-1F-00-13-FF-FF-FF-FE-1F-00-14-FF-FF-FF-FE-1F-00-15-FF-FF-FF-FE-1F-00-16-00-00-00-B9-04-04-17-00-00-00-46-04-04-18-FF-FF-FF-FE-0F-00-19-FF-FF-FF-FE-0F-00-1A-00-00-D9-47-05-04-1B-00-00-E4-17-0F-00-1C-00-10-E3-E4-04-04-1D-FF-FF-FF-FF-0F-00-1E-FF-FF-FF-FF-0F-00-1F-FF-FF-FF-FF-FF-00-20-FF-FF-FF-FE-FF-00-21-FF-FF-FF-FE-FF-00-22-FF-FF-FF-FE-FF-00-23-FF-FF-FF-FF-FF-00-24-FF-FF-FF-FF-FF-00-25-FF-FF-FF-FF-FF-00-26-FF-FF-FF-FF-FF-00-27-00-00-2D-43-06-04-28-FF-FF-FF-FF-FF-00-29-FF-FF-FF-FF-FF-00-2A-FF-FF-FF-FF-FF-00-2B-FF-FF-FF-FF-FF-00-2C-FF-FF-FF-FF-FF-00-2D-FF-FF-FF-FF-FF-00-2E-FF-FF-FF-FF-FF-00-2F-FF-FF-FF-FF-FF-00-30-00-41-94-B3-95-04-0A
2022-05-04 09:33:59.825 - WH24/WH65 sensor id = 48 signal = 4 battery = ???
2022-05-04 09:33:59.826 - WH68 sensor = registering
2022-05-04 09:33:59.826 PrintSensorInfoNew: WS80 sensor detected, changing the update rate from 10 seconds to 4 seconds
2022-05-04 09:33:59.826 - WH80 sensor id = 196651 signal = 4 battery = 2.74V (OK)
2022-05-04 09:33:59.826 - WH40 sensor = disabled
2022-05-04 09:33:59.826 - WH26 sensor id = 231 signal = 4 battery = OK
2022-05-04 09:33:59.826 - WH31CH1 sensor id = 93 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.826 - WH31CH2 sensor id = 14 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.827 - WH31CH3 sensor id = 202 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.827 - WH31CH4 sensor id = 108 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.827 - WH31CH5 sensor id = 7 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.827 - WH31CH6 sensor id = 243 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.827 - WH31CH7 sensor id = 116 signal = 4 battery = 0 (OK)
2022-05-04 09:33:59.827 - WH31CH8 sensor = disabled
2022-05-04 09:33:59.828 - WH51CH1 sensor id = 50896 signal = 4 battery = 1.40V (OK)
2022-05-04 09:33:59.828 - WH51CH2 sensor id = 50656 signal = 4 battery = 1.30V (OK)
2022-05-04 09:33:59.828 - WH51CH3 sensor id = 50856 signal = 4 battery = 1.40V (OK)
2022-05-04 09:33:59.829 - WH51CH4 sensor id = 51220 signal = 4 battery = 1.40V (OK)
2022-05-04 09:33:59.829 - WH51CH5 sensor id = 50495 signal = 0 battery = 3.10V (OK)
2022-05-04 09:33:59.829 - WH51CH6 sensor = disabled
2022-05-04 09:33:59.829 - WH51CH7 sensor = disabled
2022-05-04 09:33:59.829 - WH51CH8 sensor = disabled
2022-05-04 09:33:59.830 - WH41CH1 sensor id = 185 signal = 4 battery = 4 (OK)
2022-05-04 09:33:59.830 - WH41CH2 sensor id = 70 signal = 4 battery = 4 (OK)
2022-05-04 09:33:59.830 - WH41CH3 sensor = disabled
2022-05-04 09:33:59.830 - WH41CH4 sensor = disabled
2022-05-04 09:33:59.830 - WH57 sensor id = 55623 signal = 4 battery = 5 (OK)
2022-05-04 09:33:59.830 - WH55CH1 sensor id = 58391 signal = 0 battery = 15 (OK)
2022-05-04 09:33:59.831 - WH55CH2 sensor id = 1106916 signal = 4 battery = 4 (OK)
2022-05-04 09:33:59.831 - WH55CH3 sensor = registering
2022-05-04 09:33:59.831 - WH55CH4 sensor = registering
2022-05-04 09:33:59.831 - WH34CH1 sensor = registering
2022-05-04 09:33:59.831 - WH34CH2 sensor = disabled
2022-05-04 09:33:59.831 - WH34CH3 sensor = disabled
2022-05-04 09:33:59.831 - WH34CH4 sensor = disabled
2022-05-04 09:33:59.831 - WH34CH5 sensor = registering
2022-05-04 09:33:59.831 - WH34CH6 sensor = registering
2022-05-04 09:33:59.831 - WH34CH7 sensor = registering
2022-05-04 09:33:59.831 - WH34CH8 sensor = registering
2022-05-04 09:33:59.832 - WH45 sensor id = 11587 signal = 4 battery = 6 (DC)
2022-05-04 09:33:59.832 - WH35CH1 sensor = registering
2022-05-04 09:33:59.832 - WH35CH2 sensor = registering
2022-05-04 09:33:59.832 - WH35CH3 sensor = registering
2022-05-04 09:33:59.832 - WH35CH4 sensor = registering
2022-05-04 09:33:59.832 - WH35CH5 sensor = registering
2022-05-04 09:33:59.832 - WH35CH6 sensor = registering
2022-05-04 09:33:59.832 - WH35CH7 sensor = registering
2022-05-04 09:33:59.832 - WH35CH8 sensor = registering
2022-05-04 09:33:59.832 - WH90 sensor id = 4297907 signal = 4 battery = 2.98V (OK)
2022-05-04 09:33:59.834 Loading last N hour data from data logs: 04/05/2022 09:33:00
2022-05-04 09:33:59.842 LoadRecent: Attempting to load 7 days of entries to recent data list
2022-05-04 09:34:06.768 LoadRecent: Loaded 1 new entries to recent database
2022-05-04 09:34:06.773 LoadRecentAqFromDataLogs: Attempting to load 7 days of entries to Air Quality recent data
2022-05-04 09:34:22.035 LoadRecentAqFromDataLogs: Loaded 8267 new entries to recent database
2022-05-04 09:34:22.038 LoadLast3Hour: Attempting to load 3 hour data list
2022-05-04 09:34:22.076 LoadLast3Hour: Loaded 179 entries to last 3 hour data list
2022-05-04 09:34:22.101 Creating extra sensors
2022-05-04 09:34:22.102 Lock: Station waiting for the lock
2022-05-04 09:34:22.265 855 web tags initialised
2022-05-04 09:34:22.276 Generating the daily graph data files
2022-05-04 09:34:22.502 Lock: Cumulus releasing the lock
2022-05-04 09:34:22.502 Lock: Station has the lock
2022-05-04 09:34:22.659 GetHistoricData: Starting Historic Data Process
2022-05-04 09:34:22.665 API.GetHistoricData: Get Ecowitt Historic Data
2022-05-04 09:34:22.666 API.GetHistoricData: Processing history data from 2022-05-04 09:34 to 2022-05-04 09:39...
2022-05-04 09:34:22.666 Ecowitt URL = https://api.ecowitt.net/api/v3/device/h ... _type=5min
2022-05-04 09:34:23.442 API.GetHistoricData: Ecowitt API Historic Response code: 200
2022-05-04 09:34:23.443 API.GetHistoricData: Ecowitt API Historic Response: {"code":0,"msg":"success","time":"1651649662","data":[]}
2022-05-04 09:34:23.885 Lock: Station releasing the lock
2022-05-04 09:34:23.995 Starting Ecowitt Local API
2022-05-04 09:34:23.998 Start Extra Sensors
2022-05-04 09:34:23.998 Start Timers
2022-05-04 09:34:23.998 Starting 1-minute timer
2022-05-04 09:34:24.000 Data logging interval = 0 (1 mins)
2022-05-04 09:34:24.003 RealtimeFTPLogin: Attempting realtime FTP connect to host meshka.eu on port 21
2022-05-04 09:34:24.571 RealtimeFTPLogin: Realtime FTP connected
2022-05-04 09:34:24.572 Starting Realtime timer, interval = 5 seconds
2022-05-04 09:34:24.572 Wundlist count is zero
2022-05-04 09:34:24.573 Windylist count is zero
2022-05-04 09:34:24.573 MySqlList is Empty
2022-05-04 09:34:24.575 Normal running
2022-05-04 09:34:24.598 Reading live data
2022-05-04 09:34:24.621 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-05-04 09:34:24.621 Received: FF-FF-27-00-94-01-00-D3-06-37-08-26-8E-09-27-B1-02-00-9A-07-3F-0A-00-F4-0B-00-00-0C-00-05-15-00-06-E7-F8-16-00-63-17-01-2A-00-6E-4D-00-6F-51-00-96-4E-00-BD-2C-4B-2E-0E-30-1A-32-15-1A-00-AA-22-3A-1B-00-A9-23-45-1C-00-8E-24-44-1D-00-8B-25-48-1E-FF-6C-1F-00-D6-27-37-20-00-3B-28-3D-59-00-62-00-00-00-00-61-62-66-9B-AC-60-22-19-00-13-0E-00-00-10-00-00-11-00-00-12-00-00-00-00-13-00-00-0D-DE-0D-00-00-70-00-DB-33-00-34-00-3A-00-30-00-37-03-AA-03-7C-06-33
2022-05-04 09:34:24.651 WH45 CO₂: Decoding...
2022-05-04 09:34:24.652 WH45 CO₂: temp=21.9, hum=51, pm10=5.2, pm10_24h=5.8, pm2.5=4.8, pm2.5_24h=5.5, CO₂=938, CO₂_24h=892, Battery=DC
2022-05-04 09:34:24.652 LiveData: Wind Decode >> Last=0.0, LastDir=244, Gust=1.8, (MXAvg=0.0)
2022-05-04 09:34:24.749 GetPiezoRainData: Reading piezo rain data
2022-05-04 09:34:24.771 DoCommand(CMD_READ_RAIN): Valid response
2022-05-04 09:34:24.771 Received: FF-FF-57-00-56-0E-00-00-10-00-00-00-00-11-00-00-00-00-12-00-00-00-00-13-00-00-0D-DE-0D-00-00-0F-00-64-80-00-00-83-00-00-00-00-84-00-00-00-00-85-00-00-00-00-86-00-00-00-00-81-00-00-87-00-64-00-64-00-64-00-64-00-64-00-64-00-64-00-64-00-64-00-64-88-00-00-01-7A-01-F2
2022-05-04 09:34:24.772 No rain data available? 0x7a=1
2022-05-04 09:34:24.780 ****Rain reset? First chance: raindaystart = 354.7, Raincounter = 0
2022-05-04 09:34:24.780 Leaving counter at 354.7
2022-05-04 09:34:28.815 Reading live data
2022-05-04 09:34:28.839 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-05-04 09:34:28.839 Received: FF-FF-27-00-94-01-00-D3-06-37-08-26-8E-09-27-B1-02-00-9A-07-3F-0A-00-F4-0B-00-00-0C-00-05-15-00-06-E7-F8-16-00-63-17-01-2A-00-6E-4D-00-6F-51-00-96-4E-00-BD-2C-4B-2E-0E-30-1A-32-15-1A-00-AA-22-3A-1B-00-A9-23-45-1C-00-8E-24-44-1D-00-8B-25-48-1E-FF-6C-1F-00-D6-27-37-20-00-3B-28-3D-59-00-62-00-00-00-00-61-62-66-9B-AC-60-22-19-00-13-0E-00-00-10-00-00-11-00-00-12-00-00-00-00-13-00-00-0D-DE-0D-00-00-70-00-DB-33-00-34-00-3A-00-30-00-37-03-AA-03-7C-06-33
2022-05-04 09:34:28.839 WH45 CO₂: Decoding...
2022-05-04 09:34:28.840 WH45 CO₂: temp=21.9, hum=51, pm10=5.2, pm10_24h=5.8, pm2.5=4.8, pm2.5_24h=5.5, CO₂=938, CO₂_24h=892
2022-05-04 09:34:28.840 LiveData: Wind Decode >> Last=0.0, LastDir=244, Gust=1.8, (MXAvg=5.1)
2022-05-04 09:34:29.576 Realtime[0]: Start cycle
2022-05-04 09:34:29.586 Realtime[0]: Creating realtime.txt
2022-05-04 09:34:29.592 Realtime[0]: Processing realtime file - realtimegauges.txt
2022-05-04 09:34:30.761 Realtime[0]: End cycle
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b3182 rain and solar hour issues

Post by mcrossley »

Gyvate wrote: Wed 04 May 2022 9:09 am
The local API station code does not call CMD_READ_RAIN if your rain sensor is set to traditional/tipper.
the log below says something else (red)
No it doesn't, it shows your PWS is not configured with a WS90, it does not show what CMX is configured with (which is why I already added a new message to log indicating what is configured as for the next release).

The fact that CMX is sending CMD_READ_RAIN requests tells me CMX is configured to use the piezo rain sensor. It is a dynamic setting, I can switch it to piezo and the CMD_READ_RAIN requests are sent, change the station config to traditional and they stop.


BTW, I have found the issue with the sunshine during catch-up with B-L configured, it is fixed in the next patch release.
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: b3182 rain and solar hour issues

Post by Gyvate »

I see the logic used in the program, but
imo, independent of what the rain sensor it set to in the station settings, the yearly rain from the dayfile should be displayed.
And that's not the case. If the constellation is piezo in the station settings and no WS90 connected, it shows "0.0".
This doesn't make much sense as I could switch between sensors (trad./piezo), but my yearly rain totals should be kept.
The rain recorded over the year does not disappear only because I change my sensor.
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: b3182 rain and solar hour issues

Post by mcrossley »

Yeah, the way it works at the moment is the yearly rain value (and monthly etc) is not set until contact is first made with the station rain sensor.

I'm not sure if there is a reason it was coded like this, but I can look into it. The rainfall handling code is a bit tortuous.
Post Reply