Replace /usr/share/weewx/weewx/manager.py with it. For example, if the new
copy is in your home directory:

*cd ~*

*sudo mv /usr/share/weewx/weewx/manager.py
/usr/share/weewx/weewx/manager.py.backup*
*sudo cp manager.py /usr/share/weewx/weewx/manager.py*


-tk

On Wed, Nov 20, 2019 at 1:14 PM Teva MERVIN <mteva...@gmail.com> wrote:

> Thank you for your help.
> What do I do with this manager.py file?
>
> Le jeudi 21 novembre 2019 00:52:15 UTC+11, Thomas Keffer a écrit :
>>
>> En attendant, voici une version de manager.py qui ignorera simplement les
>> enregistrements contenant de mauvaises valeurs 'intervalle' au lieu de
>> s'arrêter. Ce n'est pas un remède, mais au moins les résultats seront
>> plus robustes. Essaie.
>>
>> -tk
>>
>> Le mercredi 20 novembre 2019 à 05h35, Thomas Keffer < tke ... @ gmail.com
>> > a écrit:
>>
>>> J'ai ré-ouvert le numéro 375. J'espère que Chris aura du temps pour
>>> enquêter.
>>>
>>> -tk
>>>
>>> Le mercredi 20 novembre 2019 à 01h08 Teva MERVIN < mte ... @ gmail.com
>>> > a écrit:
>>>
>>>> oui je l'ai utilisé.
>>>>
>>>> https://github.com/weewx/weewx/issues/375
>>>>
>>>> Le mercredi 20 novembre 2019 14:19:37 UTC+11, Andrew Milner a écrit :
>>>>>
>>>>> d'après l'une des discussions, il y avait une version du pilote censée
>>>>> résoudre ce problème - avez-vous utilisé cette version du pilote wmr?
>>>>>
>>>>>
>>>>>
>>>>> Le mercredi 20 novembre 2019, Teva MERVIN a écrit:
>>>>>>
>>>>>> Quelques détails de mon installation:
>>>>>>
>>>>>> - Debian server 5.2.17-1
>>>>>> - Weewx 3.9.2-0
>>>>>> - Base de données: sqlite
>>>>>> - Peau: Météo34
>>>>>> - Station: Oregon WMR200
>>>>>>
>>>>>> Le mardi 19 novembre 2019 16:36:37 UTC+11, Teva MERVIN a écrit :
>>>>>>>
>>>>>>> Hello.
>>>>>>> I have a problem that I can not identify.
>>>>>>> It happens at least once a day, and I have to restart weewx.
>>>>>>> Do you have ideas?
>>>>>>>
>>>>>>> root@Nas:~# service weewx status
>>>>>>> ● weewx.service - LSB: weewx weather system
>>>>>>>   Loaded: loaded (/etc/init.d/weewx; generated)
>>>>>>>   Active: active (exited) since Sun 2019-11-17 19:09:21 +11; 1 day
>>>>>>> 21h ago
>>>>>>>     Docs: man:systemd-sysv-generator(8)
>>>>>>>  Process: 2094 ExecStart=/etc/init.d/weewx start (code=exited,
>>>>>>> status=0/SUCCESS)
>>>>>>>
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****    File
>>>>>>> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****
>>>>>>>      dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****    File
>>>>>>> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****
>>>>>>>      self._addSingleRecord(record, cursor, log_level)
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****    File
>>>>>>> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****      _weight =
>>>>>>> self._calc_weight(record)
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****    File
>>>>>>> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
>>>>>>> nov. 19 13:34:26 Nas weewx[2110]:     ****      raise
>>>>>>> ValueError("Non-positive value for record field 'interval': %s" %
>>>>>>> (record['interval'], ))
>>>>>>> nov. 19 13:34:26 Nas weewx [2110]:     **** ValueError: valeur non
>>>>>>> positive pour le champ d'enregistrement 'intervalle': 0 nov. 19
>>>>>>> 13:34:26 Nas weewx [2110]:     **** Sortie.
>>>>>>>
>>>>>>>
>>>>>>> Merci.
>>>>>>>
>>>>>> -
>>>> Vous avez reçu ce message car vous êtes abonné au groupe "weewx-user"
>>>> de Google Groupes.
>>>> Pour vous désabonner de ce groupe et ne plus recevoir de courrier
>>>> électronique, envoyez un courrier électronique à weewx ... @
>>>> googlegroups.com .
>>>> Pour afficher cette discussion sur Internet, consultez la page 
>>>> https://groups.google.com/d/
>>>> msgid / weewx-user / 79c90acf- 06a3-4bf2-80d3-06023c177025%
>>>> 40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/79c90acf-06a3-4bf2-80d3-06023c177025%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/83b29f0a-10b1-40c9-b779-69a6a1e040af%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/83b29f0a-10b1-40c9-b779-69a6a1e040af%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEC2225SWD_Y89-S%3DvEiEdp1AwOeZmOUokzaOVOuWai-%3Dw%40mail.gmail.com.

Reply via email to