I have just run a similar configuration (simulator with 2 sec loop interval 
and Ecowitt gateway driver as a service with a 20 sec poll interval) and I 
received the expected results. Not saying there is no issue, but I did not 
notice it on my test. To look into this further I am going to need some 
more information:

1. provide a debug startup log - edit weewx.conf, set debug = 1, save 
weewx.conf and restart WeeWX. Take a log extract showing the full WeeWX 
startup sequence and post it here without alteration.

2. '*I have found a way to generate test lightning*' - what does this mean 
and exactly what have you done to generate this test data?

3. '*the numbers recorded in the database*' - what field in the database? 
are you manually querying the database - if so with what query, or are you 
using a report - if so with what tags/content? 

4. '*the gw1000 interface report*s' - what does this mean?

Gary
On Saturday, 8 April 2023 at 01:07:09 UTC+10 Mike wrote:

> Hi,
> I have a davis weather station which is polled roughly every 2 seconds. I 
> have recently purchased an ecowitt wh57 lightning sensor and gw1000 gateway 
> which I am polling using the user.gw1000 driver found here: 
> https://github.com/gjr80/weewx-gw1000 as a service in weewx. I have found 
> a way to generate test lightning and have noticed that the numbers recorded 
> in the database are higher than the gw1000 interface reports. All other 
> entries such as distance and time are recorded correctly.
>
> For example 1 strike would be recorded in the db as 10 strikes.
>
> After some messing around I noticed that 10 is basically the number of 
> loops my davis was doing in the 20 second window between the gw1000 
> polling. To confirm this I have set the gw1000 polling to 1 second and now 
> 1 strike is counted as 1 in the DB. If I set the polling to 4 seconds 1 
> strike is counted as 2.
>
> Is this something that can be resolved in code or is the fix to simply 
> poll the gw1000 every 1 second?
>
> Many Thanks
> Mike
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fa1cdd58-d4c8-403f-b6fe-7fdffcac4603n%40googlegroups.com.

Reply via email to