Thanks Thomas,

Clean data and all OK again.

Great work!

El viernes, 22 de febrero de 2019, 21:38:32 (UTC+1), Thomas Keffer escribió:
>
> The bad data point has probably been there all along --- it's just that 
> WeeWX is a little more strict about it.
>
> Try this on your database. *Boldface* is things you type.
>
> # Change directory to where you database is located. Adjust as necessary
> *cd /var/lib/weewx*
> # Make a backup copy of your database:
> *sudo cp weewx.sdb weewx.sdb.backup*
> # Install sqlite3 if you have not already:
> *sudo apt install sqlite3*
> # Run it against the WeeWX database:
> *sudo sqlite3 weewx.sdb*
> # See how many bad records there are:
> sqlite> *select count(dateTime) from archive where interval <= 0;*
> # Get rid of them:
> sqlite> *delete from archive where interval <= 0;*
> sqlite> *.exit*
>
> -tk
>
> On Fri, Feb 22, 2019 at 10:06 AM Juan Antonio Mosquera <
> [email protected] <javascript:>> wrote:
>
>> I'm changing the raspberry b + to raspberry 2.
>>
>> I have this problem when I do rebuild of weewx.sdb
>>
>> Feb 22 19:03:20 meteomontaos weewx [15992]: engine: Caught unrecoverable 
>> exception in engine:
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** Non-positive value for 
>> record field 'interval': -40
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** Traceback (most recent 
>> call last):
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/engine.py", line 884, in main
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** engine = engine_class 
>> (config_dict)
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/engine.py", line 78, in __init__
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** self.loadServices 
>> (config_dict)
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/engine.py", line 142, in loadServices
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** self.service_obj.append 
>> (weeutil.weeutil._get_object (svc) (self, config_dict))
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/engine.py", line 500, in __init__
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** self.setup_database 
>> (config_dict)
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/engine.py", line 617, in setup_database
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** _nrecs, _ndays = 
>> dbmanager.backfill_day_summary () # @UnusedVariable
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/manager.py", line 1469, in backfill_day_summary
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** weight = 
>> self._calc_weight (rec)
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** File 
>> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** raise ValueError 
>> ("Non-positive value for record field 'interval':% s"% (record 
>> ['interval'],))
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** ValueError: Non-positive 
>> value for record field 'interval': -40
>> Feb 22 19:03:20 meteomontaos weewx [15992]: **** Exiting.
>>
>> help?
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to