Author Topic: Regularly missing data in custom server function on GW2000  (Read 536 times)

0 Members and 1 Guest are viewing this topic.

Offline ocean

  • Member
  • *
  • Posts: 4
Regularly missing data in custom server function on GW2000
« on: August 19, 2022, 12:07:15 PM »
Hey,

for about a week I have activated the custom server function on my GW2000 gateway now and it mostly works without issues at interval 60.

However, I have noticed that in the .csv file created by a .php script on my server, there is very regularly a minute missing about every hour.

Because it happens so regularly at every single hour, I wonder what could be the cause of it? It surely can't be a connectivity issue, as that would happen more randomly and for longer I guess.

I created an Excel makro to quickly mark the cell below a missing entry, in the attachments I put an easy to access pdf sample of what I mean.

Does anyone know a solution to this? Or what causes it?

Thank you so much for your help. I appreciate it a lot.

Offline Rover1822

  • Forecaster
  • *****
  • Posts: 2017
    • Mini Wind and Solar Data project
Re: Regularly missing data in custom server function on GW2000
« Reply #1 on: August 19, 2022, 12:10:31 PM »
Are you also sending to Ecowwitt.net , and do the drop outs match?
So it is in effect missing a one minute interval?
And this happens at the hour mark?

« Last Edit: August 19, 2022, 12:12:06 PM by Rover1822 »
Ambient:
  WS-2000
  PM 2.5(2)
  WH31B(2)
  WH40E
  WH31P
EcoWitt:
  GW1100
  GW1000(4)
  WH31(2)
  WH57
  WH51(12),
  WH40
  WH5360B
  WN34S
  WittBoy WS90 + GW2000
  WS90 (other one) + GW1100
Personal Sites: Weather Cam

Offline Autofill

  • Senior Contributor
  • ****
  • Posts: 292
Re: Regularly missing data in custom server function on GW2000
« Reply #2 on: August 19, 2022, 12:13:39 PM »
Anecdotally, I believe I've noticed this too with my custom server settings for my GW2000.

I'm using an integration called ecowitt2mqtt for my home assistant add-on and have it set for 16 second updates, I'll have to do the math to confirm this but it does skip updates.

There was another chat here on the forum, other people noticing this. I think the bottom line is is just report this to Ecowitt with your numbers and then they'll fix it on the next FW update I'm sure.
Ecowitt WH2320-E
Ecowitt HP2551-C (SOLD - replaced with Home Assistant Fully Kiosk FireTab HD10)
Ecowitt GW1000
Ecowitt GW1100
Ecowitt WH69E
Ecowitt WH32B
Ecowitt WH57 (x3)
Ecowitt WH51 (x6)
Ecowitt WH41
Ecowitt WH41 (Honeywell-based USB/Supercap modified)
Ecowitt WH31 (x8)
Ecowitt WH55 (x4)
Ecowitt WH45
Ecowitt WN34S (x2)
Ecowitt WN35
Ecowitt Wittboy running on 12VDC  solar power

Offline olicat

  • Forecaster
  • *****
  • Posts: 1521
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: Regularly missing data in custom server function on GW2000
« Reply #3 on: August 19, 2022, 12:47:30 PM »
Hi!

Quote
there is very regularly a minute missing about every hour.
In fact, the interval of 60 does not mean that the console sends data every 60 seconds, but that it waits 60 seconds after a transmission.

The transmission itself also takes approx. 1 second, as can be seen from the offset of approx. 1 seconds for the individual transmissions. Or the console waits an additional second before or after a transfer.
These missing 1 or 2 seconds had already given me a lot of time for debugging my own programmes - I was looking for the fault - the loss of the 2 seconds - with me.
Apparently, however, it is really the console itself that is doing this!
For reasons that are unclear to me. Because at least the GW2000 could work with several threads and do the data transfer in parallel. Or the data transmission could be interrupt-controlled by a timer.


Because of these "rolling seconds", a transmission is missing once an hour (or 2 if there is missing 2 seconds):
Code: [Select]
#. hour min second
1   00  00  00
2   00  01  01
4   00  02  02
5   00  03  03
6   00  04  04 
7   00  05  05
8   00  06  06
9   00  07  07
10  00  08  08
11  00  09  09
12  00  10  10
13  00  11  11
14  00  12  12
15  00  13  13
16  00  14  14
17  00  15  15
18  00  16  16
19  00  17  17
20  00  18  18
11  00  19  19
12  00  20  20
23  00  21  21
24  00  22  22
25  00  23  23
26  00  24  24
27  00  25  25
28  00  26  26
29  00  27  27
30  00  28  28
31  00  29  29
32  00  31  30
33  00  32  31
34  00  33  32
35  00  34  33
36  00  35  34
37  00  36  35
38  00  37  36
39  00  38  37
40  00  39  38
41  00  40  39
42  00  41  40
43  00  42  41
44  00  43  42
45  00  44  43
46  00  45  44
47  00  46  45
48  00  47  46
49  00  48  47
50  00  49  48
51  00  50  49
52  00  51  50
53  00  52  51
54  00  53  52
55  00  54  53
56  00  55  54
57  00  56  55
58  00  57  56
59  00  58  57
60  00  59  58
61  01  00  59
--- missing minute ---
62  01  02  00

I would also like to see a change in broadcasting behaviour. Away from the pause of the entered interval length to an actual interval.
But that's just the way things are now.

By the way, this behaviour affects all Ecowitt consoles.
With the HP2551C and the HP3500, however, it is much worse, because at least with very many sensors the entered interval is never even approximately adhered to. It also happens that instead of the set 60 seconds, only every 90 seconds is sent.

Regards, Oliver

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3326
Re: Regularly missing data in custom server function on GW2000
« Reply #4 on: August 19, 2022, 01:05:05 PM »
With the HP2551C and the HP3500, however, it is much worse, because at least with very many sensors the entered interval is never even approximately adhered to.
The reason for is, as per Ecowitt, that the WiFi modem of the HP2551 and HP350x consoles needs a lot of processing power, whereas the GW1x00 and GW2000 consoles have a WiFi modem SoC with its own processor. Therefore the latter can handle more sensors and shorter posting intervals better than the HP or WS (2320E, 2910) consoles.
The "dropping" of a post after a certain time, depending on the posting interval chosen, I have also observed, and to me it looks that there is an algorithm behind which (indirectly) creates the drop when multiples of the real-world interval (which is usually different from the chosen one, and be it by one second: 17 instead of 16 seconds or 36 instead of 30) do no longer fit into the left time to complete a full minute or only a small portion of it. Would need to check a lot of different posting intervalls over let's say 10-15 minutes and look for the dropping point and compare amongst the different intervals.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline ocean

  • Member
  • *
  • Posts: 4
Re: Regularly missing data in custom server function on GW2000
« Reply #5 on: August 19, 2022, 03:17:56 PM »
Thank you very much for all your answers so far  [tup]

Are you also sending to Ecowwitt.net , and do the drop outs match?
So it is in effect missing a one minute interval?
And this happens at the hour mark?

Correct, I am also sending to ecowitt.net simultaneously, also at a 60s interval.
However, it's much harder to actually to prove drop outs there, as all the data gets saved "only" in a 5min interval on their cloud.


Hi!

Quote
there is very regularly a minute missing about every hour.
In fact, the interval of 60 does not mean that the console sends data every 60 seconds, but that it waits 60 seconds after a transmission.

The transmission itself also takes approx. 1 second, as can be seen from the offset of approx. 1 seconds for the individual transmissions. Or the console waits an additional second before or after a transfer.
These missing 1 or 2 seconds had already given me a lot of time for debugging my own programmes - I was looking for the fault - the loss of the 2 seconds - with me.
Apparently, however, it is really the console itself that is doing this!
For reasons that are unclear to me. Because at least the GW2000 could work with several threads and do the data transfer in parallel. Or the data transmission could be interrupt-controlled by a timer.


Because of these "rolling seconds", a transmission is missing once an hour (or 2 if there is missing 2 seconds):
Code: [Select]
#. hour min second
1   00  00  00
2   00  01  01
4   00  02  02
5   00  03  03
6   00  04  04 
7   00  05  05
8   00  06  06
9   00  07  07
10  00  08  08
11  00  09  09
12  00  10  10
13  00  11  11
14  00  12  12
15  00  13  13
16  00  14  14
17  00  15  15
18  00  16  16
19  00  17  17
20  00  18  18
11  00  19  19
12  00  20  20
23  00  21  21
24  00  22  22
25  00  23  23
26  00  24  24
27  00  25  25
28  00  26  26
29  00  27  27
30  00  28  28
31  00  29  29
32  00  31  30
33  00  32  31
34  00  33  32
35  00  34  33
36  00  35  34
37  00  36  35
38  00  37  36
39  00  38  37
40  00  39  38
41  00  40  39
42  00  41  40
43  00  42  41
44  00  43  42
45  00  44  43
46  00  45  44
47  00  46  45
48  00  47  46
49  00  48  47
50  00  49  48
51  00  50  49
52  00  51  50
53  00  52  51
54  00  53  52
55  00  54  53
56  00  55  54
57  00  56  55
58  00  57  56
59  00  58  57
60  00  59  58
61  01  00  59
--- missing minute ---
62  01  02  00

I would also like to see a change in broadcasting behaviour. Away from the pause of the entered interval length to an actual interval.
But that's just the way things are now.

By the way, this behaviour affects all Ecowitt consoles.
With the HP2551C and the HP3500, however, it is much worse, because at least with very many sensors the entered interval is never even approximately adhered to. It also happens that instead of the set 60 seconds, only every 90 seconds is sent.

Regards, Oliver

Just like you, for the better part of the whole week I spent debugging my own scripts, going through the console settings over and over, checking my server etc. to find if I did something wrong. But it truly seems to be due to settings we can't access. Hopefully Ecowitt will do something about it at some point.

Although, let's be honest, the vast majority of people using Ecowitts hardware won't ever notice these little inconsistencies, so I doubt it would be high on their priority list to fix.

Especially as there seems to be no actual data lost, as far as I can tell from my own observations so far?

It's just slightly annoying and activates my inner Monk  :evil:

Offline hiljo

  • Senior Contributor
  • ****
  • Posts: 257
    • Weerstation Hattem
Re: Regularly missing data in custom server function on GW2000
« Reply #6 on: August 20, 2022, 03:23:18 PM »
See also my post about this that is somewhat related to your question: https://www.wxforum.net/index.php?topic=42587.0
Ecowitt HP2550C v1.9.3
2x GW2000 v3.1.1
WittBoy WS90 v1.3.8
Smart Sensors (WFC01 & AC1100) beta tester
3x WH31, WH32, WH40, WH41, WH57
WN34L, 2x WH51, WN35, WN34D

Dutch translator for Ecowitt.

https://www.weerstationhattem.nl/
  |
  |
  |
  | 
  |
  |
  |

Offline S1m0n3

  • Member
  • *
  • Posts: 10
    • Stazione meteo - Rocca di Botte
Re: Regularly missing data in custom server function on GW2000
« Reply #7 on: August 21, 2022, 10:43:20 AM »
I don't know if it's related in any way, but I've had it happen to me already twice, that I have a different maximum wind gust on ecowitt.net and my custom server, as if the custom server is losing some records on the way. It could be a server problem and not related to the gateway.
Weather Station:

WH3080 (DIY solar radiation passive shield) with WeeWx on Raspberry Pi 3b

WS90 + GW2000

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3326
Re: Regularly missing data in custom server function on GW2000
« Reply #8 on: August 21, 2022, 10:52:51 AM »
it's maybe not really losing. It may be only a different set of data which will be accumulated and either the average or maximum value will be posted. When it posts to several services, the custom server comes last. Depending on the payload of the other postings some more time will have passed => a different interval and resulting values will/could be considered.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline ocean

  • Member
  • *
  • Posts: 4
Re: Regularly missing data in custom server function on GW2000
« Reply #9 on: December 29, 2022, 02:59:24 PM »
As a quick follow up and to anyone in the future having the same issue looking for a fix:

The only thing that as of December 2022 really works to fix the common and regular "drop outs" is to set your custom server interval at 59 seconds.
It's the only work around that I actually found works long term.