Re: [weewx-user] --rebuild-daily : ValueError: Non-positive value for record field 'interval': 0

2019-09-30 Thread Thomas Keffer
So, that's about 7% of the records. You'll probably be OK. -tk On Mon, Sep 30, 2019 at 11:10 AM Cyril D wrote: > Deleted 24295 out of 354786 records. > --rebuild-daily went without error. > > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "weewx-

Re: [weewx-user] --rebuild-daily : ValueError: Non-positive value for record field 'interval': 0

2019-09-30 Thread Cyril D
Deleted 24295 out of 354786 records. --rebuild-daily went without error. Thank you! -- 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+unsubscr...@googleg

Re: [weewx-user] --rebuild-daily : ValueError: Non-positive value for record field 'interval': 0

2019-09-30 Thread Thomas Keffer
I don't know what "many lines" means, but you're going to have to make a judgment call. You can either 1. Delete them all; or 2. Set the values to the nominal archive interval that the rest of the database uses. I think either approach is safe and unlikely to give you much trouble. Unless, of cou

Re: [weewx-user] --rebuild-daily : ValueError: Non-positive value for record field 'interval': 0

2019-09-30 Thread Cyril D
Thanks, the database is in MySQL, so it's easier to manage. I have many lines with interval = 0 (none < 0) -- 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-us

Re: [weewx-user] --rebuild-daily : ValueError: Non-positive value for record field 'interval': 0

2019-09-30 Thread Thomas Keffer
Using the tool sqlite3 (you may have to install), see how many zero interval values are in your database: Adjust path as necessary, but this path should be close: $ *sqlite3 /home/pi/cleusb/weewx/archive/weewx.sdb* sqlite> *select dateTime, datetime(dateTime,'unixepoch','localtime'), interval fro

[weewx-user] --rebuild-daily : ValueError: Non-positive value for record field 'interval': 0

2019-09-30 Thread Cyril D
Hello, Following a bug on my system that sends incorrect values to weewx, I had to delete records from the archive database. Then I run: wee_database weewx.conf --drop-daily Followed by wee_database weewx.conf --rebuild-daily With this latest command I get this error: ./bin/wee_database weewx.