... because it is not documented anywhere.

Issue #814 <https://github.com/weewx/weewx/issues/814>.

On Sat, Nov 19, 2022 at 6:45 AM Karen K <[email protected]> wrote:

> Oh, thank you. That is a detail that I was not aware of.
>
> [email protected] schrieb am Freitag, 18. November 2022 um 22:21:09 UTC+1:
>
>> The problem is that FirstLast values are not designed to be stored in the
>> daily summaries (although there's no reason they couldn't be).
>>
>> Try removing upsEstimatedChargeRemaining, upsSecondsOnBattery,
>> and upsEstimatedMinutesRemaining from the daily summary schema.
>>
>> On Thu, Nov 17, 2022 at 11:15 AM Karen K <[email protected]> wrote:
>>
>>> I added accumulator definitions in weewx.conf:
>>>
>>> [Accumulator]
>>>     ...
>>>     [[upsEstimatedChargeRemaining]]
>>>         accumulator = firstlast
>>>         extractor = last
>>>     [[upsSecondsOnBattery]]
>>>         accumulator = firstlast
>>>         extractor = last
>>>     [[upsEstimatedMinutesRemaining]]
>>>         accumulator = firstlast
>>>         extractor = last
>>>
>>> WeeWx crashes then with the error messages shown below.
>>>
>>> If I then remove the line accumulator = firstlast, no error occurs any
>>> more. So that configuration works fine:
>>> [Accumulator]
>>>     ...
>>>     [[upsEstimatedChargeRemaining]]
>>>         extractor = last
>>>     [[upsSecondsOnBattery]]
>>>         extractor = last
>>>     [[upsEstimatedMinutesRemaining]]
>>>         extractor = last
>>>
>>> Error messages for the configuration including the line accumulator =
>>> firstlast:
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__: Caught
>>> unrecoverable exception:
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****  too
>>> many values to unpack (expected 4)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> Traceback (most recent call last):
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 214, in run
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> callback(event)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 634, in check_loop
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> raise BreakLoop
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> weewx.engine.BreakLoop
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> During handling of the above exception, another exception occurred:
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> Traceback (most recent call last):
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 650, in post_loop
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self._catchup(self.engine.console.genArchiveRecords)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 697, in _catchup
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> for record in generator(lastgood_ts):
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/drivers/__init__.py", line 30, in
>>> genArchiveRecords
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> raise NotImplementedError("Method 'genArchiveRecords' not implemented")
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> NotImplementedError: Method 'genArchiveRecords' not implemented
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> During handling of the above exception, another exception occurred:
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> Traceback (most recent call last):
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewxd", line 154, in main
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> engine.run()
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 221, in run
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> callback(event)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 652, in post_loop
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self._software_catchup()
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 715, in _software_catchup
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD,
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> callback(event)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/user/snmp.py", line 562, in new_archive_record
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self.dbm_new_archive_record(event.record)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/user/snmp.py", line 607, in dbm_new_archive_record
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self.dbm.addRecord(record,
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/manager.py", line 403, in addRecord
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self._updateHiLo(accumulator, cursor)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/manager.py", line 1189, in _updateHiLo
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> _stats_dict = self._get_day_summary(_sod_ts, cursor)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/manager.py", line 1576, in _get_day_summary
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> _day_accum.set_stats(_day_key, _stats_tuple)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/accum.py", line 485, in set_stats
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self[obs_type].setStats(stats_tuple)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> File "/usr/share/weewx/weewx/accum.py", line 366, in setStats
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> self.first, self.firsttime, self.last, self.lasttime = stats_tuple \
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> ValueError: too many values to unpack (expected 4)
>>>
>>> Nov 17 19:30:17 LokalWiki weewx[85284] CRITICAL __main__:     ****
>>> 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].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/8bcb4c52-fb04-487f-b0bc-60f032e18808n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/8bcb4c52-fb04-487f-b0bc-60f032e18808n%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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/5d2b36a6-a0a7-448b-bce1-e2f6f6bfe692n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/5d2b36a6-a0a7-448b-bce1-e2f6f6bfe692n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAujFUpn9K0s3q_YYF4WxcdEJCbAiKFP63KTVZBEBbFRQ%40mail.gmail.com.

Reply via email to