The issue is indeed to do with missing field ‘interval’. Some background. The 
AS3935 service was written back around 2015 when WeeWX was somewhat more 
tolerant of the the existence or otherwise of field ‘interval’. Move forward to 
WeeWX v3.7.0 and later and WeeWX is much more stringent in insisting that 
databases managed by the WeeWX API contain interval data. 

The AS3935 service has the ability to store individual lightning strike data in 
a separate database (this is done by setting the config option ‘data_binding’ 
in the [AS3935] stanza in weewx.conf, if the ‘data_binding’ option is omitted 
or set to None saving of lightning data to an external database is disabled). 
In this mode the AS3935 service attempts to save a record that does not contain 
the field ‘interval’ to the database specified by the ‘data_binding’ config 
option. The WeeWX API rejects this and thus the error you are seeing. The fix 
for this issue will require modification of the AS3935 service to add an 
‘interval’ field to the record being saved to the external database or for the 
data to be saved to an external database using other than the WeeWX API.

The AS3935 service also adds fields ‘avg_distance’ and ‘lightning_strikes’ to 
loop packets and archive records (whether this extra data is saved to the WeeWX 
archive depends on whether the user has modified the schema for the WeeWX 
archive or not). This occurs independently of lightning strike data being saved 
to an external database. Folks who are using the AS3935 service without issue 
almost certainly do not save individual lightning strike data to an external 
database, ie they have not set the ‘data_binding’ config option under [AS3935].

So to a solution, I guess it is hope that Matthew or some other kind person 
will update the AS3935 service to operate properly with the WeeWX API. In the 
interim the AS3935 service can be used by removing/disabling ‘data_binding’ 
config option and making use of the average distance and lightning strike data 
being added to loop packets and archive records (remembering whether this extra 
data is saved to the WeeWX archive depends on whether the user has modified the 
schema for the WeeWX archive or not).

Gary

-- 
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/387d739f-6a79-40e3-8002-3710a396c000%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to