I upgraded to weewx 3.9.2 a few months back. Everything was fine for awhile
but then several weeks ago weewx started crashing. Here is what I currently
see:
pi@weather:~ $ sudo /etc/init.d/weewx status
● weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx)
Active: active (exited) since Wed 2019-10-23 17:27:22 CDT; 24h ago
Process: 425 ExecStart=/etc/init.d/weewx start (code=exited,
status=0/SUCCESS)
Oct 24 09:05:15 weather weewx[758]: **** File
"/usr/share/weewx/weewx/manager.py", line 1216, in _addSingleRecord
Oct 24 09:05:15 weather weewx[758]: ****
_day_summary.addRecord(record, weight=_weight)
Oct 24 09:05:15 weather weewx[758]: **** File
"/usr/share/weewx/weewx/accum.py", line 260, in addRecord
Oct 24 09:05:15 weather weewx[758]: **** func(self, record, obs_type,
add_hilo, weight)
Oct 24 09:05:15 weather weewx[758]: **** File
"/usr/share/weewx/weewx/accum.py", line 318, in add_value
Oct 24 09:05:15 weather weewx[758]: **** self[obs_type].addHiLo(val,
record['dateTime'])
Oct 24 09:05:15 weather weewx[758]: **** File
"/usr/share/weewx/weewx/accum.py", line 78, in addHiLo
Oct 24 09:05:15 weather weewx[758]: **** "got type '%s' ('%s')" %
(type(val), val))
Oct 24 09:05:15 weather weewx[758]: **** ValueError: accum:
ScalarStats.addHiLo expected float or int, got type '<type 'long'>'
('3840714016')
Oct 24 09:05:15 weather weewx[758]: **** Exiting.
pi@weather:~ $
I found a couple of posts online regarding an issue in cmon that sounded
like the same issue I am seeing and applied these fixes:
456 if k in self.last_net[iface]:
457 x = int(values[i]) -
self.last_net[iface][k]
458 if x < 0:
459 maxcnt = 0x100000000 # 32-bit
counter
460 if x + maxcnt < 0:
461 maxcnt = 0x10000000000000000 #
64-bit counter
462 x += maxcnt
463 if x > 2147483648:
464 x = 2147483648
465 record['net_' + iface + '_' + k] =
int(x)
Unfortunately I still have the same issue. weewx will run for a few hours
and crash again. Restarting weewx does not work I have to reboot my pi to
get weewx to start again and run for a few more hours.
Any help is appreciated.
--
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/6fda9f5c-cf54-44e0-b5a3-547eede77d94%40googlegroups.com.