Found a solution. Long story short: temperature value read from a text file
was 'inf'. Consequently, other recalculations failed and resulted in nan.
Solution: fix the temperature sensor :-)
Dne sobota, 07. september 2019 10.11.05 UTC+2 je oseba peter napisala:
>
> weewx stopped this morning with an error I don't understand. I also
> doesn't want to start either.
>
> Can some please advise what would be the cause?
> I have Davis Vantage Vue + few other inputs from text files I log into
> database. This week I added logging of a big integer values into 'hail'
> field.
>
> This is the status:
> sep 07 10:00:55 weather weewx[447]: **** File
> "/usr/share/weewx/weewx/manager.py", line 1216, in _addSingleRecord
> sep 07 10:00:55 weather weewx[447]: **** _day_summary.addRecord(
> record, weight=_weight)
> sep 07 10:00:55 weather weewx[447]: **** File
> "/usr/share/weewx/weewx/accum.py", line 260, in addRecord
> sep 07 10:00:55 weather weewx[447]: **** func(self, record,
> obs_type, add_hilo, weight)
> sep 07 10:00:55 weather weewx[447]: **** File
> "/usr/share/weewx/weewx/accum.py", line 318, in add_value
> sep 07 10:00:55 weather weewx[447]: **** self[obs_type].addHiLo(
> val, record['dateTime'])
> sep 07 10:00:55 weather weewx[447]: **** File
> "/usr/share/weewx/weewx/accum.py", line 78, in addHiLo
> sep 07 10:00:55 weather weewx[447]: **** "got type '%s' ('%s')" %
> (type(val), val))
> sep 07 10:00:55 weather weewx[447]: **** ValueError: accum:
> ScalarStats.addHiLo expected float or int, got type '<type 'float'>' (
> 'nan')
> sep 07 10:00:55 weather weewx[447]: **** Exiting.
>
> Thanks!
>
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/bfe33ab5-1689-432a-85ab-a878dfb3d00c%40googlegroups.com.