You will also need to purge your database of any non-positive values. You may have to install the tool sqlite3, if you haven't already: *sudo apt-get install sqlite3*
Then delete any non-positive values: *sudo sqlite3 /var/lib/weewx/weewx.sdb* sqlite> *delete from archive where interval <= 0;* -tk On Mon, Mar 4, 2019 at 11:44 PM Teva MERVIN <[email protected]> wrote: > Hello, I still have the same problem despite this change. > Here are the logs: > > root@Nas:~# service weewx status > ● weewx.service - LSB: weewx weather system > Loaded: loaded (/etc/init.d/weewx; generated) > Active: active (exited) since Tue 2019-03-05 07:30:25 +11; 11h ago > Docs: man:systemd-sysv-generator(8) > Process: 7572 ExecStart=/etc/init.d/weewx start (code=exited, > status=0/SUCCESS) > > mars 05 08:04:53 Nas weewx[7587]: **** File > "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record > mars 05 08:04:53 Nas weewx[7587]: **** > dbmanager.addRecord(event.record, accumulator=self.old_accumulator) > mars 05 08:04:53 Nas weewx[7587]: **** File > "/usr/share/weewx/weewx/manager.py", line 246, in addRecord > mars 05 08:04:53 Nas weewx[7587]: **** > self._addSingleRecord(record, cursor, log_level) > mars 05 08:04:53 Nas weewx[7587]: **** File > "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord > mars 05 08:04:53 Nas weewx[7587]: **** _weight = > self._calc_weight(record) > mars 05 08:04:53 Nas weewx[7587]: **** File > "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight > mars 05 08:04:53 Nas weewx[7587]: **** raise > ValueError("Non-positive value for record field 'interval': %s" % > (record['interval'], )) > mars 05 08:04:53 Nas weewx[7587]: **** ValueError: Non-positive value > for record field 'interval': 0 > mars 05 08:04:53 Nas weewx[7587]: **** Exiting. > > Le samedi 16 février 2019 11:52:11 UTC+11, Teva MERVIN a écrit : >> >> Hello, I have problems with weewx. >> Can you help me ? >> >> Feb 16 10:15:41 Nas weewx[22639]: **** Non-positive value for record >> field 'interval': 0 >> Feb 16 10:15:41 Nas weewx[22639]: **** Traceback (most recent call >> last): >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 890, in main >> Feb 16 10:15:41 Nas weewx[22639]: **** engine.run() >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 160, in run >> Feb 16 10:15:41 Nas weewx[22639]: **** >> self.dispatchEvent(weewx.Event(weewx.STARTUP)) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent >> Feb 16 10:15:41 Nas weewx[22639]: **** callback(event) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 520, in startup >> Feb 16 10:15:41 Nas weewx[22639]: **** >> self._catchup(self.engine.console.genStartupRecords) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 635, in _catchup >> Feb 16 10:15:41 Nas weewx[22639]: **** origin='hardware')) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent >> Feb 16 10:15:41 Nas weewx[22639]: **** callback(event) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record >> Feb 16 10:15:41 Nas weewx[22639]: **** >> dbmanager.addRecord(event.record, accumulator=self.old_accumulator) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord >> Feb 16 10:15:41 Nas weewx[22639]: **** >> self._addSingleRecord(record, cursor, log_level) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord >> Feb 16 10:15:41 Nas weewx[22639]: **** _weight = >> self._calc_weight(record) >> Feb 16 10:15:41 Nas weewx[22639]: **** File >> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight >> Feb 16 10:15:41 Nas weewx[22639]: **** raise >> ValueError("Non-positive value for record field 'interval': %s" % >> (record['interval'], )) >> Feb 16 10:15:41 Nas weewx[22639]: **** ValueError: Non-positive >> value for record field 'interval': 0 >> Feb 16 10:15:41 Nas weewx[22639]: **** Exiting. >> >> -- > 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. > -- 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.
