This happens with unwary skins that try to calculate something from "a
month ago", when a month has 31 days and the previous month had 30. What is
"a month ago" from 31 October? Not 31 September --- it doesn't exist.

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

On Tue, Oct 31, 2023 at 9:43 AM Remy Lavabre <remy.lava...@gmail.com> wrote:

> Hello, Weewx 4.5.2 worked perfectly until 2023-10-30 23:55:00
>
> Since this date, the Seasons2 skin no longer updates the index.html file.
> The Raspberry is not crashed, the database continues to fill normally and
> all graphs are generated normally.
> The log trace gives the error below.
> Does anyone have an idea of what happened at 00:00 on 10/31 and why there
> has been this error since then?
> thank you
>
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.engine: StdConvert
> target unit is 0x1
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.wxservices:
> StdWXCalculate will use data binding wx_binding
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.engine: Archive
> will use data binding wx_binding
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.engine: Record
> generation will be attempted in 'hardware'
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.engine: Using
> archive interval of 300 seconds (specified by hardware)
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.restx:
> StationRegistry: Station will be registered.
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.restx:
> Wunderground-PWS: Data for station IMILLA3 will be posted
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.restx: PWSweather:
> Posting not enabled.
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.restx: CWOP:
> Posting not enabled.
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.restx: WOW:
> Posting not enabled.
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.restx: AWEKAS:
> Posting not enabled.
> Oct 31 17:30:27 localhost wee_reports[59221] INFO user.wcloud: service
> version is 0.13
> Oct 31 17:30:27 localhost wee_reports[59221] INFO user.wcloud: Data will
> be uploaded for id=ad400d4705decc9d
> Oct 31 17:30:27 localhost wee_reports[59221] INFO weewx.engine: 'pyephem'
> detected, extended almanac data is available
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 0: "inTemp is not None and inTemp <= 23.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 1: "inTemp is not None and inTemp <= 64.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 2: "outTemp is not None and outTemp <= 34.0 and outTemp
> > 23.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 3: "outTemp is not None and outTemp <= 23.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 4: "outTemp is not None and outTemp <= 14.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 5: "outTemp is not None and outTemp >= 100.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 6: "rainRate is not None and rainRate > 0 and rainRate <
> 0.59"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 7: "rainRate is not None and rainRate >= 0.59 and
> rainRate < 0.98"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 8: "rainRate is not None and rainRate >= 0.98"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 9: "windGust is not None and windGust >= 15.5 and
> windGust < 27.7"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 10: "windGust is not None and windGust >= 27.7 and
> windGust < 31.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 11: "windGust is not None and windGust >= 31.0 and
> windGust < 37.28"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 12: "windGust is not None and windGust >= 37.28"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 13: "extraTemp6 is not None and extraTemp6 >= 133.0 and
> extraTemp6 < 140.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 14: "extraTemp6 is not None and extraTemp6 >= 140.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 15: "barometer is not None and barometer < 29.53"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 16: "extraTemp3 is not None and extraTemp3 <= 37.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 17: "extraTemp3 is not None and extraTemp3 <= 30.0"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.alarm_multi: Alarm
> set for expression 18: "extraTemp3 is not None and extraTemp3 >= 80.6"
> Oct 31 17:30:34 localhost wee_reports[59221] INFO user.healthchecks:
> healthchecks: Using url
> https://hc-ping.com/UKc6fHh3r6GrAGmST3bSpw/weewx-record
> Oct 31 17:30:35 localhost wee_reports[59221] INFO user.historygenerator:
> historygenerator.py: Generated 6 tables in 0.34 seconds
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> Evaluation of template /etc/weewx/skins/Seasons2/index.html.tmpl failed
> with exception '<class 'ValueError'>'
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** Ignoring template /etc/weewx/skins/Seasons2/index.html.tmpl
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** Reason: day is out of range for month
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****  Traceback (most recent call last):
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in
> generate
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      unicode_string = compiled_template.respond()
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "_etc_weewx_skins_Seasons2_index_html_tmpl.py", line 305, in
> respond
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line
> 1708, in _handleCheetahInclude
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "_etc_weewx_skins_Seasons2_current_inc.py", line 1346, in
> respond
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "_etc_weewx_skins_Seasons2_current_inc.py", line 533, in
> __errorCatcher67
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "<string>", line 1, in <module>
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/share/weewx/weewx/tags.py", line 129, in span
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      weeutil.weeutil.archiveSpanSpan(self.report_time,
> time_delta=time_delta,
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/share/weewx/weeutil/weeutil.py", line 341, in
> archiveSpanSpan
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      start_dt = time_dt.replace(year=year, month=month)
> Oct 31 17:30:39 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****  ValueError: day is out of range for month
> Oct 31 17:30:41 localhost wee_reports[59221] INFO weewx.cheetahgenerator:
> Generated 13 files for report SeasonsReport2 in 7.38 seconds
> Oct 31 17:30:44 localhost wee_reports[59221] INFO weewx.imagegenerator:
> Generated 26 images for report SeasonsReport2 in 2.73 seconds
> Oct 31 17:30:44 localhost wee_reports[59221] INFO weewx.reportengine:
> Copied 5 files to /var/www/html/weewx
> Oct 31 17:30:45 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> Evaluation of template /etc/weewx/skins/Inigo/inigo-data.txt.tmpl failed.
> Oct 31 17:30:45 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** Ignoring template /etc/weewx/skins/Inigo/inigo-data.txt.tmpl
> Oct 31 17:30:45 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** Reason: cannot find 'formatted' while searching for
> 'day.ET.sum.formatted'
> Oct 31 17:30:45 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** To debug, try inserting '#errorCatcher Echo' at top of template
> Oct 31 17:30:45 localhost wee_reports[59221] INFO weewx.cheetahgenerator:
> Generated 0 files for report Inigo in 0.50 seconds
> Oct 31 17:30:45 localhost wee_reports[59221] INFO weewx.reportengine:
> Copied 6 files to /var/www/html/weewx/ss
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> Evaluation of template /etc/weewx/skins/ss/gauge-data.txt.tmpl failed with
> exception '<class 'TypeError'>'
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** Ignoring template /etc/weewx/skins/ss/gauge-data.txt.tmpl
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> **** Reason: 'UnknownType' object is not subscriptable
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****  Traceback (most recent call last):
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in
> generate
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      unicode_string = compiled_template.respond()
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "_etc_weewx_skins_ss_gauge_data_txt_tmpl.py", line 142, in
> respond
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line
> 1446, in getVar
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      return valueFromSearchList(
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****    File "/usr/share/weewx/weewx/units.py", line 1094, in raw
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****      return self.value_t[0]
> Oct 31 17:30:46 localhost wee_reports[59221] ERROR weewx.cheetahgenerator:
> ****  TypeError: 'UnknownType' object is not subscriptable
> Oct 31 17:30:46 localhost wee_reports[59221] INFO weewx.cheetahgenerator:
> Generated 1 files for report SteelSeries in 0.70 seconds
> Oct 31 17:30:46 localhost wee_reports[59221] INFO weewx.imagegenerator:
> Generated 11 images for report SteelSeries in 0.89 seconds
> Oct 31 17:30:50 localhost wee_reports[59221] INFO weewx.cheetahgenerator:
> Generated 2 files for report wxobs in 3.55 seconds
> Oct 31 17:30:50 localhost wee_reports[59221] INFO weewx.reportengine:
> Copied 6 files to /var/www/html/weewx/wxobs
>
> --
> 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/f8842134-4111-4305-a346-62cc654d757bn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/f8842134-4111-4305-a346-62cc654d757bn%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/CAPq0zED6ABxd8Ns_b9RTOsiSQfqtGPeaeK0y-WXmfjPdhh9Mhw%40mail.gmail.com.

Reply via email to