jonathankoren / weewx-aqi

Air Quality Calculations for WeeWx
GNU General Public License v3.0
9 stars 4 forks source link

weewx crashing #40

Open MksRasp opened 1 year ago

MksRasp commented 1 year ago

we have the latest version of weewx-aqi 1.4.1 but weewx still crash when sensor measure very high amount of particles.

weewx log:

Jan 24 16:40:24 piWx weewx[581] CRITICAL main: Caught unrecoverable exception: Jan 24 16:40:24 piWx weewx[581] CRITICAL main: AQI can not be calculated from this table Jan 24 16:40:24 piWx weewx[581] CRITICAL main: Traceback (most recent call last): Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 214, in run Jan 24 16:40:24 piWx weewx[581] CRITICAL main: self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet)) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent Jan 24 16:40:24 piWx weewx[581] CRITICAL main: callback(event) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 634, in check_loop Jan 24 16:40:24 piWx weewx[581] CRITICAL main: raise BreakLoop Jan 24 16:40:24 piWx weewx[581] CRITICAL main: weewx.engine.BreakLoop Jan 24 16:40:24 piWx weewx[581] CRITICAL main:
Jan 24 16:40:24 piWx weewx[581] CRITICAL main: During handling of the above exception, another exception occurred: Jan 24 16:40:24 piWx weewx[581] CRITICAL main:
Jan 24 16:40:24 piWx weewx[581] CRITICAL main: Traceback (most recent call last): Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 650, in post_loop Jan 24 16:40:24 piWx weewx[581] CRITICAL main: self._catchup(self.engine.console.genArchiveRecords) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 697, in _catchup Jan 24 16:40:24 piWx weewx[581] CRITICAL main: for record in generator(lastgood_ts): Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/drivers/init.py", line 30, in genArchiveRecords Jan 24 16:40:24 piWx weewx[581] CRITICAL main: raise NotImplementedError("Method 'genArchiveRecords' not implemented") Jan 24 16:40:24 piWx weewx[581] CRITICAL main: NotImplementedError: Method 'genArchiveRecords' not implemented Jan 24 16:40:24 piWx weewx[581] CRITICAL main:
Jan 24 16:40:24 piWx weewx[581] CRITICAL main:
During handling of the above exception, another exception occurred: Jan 24 16:40:24 piWx weewx[581] CRITICAL main:
Jan 24 16:40:24 piWx weewx[581] CRITICAL main:
Traceback (most recent call last): Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewxd", line 154, in main Jan 24 16:40:24 piWx weewx[581] CRITICAL main: engine.run() Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 221, in run Jan 24 16:40:24 piWx weewx[581] CRITICAL main: self.dispatchEvent(weewx.Event(weewx.POST_LOOP)) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent Jan 24 16:40:24 piWx weewx[581] CRITICAL main: callback(event) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 652, in post_loop Jan 24 16:40:24 piWx weewx[581] CRITICAL main: self._software_catchup() Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 715, in _software_catchup Jan 24 16:40:24 piWx weewx[581] CRITICAL main: self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent Jan 24 16:40:24 piWx weewx[581] CRITICAL main: callback(event) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/user/aqi/service.py", line 355, in new_archive_record Jan 24 16:40:24 piWx weewx[581] CRITICAL main: self.aqi_standard.calculate_aqi(pollutant, required_unit, joined) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/user/aqi/standards.py", line 57, in calculate_aqi Jan 24 16:40:24 piWx weewx[581] CRITICAL main: return self.calculators[pollutant].calculate(pollutant, observation_unit, observations) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/user/aqi/calculators.py", line 186, in calculate Jan 24 16:40:24 piWx weewx[581] CRITICAL main: return self._calculate_index_from_mean(obs_mean) Jan 24 16:40:24 piWx weewx[581] CRITICAL main: File "/usr/share/weewx/user/aqi/calculators.py", line 286, in _calculate_index_from_mean Jan 24 16:40:24 piWx weewx[581] CRITICAL main: raise IndexError('AQI can not be calculated from this table') Jan 24 16:40:24 piWx weewx[581] CRITICAL main: IndexError: AQI can not be calculated from this table Jan 24 16:40:24 piWx weewx[581] CRITICAL main: Exiting.

how to fix this issue? thnks