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

Ecowitt Api Historic Data

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

Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Ecowitt Api Historic Data

Post by Box »

Good afternoon

I had a power cut a couple of days ago

Lasted longer than my PC UPS but power was restored after a few hours so my UPS protected GW1000 kept uploading to Ecowitt via the Router (also UPS protected)

When I came home a couple of days later I noticed the PC had not been restarted so I though, great - a chance to see the APi work

As far as I can see from MX Diags a process started API.GetHistoricData

Two lines
GetHistoricData: Starting Historic Data Process
API.GetHistoricData: Get Ecowitt Historic Data


As far as I can see no data has been downloaded and that process never reported complete but I have a number of lines
DoCommand(CMD_GW1000_LIVEDATA): No response received
GetLiveData: Invalid response

Abut 40 muintes apart


Is that the API call failing?
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Ecowitt Api Historic Data

Post by mcrossley »

No, those errors are requests for live data failing. They will happen occasionally.

Please post your MXdiags file for the restart of CMX.
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

Here you are


2022-03-10 19:57:06.542 ========================== Cumulus MX starting ==========================
2022-03-10 19:57:06.585 Command line: "C:\CumulusMX\CumulusMX.exe"
2022-03-10 19:57:06.585 Cumulus MX v.3.15.0 build 3169
2022-03-10 19:57:06.691 Platform: Win32NT
2022-03-10 19:57:06.692 OS version: Microsoft Windows NT 6.2.9200.0
2022-03-10 19:57:06.726 Current culture: English (United Kingdom) [en-GB]
2022-03-10 19:57:12.851 Checking required folders
2022-03-10 19:57:12.872 Reading Cumulus.ini file
2022-03-10 19:57:12.909 AvgSpdMins=10 AvgSpdTime=00:10:00
2022-03-10 19:57:12.910 Cumulus start date: 29 December 2021
2022-03-10 19:57:12.962 Reading Cumulus.ini file completed
2022-03-10 19:57:12.962 Directory separator=[\] Decimal separator=[.] List separator=[,]
2022-03-10 19:57:12.962 Date separator=[/] Time separator=[:]
2022-03-10 19:57:12.962 Standard time zone name: GMT Standard Time
2022-03-10 19:57:12.962 Daylight saving time name: GMT Summer Time
2022-03-10 19:57:12.962 Daylight saving time? False
2022-03-10 19:57:12.962 10/03/2022 7:57:12 PM
2022-03-10 19:57:12.962 Stop second instance: No other running instances of Cumulus found
2022-03-10 19:57:12.962 No start-up delay - disabled
2022-03-10 19:57:12.962 No start-up PING
2022-03-10 19:57:12.965 Data path = data\
2022-03-10 19:57:13.154 BackupData: Creating backup folder backup\20220310195713\
2022-03-10 19:57:13.533 Created backup folder backup\20220310195713\
2022-03-10 19:57:13.533 Debug logging :disabled
2022-03-10 19:57:13.533 Data logging :disabled
2022-03-10 19:57:13.533 FTP logging :disabled
2022-03-10 19:57:13.533 Email logging :disabled
2022-03-10 19:57:13.533 Spike logging :disabled
2022-03-10 19:57:13.533 Logging interval = 10 mins
2022-03-10 19:57:13.533 Real time interval = 30 secs
2022-03-10 19:57:13.533 NoSensorCheck = 0
2022-03-10 19:57:13.575 Calculating sunrise and sunset times
2022-03-10 19:57:13.577 Sunrise: 06:45:27
2022-03-10 19:57:13.577 Sunset : 18:17:14
2022-03-10 19:57:13.577 Tomorrow sunrise: 06:43:17
2022-03-10 19:57:13.577 Tomorrow sunset : 18:18:51
2022-03-10 19:57:13.586 Station type: GW1000
2022-03-10 19:57:13.586 WindUnit=mph RainUnit=mm TempUnit=°C PressureUnit=hPa
2022-03-10 19:57:13.586 YTDRain=0.000 Year=0
2022-03-10 19:57:13.586 RainDayThreshold=-1.000
2022-03-10 19:57:13.586 Roll over hour=0
2022-03-10 19:57:13.587 Offsets and Multipliers:
2022-03-10 19:57:13.587 PO=0.000 TO=0.000 HO=0 WDO=0 ITO=0.000 SO=0.000 UVO=0.000
2022-03-10 19:57:13.587 PM=1.000 WSM=1.000 WGM=1.000 TM=1.000 TM2=0.000 HM=1.000 HM2=0.000 RM=1.000 SM=1.000 UVM=1.000
2022-03-10 19:57:13.587 Spike removal:
2022-03-10 19:57:13.587 TD=999.000 GD=999.000 WD=999.000 HD=999.000 PD=999.000 MR=999.000 MH=999.000
2022-03-10 19:57:13.588 Limits:
2022-03-10 19:57:13.588 TH=60.0 TL=-60.0 DH=40.0 PH=1090.0 PL=870.0 GH=90.000
2022-03-10 19:57:13.588 Primary AQ Sensor = Ecowitt CO2
2022-03-10 19:57:13.638 Cumulus Starting
2022-03-10 19:57:13.652 HTML root path = C:\CumulusMX\interface
2022-03-10 19:57:13.933 You are not running the latest version of Cumulus MX, build 3171 is available.
2022-03-10 19:57:13.991 Cumulus running at: http://localhost:8998/
2022-03-10 19:57:13.993 Opening station
2022-03-10 19:57:14.036 Last update time from today.ini: 10/03/2022 7:50:00 PM
2022-03-10 19:57:14.036 Read today file: Date = 10/03/2022, LastUpdateTime = 10/03/2022 7:50:00 PM, Month = 3
2022-03-10 19:57:14.036 Sensor clock 12:00:00 AM
2022-03-10 19:57:14.036 Station clock 12:00:00 AM
2022-03-10 19:57:14.037 ET today = 0.00
2022-03-10 19:57:14.060 ReadTodayfile: Rain day start = 193.1
2022-03-10 19:57:14.060 ReadTodayfile: set initialiseRainCounterOnFirstData false
2022-03-10 19:57:14.067 C:\CumulusMX\data\alltime.ini
2022-03-10 19:57:14.068 Alltime.ini file read
2022-03-10 19:57:14.072 MonthlyAlltime.ini file read
2022-03-10 19:57:14.077 Month.ini file read
2022-03-10 19:57:14.082 Year.ini file read
2022-03-10 19:57:14.083 LoadDayFile: Attempting to load the day file
2022-03-10 19:57:14.122 LoadDayFile: Loaded 443 entries to recent daily data list
2022-03-10 19:57:14.124 Finding raintoday from logfile data\Mar22log.txt
2022-03-10 19:57:14.124 Expecting listsep=, decimal=.
2022-03-10 19:57:14.136 Midnight rain found in the following entry:
2022-03-10 19:57:14.136 10/03/22,19:40,7.5,75,3.4,6,15,127,0.0,0.0,1007.5,193.1,16.7,56,4,5.7,7.5,0.0,0,0.00,0.00,4.1,0,0.0,138,0.0,0.0,5.7,7.5
2022-03-10 19:57:14.136 Midnight rain found, setting midnight rain count = 193.1
2022-03-10 19:57:14.136 Checking rain counter = 193.1
2022-03-10 19:57:14.136 Rain counter set to = 193.1
2022-03-10 19:57:14.137 Getting rain totals, rain season start = 1
2022-03-10 19:57:14.137 Today = 10/03/22
2022-03-10 19:57:14.138 Rainthismonth from dayfile: 33.7
2022-03-10 19:57:14.138 Rainthisyear from dayfile: 193.1
2022-03-10 19:57:14.140 Running GW-1000 auto-discovery...
2022-03-10 19:57:17.852 Using IP address = 192.168.1.242 Port = 45000
2022-03-10 19:57:18.867 Connected OK
2022-03-10 19:57:18.867 Reading firmware version
2022-03-10 19:57:18.898 GW1000 firmware version: GW1000A_V1.6.3
2022-03-10 19:57:18.899 Reading GW1000 system info
2022-03-10 19:57:18.929 GW1000 Info: frequency: 868MHz, main sensor: WH65, date/time: 10 March 2022 7:57:19 PM, Automatic DST adjustment: True
2022-03-10 19:57:18.929 Reading sensor ids
2022-03-10 19:57:18.993 Loading last N hour data from data logs: 10/03/2022 7:50:00 PM
2022-03-10 19:57:18.995 LoadRecent: Attempting to load 7 days of entries to recent data list
2022-03-10 19:57:19.011 LoadRecent: Loaded 0 new entries to recent database
2022-03-10 19:57:19.025 LoadLast3Hour: Attempting to load 3 hour data list
2022-03-10 19:57:19.087 LoadLast3Hour: Loaded 18 entries to last 3 hour data list
2022-03-10 19:57:19.088 Creating extra sensors
2022-03-10 19:57:19.106 844 web tags initialised
2022-03-10 19:57:19.746 GetHistoricData: Starting Historic Data Process
2022-03-10 19:57:19.749 API.GetHistoricData: Get Ecowitt Historic Data
2022-03-10 19:57:20.889 Starting GW1000
2022-03-10 19:57:20.891 Start Extra Sensors
2022-03-10 19:57:20.891 Start Timers
2022-03-10 19:57:20.891 Starting 1-minute timer
2022-03-10 19:57:20.891 Data logging interval = 2 (10 mins)
2022-03-10 19:57:20.891 Realtime not enabled
2022-03-10 19:57:20.891 Normal running
2022-03-10 20:00:00.153 Hour changed: 20
2022-03-10 20:00:00.154 Calculating sunrise and sunset times
2022-03-10 20:00:00.154 Sunrise: 06:45:27
2022-03-10 20:00:00.154 Sunset : 18:17:14
2022-03-10 20:00:00.154 Tomorrow sunrise: 06:43:17
2022-03-10 20:00:00.154 Tomorrow sunset : 18:18:51
2022-03-10 20:00:00.645 DoLogFile: Writing log entry for 10/03/2022 8:00:00 PM
2022-03-10 20:00:00.646 DoLogFile: log entry for 10/03/2022 8:00:00 PM written
2022-03-10 20:00:00.646 Writing today.ini, LastUpdateTime = 10/03/2022 8:00:00 PM raindaystart = 193.1 rain counter = 193.1
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Ecowitt Api Historic Data

Post by mcrossley »

OK, so no error, but no data either.

You will have to run the catch-up again with debug and data logging enabled.
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

ok

standby!
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

2022-03-13 18:25:59.737 ========================== Cumulus MX starting ==========================
2022-03-13 18:25:59.738 Command line: "C:\CumulusMX\CumulusMX.exe"
2022-03-13 18:25:59.738 Cumulus MX v.3.15.0 build 3169
2022-03-13 18:25:59.945 Platform: Win32NT
2022-03-13 18:25:59.945 OS version: Microsoft Windows NT 6.2.9200.0
2022-03-13 18:26:00.153 Current culture: English (United Kingdom) [en-GB]
2022-03-13 18:26:08.769 Checking required folders
2022-03-13 18:26:08.790 Reading Cumulus.ini file
2022-03-13 18:26:08.805 AvgSpdMins=10 AvgSpdTime=00:10:00
2022-03-13 18:26:08.806 Cumulus start date: 29 December 2021
2022-03-13 18:26:09.338 Reading Cumulus.ini file completed
2022-03-13 18:26:09.366 Directory separator=[\] Decimal separator=[.] List separator=[,]
2022-03-13 18:26:09.366 Date separator=[/] Time separator=[:]
2022-03-13 18:26:09.366 Standard time zone name: GMT Standard Time
2022-03-13 18:26:09.367 Daylight saving time name: GMT Summer Time
2022-03-13 18:26:09.367 Daylight saving time? False
2022-03-13 18:26:09.367 13/03/2022 6:26:09 PM
2022-03-13 18:26:09.367 Stop second instance: No other running instances of Cumulus found
2022-03-13 18:26:09.368 No start-up delay - disabled
2022-03-13 18:26:09.368 No start-up PING
2022-03-13 18:26:09.377 Data path = data\
2022-03-13 18:26:10.143 BackupData: Creating backup folder backup\20220313182610\
2022-03-13 18:26:10.236 Created backup folder backup\20220313182610\
2022-03-13 18:26:10.236 Debug logging :enabled
2022-03-13 18:26:10.236 Data logging :enabled
2022-03-13 18:26:10.236 FTP logging :enabled
2022-03-13 18:26:10.236 Email logging :disabled
2022-03-13 18:26:10.236 Spike logging :enabled
2022-03-13 18:26:10.236 Logging interval = 10 mins
2022-03-13 18:26:10.236 Real time interval = 30 secs
2022-03-13 18:26:10.237 NoSensorCheck = 0
2022-03-13 18:26:10.248 Calculating sunrise and sunset times
2022-03-13 18:26:10.250 Sunrise: 06:38:55
2022-03-13 18:26:10.250 Sunset : 18:22:07
2022-03-13 18:26:10.250 Tomorrow sunrise: 06:36:44
2022-03-13 18:26:10.250 Tomorrow sunset : 18:23:44
2022-03-13 18:26:10.250 Tomorrow length diff: 228
2022-03-13 18:26:10.308 Station type: GW1000
2022-03-13 18:26:10.309 WindUnit=mph RainUnit=mm TempUnit=°C PressureUnit=hPa
2022-03-13 18:26:10.309 YTDRain=0.000 Year=0
2022-03-13 18:26:10.309 RainDayThreshold=-1.000
2022-03-13 18:26:10.309 Roll over hour=0
2022-03-13 18:26:10.310 Offsets and Multipliers:
2022-03-13 18:26:10.310 PO=0.000 TO=0.000 HO=0 WDO=0 ITO=0.000 SO=0.000 UVO=0.000
2022-03-13 18:26:10.310 PM=1.000 WSM=1.000 WGM=1.000 TM=1.000 TM2=0.000 HM=1.000 HM2=0.000 RM=1.000 SM=1.000 UVM=1.000
2022-03-13 18:26:10.310 Spike removal:
2022-03-13 18:26:10.310 TD=999.000 GD=999.000 WD=999.000 HD=999.000 PD=999.000 MR=999.000 MH=999.000
2022-03-13 18:26:10.310 Limits:
2022-03-13 18:26:10.310 TH=60.0 TL=-60.0 DH=40.0 PH=1090.0 PL=870.0 GH=90.000
2022-03-13 18:26:10.310 Primary AQ Sensor = Ecowitt CO2
2022-03-13 18:26:10.734 Cumulus Starting
2022-03-13 18:26:11.029 HTML root path = C:\CumulusMX\interface
2022-03-13 18:26:11.173 You are not running the latest version of Cumulus MX, build 3171 is available.
2022-03-13 18:26:12.558 Cumulus running at: http://localhost:8998/
2022-03-13 18:26:12.583 Lock: Cumulus waiting for the lock
2022-03-13 18:26:12.643 Lock: Cumulus has lock
2022-03-13 18:26:12.643 Opening station
2022-03-13 18:26:12.701 Last update time from today.ini: 13/03/2022 6:20:00 PM
2022-03-13 18:26:12.716 Read today file: Date = 13/03/2022, LastUpdateTime = 13/03/2022 6:20:00 PM, Month = 3
2022-03-13 18:26:12.716 Sensor clock 12:00:00 AM
2022-03-13 18:26:12.716 Station clock 12:00:00 AM
2022-03-13 18:26:12.716 ET today = 0.00
2022-03-13 18:26:12.741 ReadTodayfile: Rain day start = 240.1
2022-03-13 18:26:12.741 ReadTodayfile: set initialiseRainCounterOnFirstData false
2022-03-13 18:26:12.747 C:\CumulusMX\data\alltime.ini
2022-03-13 18:26:12.748 Alltime.ini file read
2022-03-13 18:26:12.753 MonthlyAlltime.ini file read
2022-03-13 18:26:12.758 Month.ini file read
2022-03-13 18:26:12.762 Year.ini file read
2022-03-13 18:26:12.763 LoadDayFile: Attempting to load the day file
2022-03-13 18:26:12.919 LoadDayFile: Dayfile parse = 155 ms
2022-03-13 18:26:12.919 LoadDayFile: Loaded 446 entries to recent daily data list
2022-03-13 18:26:12.920 Finding raintoday from logfile data\Mar22log.txt
2022-03-13 18:26:12.920 Expecting listsep=, decimal=.
2022-03-13 18:26:12.934 Midnight rain found in the following entry:
2022-03-13 18:26:12.934 13/03/22,00:00,8.0,83,5.3,12,27,178,0.0,0.0,995.7,240.1,15.8,67,8,4.9,8.0,0.0,0,0.00,0.00,3.1,0,0.0,227,0.0,0.0,4.9,8.0
2022-03-13 18:26:12.936 Midnight rain found, setting midnight rain count = 240.1
2022-03-13 18:26:12.936 Checking rain counter = 242.7
2022-03-13 18:26:12.936 Rain counter set to = 242.7
2022-03-13 18:26:12.937 Getting rain totals, rain season start = 1
2022-03-13 18:26:12.937 Today = 13/03/22
2022-03-13 18:26:12.937 Rainthismonth from dayfile: 80.7
2022-03-13 18:26:12.937 Rainthisyear from dayfile: 240.1
2022-03-13 18:26:12.940 Running GW-1000 auto-discovery...
2022-03-13 18:26:13.191 Using local IP address 192.168.1.180 to discover the GW1000
2022-03-13 18:26:13.428 Discovered GW1000 device: IP=192.168.1.242, MAC=48:3F:DA:53:9E:33
2022-03-13 18:26:16.897 Discovered one GW1000 device
2022-03-13 18:26:16.897 Using IP address = 192.168.1.242 Port = 45000
2022-03-13 18:26:16.897 GW1000 Connect attempt 1
2022-03-13 18:26:17.914 GW1000 reconnected
2022-03-13 18:26:17.914 Connected OK
2022-03-13 18:26:17.914 Reading firmware version
2022-03-13 18:26:17.944 DoCommand(CMD_READ_FIRMWARE_VERSION): Valid response
2022-03-13 18:26:17.944 Received: FF-FF-50-12-0E-47-57-31-30-30-30-41-5F-56-31-2E-36-2E-33-BB
2022-03-13 18:26:17.944 GW1000 firmware version: GW1000A_V1.6.3
2022-03-13 18:26:17.945 Reading GW1000 system info
2022-03-13 18:26:17.976 DoCommand(CMD_READ_SSSS): Valid response
2022-03-13 18:26:17.976 Received: FF-FF-30-0B-01-01-62-2E-37-49-27-01-75
2022-03-13 18:26:17.976 GW1000 Info: frequency: 868MHz, main sensor: WH65, date/time: 13 March 2022 6:26:17 PM, Automatic DST adjustment: True
2022-03-13 18:26:17.976 Reading sensor ids
2022-03-13 18:26:18.007 DoCommand(CMD_READ_SENSOR_ID_NEW): Valid response
2022-03-13 18:26:18.007 Received: FF-FF-3C-01-15-00-FF-FF-FF-FF-00-00-01-00-00-00-0B-5C-04-02-FF-FF-FF-FF-FF-00-03-00-01-06-A5-00-04-05-00-00-00-C9-00-04-06-00-00-00-4A-00-04-07-00-00-00-D1-00-04-08-00-00-00-35-00-04-09-FF-FF-FF-FF-00-00-0A-FF-FF-FF-FF-00-00-0B-00-00-00-35-00-00-0C-FF-FF-FF-FF-00-00-0D-FF-FF-FF-FF-00-00-0E-FF-FF-FF-FF-00-00-0F-FF-FF-FF-FF-00-00-10-FF-FF-FF-FF-00-00-11-FF-FF-FF-FF-00-00-12-FF-FF-FF-FF-00-00-13-FF-FF-FF-FF-00-00-14-FF-FF-FF-FF-00-00-15-FF-FF-FF-FF-00-00-16-FF-FF-FF-FF-0F-00-17-FF-FF-FF-FF-0F-00-18-FF-FF-FF-FF-0F-00-19-FF-FF-FF-FF-0F-00-1A-FF-FF-FF-FF-FF-00-1B-FF-FF-FF-FF-FF-00-1C-FF-FF-FF-FF-FF-00-1D-FF-FF-FF-FF-FF-00-1E-FF-FF-FF-FF-FF-00-1F-FF-FF-FF-FF-FF-00-20-FF-FF-FF-FF-FF-00-21-FF-FF-FF-FF-FF-00-22-FF-FF-FF-FF-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-39-C6-06-00-8A
2022-03-13 18:26:18.024 - WH65 sensor = registering
2022-03-13 18:26:18.024 - WH68 sensor id = 11 signal = 4 battery = 1.8V (OK)
2022-03-13 18:26:18.024 - WH80 sensor = registering
2022-03-13 18:26:18.024 - WH40 sensor id = 67237 signal = 4 battery = n/a
2022-03-13 18:26:18.024 - WH26 sensor id = 201 signal = 4 battery = OK
2022-03-13 18:26:18.024 - WH31CH1 sensor id = 74 signal = 4 battery = 0 (OK)
2022-03-13 18:26:18.024 - WH31CH2 sensor id = 209 signal = 4 battery = 0 (OK)
2022-03-13 18:26:18.024 - WH31CH3 sensor id = 53 signal = 4 battery = 0 (OK)
2022-03-13 18:26:18.024 - WH31CH4 sensor = registering
2022-03-13 18:26:18.024 - WH31CH5 sensor = registering
2022-03-13 18:26:18.024 - WH31CH6 sensor id = 53 signal = 0 battery = 0 (OK)
2022-03-13 18:26:18.025 - WH31CH7 sensor = registering
2022-03-13 18:26:18.025 - WH31CH8 sensor = registering
2022-03-13 18:26:18.025 - WH51CH1 sensor = registering
2022-03-13 18:26:18.025 - WH51CH2 sensor = registering
2022-03-13 18:26:18.025 - WH51CH3 sensor = registering
2022-03-13 18:26:18.025 - WH51CH4 sensor = registering
2022-03-13 18:26:18.025 - WH51CH5 sensor = registering
2022-03-13 18:26:18.025 - WH51CH6 sensor = registering
2022-03-13 18:26:18.025 - WH51CH7 sensor = registering
2022-03-13 18:26:18.025 - WH51CH8 sensor = registering
2022-03-13 18:26:18.025 - WH41CH1 sensor = registering
2022-03-13 18:26:18.025 - WH41CH2 sensor = registering
2022-03-13 18:26:18.025 - WH41CH3 sensor = registering
2022-03-13 18:26:18.025 - WH41CH4 sensor = registering
2022-03-13 18:26:18.025 - WH57 sensor = registering
2022-03-13 18:26:18.025 - WH55CH1 sensor = registering
2022-03-13 18:26:18.025 - WH55CH2 sensor = registering
2022-03-13 18:26:18.025 - WH55CH3 sensor = registering
2022-03-13 18:26:18.025 - WH55CH4 sensor = registering
2022-03-13 18:26:18.025 - WH34CH1 sensor = registering
2022-03-13 18:26:18.025 - WH34CH2 sensor = registering
2022-03-13 18:26:18.025 - WH34CH3 sensor = registering
2022-03-13 18:26:18.025 - WH34CH4 sensor = registering
2022-03-13 18:26:18.025 - WH34CH5 sensor = registering
2022-03-13 18:26:18.026 - WH34CH6 sensor = registering
2022-03-13 18:26:18.026 - WH34CH7 sensor = registering
2022-03-13 18:26:18.026 - WH34CH8 sensor = registering
2022-03-13 18:26:18.026 Loading last N hour data from data logs: 13/03/2022 6:20:00 PM
2022-03-13 18:26:18.027 LoadRecent: Attempting to load 7 days of entries to recent data list
2022-03-13 18:26:18.048 LoadRecent: Loaded 0 new entries to recent database
2022-03-13 18:26:18.062 LoadLast3Hour: Attempting to load 3 hour data list
2022-03-13 18:26:18.078 LoadLast3Hour: Loaded 181 entries to last 3 hour data list
2022-03-13 18:26:18.081 Creating extra sensors
2022-03-13 18:26:18.081 Lock: Station waiting for the lock
2022-03-13 18:26:18.098 844 web tags initialised
2022-03-13 18:26:18.099 Generating the daily graph data files
2022-03-13 18:26:18.100 Lock: Cumulus releasing the lock
2022-03-13 18:26:18.100 Lock: Station has the lock
2022-03-13 18:26:20.239 GetHistoricData: Starting Historic Data Process
2022-03-13 18:26:20.242 API.GetHistoricData: Get Ecowitt Historic Data
2022-03-13 18:26:20.242 Ecowitt URL = https://api.ecowitt.net/api/v3/device/h ... _type=5min
2022-03-13 18:26:21.693 API.GetHistoricData: Ecowitt API Historic Response code: 200
2022-03-13 18:26:21.693 API.GetHistoricData: Ecowitt API Historic Response: {"code":0,"msg":"success","time":"1647195981","data":[]}
2022-03-13 18:26:22.706 Lock: Station releasing the lock
2022-03-13 18:26:22.716 Starting GW1000
2022-03-13 18:26:22.718 Start Extra Sensors
2022-03-13 18:26:22.718 Start Timers
2022-03-13 18:26:22.718 Starting 1-minute timer
2022-03-13 18:26:22.718 Data logging interval = 2 (10 mins)
2022-03-13 18:26:22.718 Realtime not enabled
2022-03-13 18:26:22.718 Wundlist count is zero
2022-03-13 18:26:22.718 Windylist count is zero
2022-03-13 18:26:22.718 MySqlList is Empty
2022-03-13 18:26:22.719 Normal running
2022-03-13 18:26:23.101 Reading live data
2022-03-13 18:26:23.133 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:26:23.133 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E6-09-27-67-02-00-4A-07-54-0A-00-FE-0B-00-03-0C-00-05-15-00-00-00-00-16-00-00-17-00-1A-00-4C-22-51-1B-00-4D-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-CF
2022-03-13 18:26:23.140 WH45 CO₂: Decoding...
2022-03-13 18:26:23.140 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320, Battery=DC
2022-03-13 18:26:23.140 LiveData: Wind Decode >> Last=0.7, LastDir=254, Gust=1.1, (MXAvg=0.0)
2022-03-13 18:26:33.258 Reading live data
2022-03-13 18:26:33.288 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:26:33.288 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E6-09-27-67-02-00-4A-07-54-0A-00-FE-0B-00-03-0C-00-05-15-00-00-00-00-16-00-00-17-00-1A-00-4C-22-51-1B-00-4D-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-CF
2022-03-13 18:26:33.288 WH45 CO₂: Decoding...
2022-03-13 18:26:33.288 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:26:33.288 LiveData: Wind Decode >> Last=0.7, LastDir=254, Gust=1.1, (MXAvg=2.8)
2022-03-13 18:26:44.757 Reading live data
2022-03-13 18:26:44.884 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:26:44.884 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E7-09-27-68-02-00-4A-07-54-0A-00-FE-0B-00-06-0C-00-0A-15-00-00-00-00-16-00-00-17-00-1A-00-4C-22-51-1B-00-4D-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-D9
2022-03-13 18:26:44.884 WH45 CO₂: Decoding...
2022-03-13 18:26:44.884 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:26:44.884 LiveData: Wind Decode >> Last=1.3, LastDir=254, Gust=2.2, (MXAvg=2.5)
2022-03-13 18:26:57.272 Reading live data
2022-03-13 18:26:57.336 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:26:57.336 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E7-09-27-68-02-00-4A-07-54-0A-00-FE-0B-00-00-0C-00-00-15-00-00-00-00-16-00-00-17-00-1A-00-4C-22-51-1B-00-4D-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-C9
2022-03-13 18:26:57.336 WH45 CO₂: Decoding...
2022-03-13 18:26:57.336 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:26:57.336 LiveData: Wind Decode >> Last=0.0, LastDir=254, Gust=0.0, (MXAvg=2.3)
2022-03-13 18:27:07.785 Reading live data
2022-03-13 18:27:07.913 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:27:07.914 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E7-09-27-68-02-00-4A-07-54-0A-00-FE-0B-00-00-0C-00-00-15-00-00-00-00-16-00-00-17-00-1A-00-4B-22-52-1B-00-4D-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-C9
2022-03-13 18:27:07.914 WH45 CO₂: Decoding...
2022-03-13 18:27:07.914 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:27:07.914 LiveData: Wind Decode >> Last=0.0, LastDir=254, Gust=0.0, (MXAvg=2.0)
2022-03-13 18:27:09.749 WS Connect From : 127.0.0.1
2022-03-13 18:27:20.556 Reading live data
2022-03-13 18:27:20.587 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:27:20.587 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E7-09-27-68-02-00-4A-07-54-0A-00-FE-0B-00-00-0C-00-00-15-00-00-00-00-16-00-00-17-00-1A-00-4B-22-52-1B-00-4D-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-C9
2022-03-13 18:27:20.587 WH45 CO₂: Decoding...
2022-03-13 18:27:20.587 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:27:20.587 LiveData: Wind Decode >> Last=0.0, LastDir=254, Gust=0.0, (MXAvg=1.6)
2022-03-13 18:27:32.803 Reading live data
2022-03-13 18:27:32.833 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:27:32.833 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E7-09-27-68-02-00-4A-07-54-0A-00-FE-0B-00-03-0C-00-05-15-00-00-00-00-16-00-00-17-00-1A-00-4B-22-52-1B-00-4C-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-D0
2022-03-13 18:27:32.833 WH45 CO₂: Decoding...
2022-03-13 18:27:32.833 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:27:32.833 LiveData: Wind Decode >> Last=0.7, LastDir=254, Gust=1.1, (MXAvg=1.4)
2022-03-13 18:27:44.522 Reading live data
2022-03-13 18:27:44.554 DoCommand(CMD_GW1000_LIVEDATA): Valid response
2022-03-13 18:27:44.554 Received: FF-FF-27-00-6F-01-00-A1-06-3B-08-26-E7-09-27-68-02-00-4A-07-54-0A-00-FE-0B-00-03-0C-00-05-15-00-00-00-00-16-00-00-17-00-1A-00-4B-22-52-1B-00-4C-23-56-1C-00-66-4C-0F-00-00-00-FF-5C-FF-06-FF-FF-FF-FF-FF-FF-FF-FF-19-00-A8-0E-00-00-10-00-1A-11-00-1A-12-00-00-03-41-13-00-00-09-7B-0D-01-3E-70-00-68-51-00-17-00-42-00-13-00-2B-01-47-01-40-06-D0
2022-03-13 18:27:44.554 WH45 CO₂: Decoding...
2022-03-13 18:27:44.554 WH45 CO₂: temp=10.4, hum=81, pm10=2.3, pm10_24h=6.6, pm2.5=1.9, pm2.5_24h=4.3, CO₂=327, CO₂_24h=320
2022-03-13 18:27:44.554 LiveData: Wind Decode >> Last=0.7, LastDir=254, Gust=1.1, (MXAvg=1.3)


So it seems to be accessing the API successfully but there doesnt appear to be any data from the period

If I look on ecowitt.net there is data there during the downtime, at least in the graphs
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Ecowitt Api Historic Data

Post by mcrossley »

No data for that period, as CMX only requested data for the period...
start_date=2022-03-13 18:21:00
end_date=2022-03-13 18:26:20

For which there will be no data available as Ecowitt logs every 5 minutes, and never sends the last record.

So you need to save your current data, rewind to an old backup using one of the backup folders, and restart CMX again (with the data logging still enabled - so do not restore the Cumulus.ini file).

PS: It is best to post the log files as attachments rather than pasting the content.
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

mcrossley wrote: Sun 13 Mar 2022 6:59 pm No data for that period, as CMX only requested data for the period...
start_date=2022-03-13 18:21:00
end_date=2022-03-13 18:26:20

For which there will be no data available as Ecowitt logs every 5 minutes, and never sends the last record.

So you need to save your current data, rewind to an old backup using one of the backup folders, and restart CMX again (with the data logging still enabled - so do not restore the Cumulus.ini file).

PS: It is best to post the log files as attachments rather than pasting the content.
Ah

so how do i rewind? just delete the most recent backups until I am before the break in data?
User avatar
PaulMy
Posts: 3830
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Ecowitt Api Historic Data

Post by PaulMy »

so how do i rewind? just delete the most recent backups until I am before the break in data?
Leave all the backups as is. Find the latest good backup in your \backup folder and, with CumulusMX stopped, copy the content to your \data folder overwriting the existing files (but in this case not the Cumulus.ini file as Mark mentions) and restart.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm
Image
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

PaulMy wrote: Sun 13 Mar 2022 10:54 pm
so how do i rewind? just delete the most recent backups until I am before the break in data?
Leave all the backups as is. Find the latest good backup in your \backup folder and, with CumulusMX stopped, copy the content to your \data folder overwriting the existing files (but in this case not the Cumulus.ini file as Mark mentions) and restart.

Enjoy,
Paul
Many thanks

Very clear direction- I need it!!
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

Well I did that and from the attached mxdiags it seems to have downloaded loads of stuff but there still seems to be a gap in the Mar22log.txt file and I cannot see the data in the data viewer

The gap is between 0130 on 8 Mar and 1930 on the 10th

Is there some sort of housekeeping actvity that hasn't happened yet?
You do not have the required permissions to view the files attached to this post.
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Ecowitt Api Historic Data

Post by Phil23 »

From what I've found with WLL, with it's a test install on my laptop, is that Sleeping during a power failure is the issue.
When Windows resumes, CMX receives data again & hence creates the gap.

Not really a CMX issue as MX has no knowledge of it having been asleep for the matter of hours.

I did look for a way of trigger an MX shutdown before Sleep, but all the triggers seem too late to act on.
Only other possibility I haven't tried yet is to trigger a task to shut MX down when the laptop transitions for AC power to Battery.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
SamiS
Posts: 374
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Ecowitt Api Historic Data

Post by SamiS »

Phil23 wrote: Mon 14 Mar 2022 9:02 pm I did look for a way of trigger an MX shutdown before Sleep, but all the triggers seem too late to act on.
Only other possibility I haven't tried yet is to trigger a task to shut MX down when the laptop transitions for AC power to Battery.
Just a thought that came to my mind… Maybe you could query battery percentage / estimated runtime from a powershell script and trigger shutdown if it is too low. Then run that script as sceduled task at desired intervals. This would prevent triggering shutdown on short power outages.
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Ecowitt Api Historic Data

Post by Phil23 »

Ok,

For those who are familiar with Task Scheduling, I've just found that I can have CMX Shutdown Graciously when I pull the power from my laptop.
This would at least mean that MX would not be left open while the Laptop is in the Sleep State.

The Trigger for the Scheduled Task is Event ID 105.
Screenshot 2022-03-15 083454.jpg
It can then be used to run the CumulusShutdown.exe script I've created & mentioned elsewhere.

Still won't address the issue of a Laptop Going to Sleep because of MS changing power settings for AC, but will avoid the data loss during power outages.
At least for Laptops with viable batteries).

Cheers.
You do not have the required permissions to view the files attached to this post.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Box
Posts: 40
Joined: Sun 15 Nov 2020 8:57 am
Weather Station: FineOffset Gw1002
Operating System: Win10

Re: Ecowitt Api Historic Data

Post by Box »

Phil23 wrote: Mon 14 Mar 2022 9:02 pm From what I've found with WLL, with it's a test install on my laptop, is that Sleeping during a power failure is the issue.
When Windows resumes, CMX receives data again & hence creates the gap.

Not really a CMX issue as MX has no knowledge of it having been asleep for the matter of hours.

I did look for a way of trigger an MX shutdown before Sleep, but all the triggers seem too late to act on.
Only other possibility I haven't tried yet is to trigger a task to shut MX down when the laptop transitions for AC power to Battery.
That makes sense, but I thought the point of the API was to fill in gaps in the data record?

In my case data is being downloaded but doesn't seems to go anywhere

Or maybe I am missing something...not impossible :lol:
Post Reply