bad strike count data 4,000+ strikes, how to remove from database or ignore such data in charts

57 views
Skip to first unread message

Kevin Crivelli

unread,
Jun 13, 2023, 3:47:46 PM6/13/23
to weewx-user
I'm not sure how or why it happened but today around 3:25pm I received a strike count of over 4,000 strikes. Is there a way to go into the database and remove this entry? or perhaps I can add a correction in the corrections section if lightning_strike_count is < 4,000 = none or something?

thanks for any help on this matter. really odd

Kevin Crivelli

unread,
Jun 13, 2023, 4:12:46 PM6/13/23
to weewx-user
there were 3 entries over 3,000 strikes in a matter of minutes that pushed my count to 11,970 for the day. There has to be a way to remove those entries. please let me know if anyone knows how.

lightning strike error.JPG

Kevin Crivelli

unread,
Jun 13, 2023, 4:46:08 PM6/13/23
to weewx-user
I was able to delete the entries from the database using the guide provided at https://github.com/weewx/weewx/wiki/Cleaning%20up%20old%20'bad'%20data however, when I got to the section for cleaning up the daily summaries I ran into an error with the commands provided

wee_database weewx.conf --drop-daily and wee_database weewx.conf --rebuild-daily gave me this error

Traceback (most recent call last):
  File "/usr/share/weewx/wee_database", line 1168, in <module>
    main()
  File "/usr/share/weewx/wee_database", line 187, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/usr/share/weewx/weecfg/__init__.py", line 146, in read_config
    config_path = find_file(config_path, args,
  File "/usr/share/weewx/weecfg/__init__.py", line 117, in find_file
    raise IOError("%s is not a file" % file_path)
OSError: weewx.conf is not a file

Rainer Lang

unread,
Jun 13, 2023, 4:53:46 PM6/13/23
to weewx...@googlegroups.com

you should read and apply the proper synthax:

try wee_database --help
and apply ....
when you mention weewx.conf then as --config=/etc/weewx/weewx.conf
if you have only one database and one respective weewx.conf, you don't need to mention it (but you can, however, then correctly)

(sudo) wee_database --drop-daily
and
(sudo) weew_database --rebuild-daily
should suffice

if you want to mention weewx.conf, then:
(sudo) wee_database --drop-daily --config=/etc/weewx/weewx.conf
etc

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/889e23f5-eeac-4c0a-9cf9-aab1f564f9f7n%40googlegroups.com.

Kevin Crivelli

unread,
Jun 13, 2023, 5:00:14 PM6/13/23
to weewx-user
Rainer, that worked. I had figured it out just before you'd sent that message. I just had to add the full path for weewx.conf to the command. "/etc/weewx/weewx.conf"

Everything is back to normal. Thank you!
Reply all
Reply to author
Forward
0 new messages