historygenerator

296 views
Skip to first unread message

buck...@googlemail.com

unread,
Jul 31, 2021, 12:04:01 PM7/31/21
to weewx-user
hello, since some time i ve problem with my history page.

perhaps anyone have a idea, where i can look for this.

part of my log:
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'ValueError'>'
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/month.html.tmpl
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: **** Reason: day is out of range for month
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_month_html_tmpl.py", line 959, in respond
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/tags.py", line 120, in span
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      year_delta=year_delta),
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weeutil/weeutil.py", line 460, in archiveSpanSpan
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      start_dt = time_dt.replace(year=year, month=month)
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****  ValueError: day is out of range for month
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/history.html.tmpl
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: **** Reason: cannot find 'history' while searching for 'history'
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_neowx_material_history_html_tmpl_1623607552_5854344_21087.py", line 93, in respond
Jul 31 17:30:53 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****  NameMapper.NotFound: cannot find 'history' while searching for 'history

buck...@googlemail.com

unread,
Jul 31, 2021, 12:05:47 PM7/31/21
to weewx-user

Tom Keffer

unread,
Aug 1, 2021, 9:05:40 AM8/1/21
to weewx-user

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/63c89ab0-4835-43c5-bab2-fbc6bc0b8916n%40googlegroups.com.

buck...@googlemail.com

unread,
Aug 2, 2021, 3:34:47 PM8/2/21
to weewx-user
i read both, but i dont know what could be the solution for my problem.

----

Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.restx: CWOP: Posting not enabled.
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.restx: WOW: Posting not enabled.
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.restx: AWEKAS: Posting not enabled.
Aug  2 21:26:10 raspberrypi weewx[5710] INFO __main__: Starting up weewx version 4.5.1
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.manager: Starting backfill of daily summaries
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.manager: Daily summaries up to date
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.drivers.te923: reading records from logger since 1627932000
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.drivers.te923: read 0 records from logger
Aug  2 21:26:10 raspberrypi weewx[5710] INFO weewx.engine: Starting main packet loop.
Aug  2 21:30:22 raspberrypi weewx[5710] INFO weewx.manager: Added record 2021-08-02 21:30:00 CEST (1627932600) to database 'weewx.sdb'
Aug  2 21:30:22 raspberrypi weewx[5710] INFO weewx.manager: Added record 2021-08-02 21:30:00 CEST (1627932600) to daily summary in 'weewx.sdb'
Aug  2 21:30:26 raspberrypi weewx[5710] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 4.22 seconds
Aug  2 21:30:27 raspberrypi weewx[5710] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.23 seconds
Aug  2 21:30:27 raspberrypi weewx[5710] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/history.html.tmpl
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: **** Reason: cannot find 'history' while searching for 'history'
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_history_html_tmpl.py", line 93, in respond
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****  NameMapper.NotFound: cannot find 'history' while searching for 'history'
Aug  2 21:31:06 raspberrypi weewx[5710] INFO weewx.cheetahgenerator: Generated 12 files for report StandardReport in 38.25 seconds
Aug  2 21:31:06 raspberrypi weewx[5710] INFO weewx.reportengine: Copied 326 files to /var/www/html/weewx
Aug  2 21:31:09 raspberrypi weewx[5710] INFO weewx.cheetahgenerator: Generated 1 files for report Highcharts in 2.71 seconds
Aug  2 21:31:21 raspberrypi weewx[5710] INFO weewx.reportengine: ftpgenerator: Ftp'd 30 files in 11.51 seconds

gjr80

unread,
Aug 2, 2021, 4:26:11 PM8/2/21
to weewx-user
I would suggest you contact the neowx material author for support as per the neowx material web page.

Gary

buck...@googlemail.com

unread,
Aug 3, 2021, 3:58:28 AM8/3/21
to weewx-user
neowx material havent no history generator.

the generator is from bootstrap skin

*.py files are in
/usr/share/weewx/user
eg
/usr/share/weewx/user/historygenerator.py

info: 
weewx is installed on a PI3 according this page

gjr80

unread,
Aug 3, 2021, 4:42:51 AM8/3/21
to weewx-user
I don't see any mention of historygenerator in the error trace though your log extract clearly indicates the error is in the neowx-material skin....

Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'NameMapper.NotFound'>'
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/history.html.tmpl
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: **** Reason: cannot find 'history' while searching for 'history'
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_history_html_tmpl.py", line 93, in respond
Aug  2 21:31:06 raspberrypi weewx[5710] ERROR weewx.cheetahgenerator: ****  NameMapper.NotFound: cannot find 'history' while searching for 'history'

If the template concerned (history.html.tmpl) uses any search list extensions you may get some more info by setting debug = 1 and restarting WeeWX.

Gary

buck...@googlemail.com

unread,
Aug 3, 2021, 5:23:05 AM8/3/21
to weewx-user
this is my complet tmpl file:

no  search list extensions inside

give me one moment for a DEGUG Output
--------------------------------------------------

#encoding UTF-8
<!DOCTYPE html>
<html lang="$Extras.language">
<head>
    <title>$Extras.Translations[$Extras.language].history | $station.location</title>
    #include "head.inc"
</head>
<body class="main-bg">

#attr $active_nav = 'history'
#include "header.inc"

<main>

    <div class="container">

        <div class="row my-4 align-content-start">

             <h3>Temperatur min</h3>
                $min_temp_table

             <h3>Temperatur mittel</h3>
                $avg_temp_table

             <h3>Temperatur max</h3>
                $max_temp_table

             <h3>Regen</h3>
                $rain_table

             <h3>Regentage</h3>
                $rain_days_table

             <h3>Windgeschwindigkeit mittel</h3>
                $avg_windSpeed_table
          
             <h3>Windgeschwindigkeit max</h3>
                $max_windSpeed_table

        </div>

    </div>

</main>

#include "footer.inc"
#include "js.inc"

</body>
</html>

buck...@googlemail.com

unread,
Aug 3, 2021, 5:28:17 AM8/3/21
to weewx-user

gjr80

unread,
Aug 3, 2021, 8:44:03 PM8/3/21
to weewx-user
So I'm guessing you have modified the neowx-material skin by adding a new page?

Search list extensions add tags to the WeeWX search list so that those tags can be used in skin template files. The user can add to the search list by setting the search_list or search_list_extensions config options in the skin config file. So you don't find search list extensions in your template file, rather you will find the tags provided by the search list extension. The search list extensions are listed in your skin config file.

Looking at your history error trace and your template I am guessing this is the problem line as it is the only use of history in a tag:

<title>$Extras.Translations[$Extras.language].history | $station.location</title>

I have no knowledge of the workings of the neowx-material or the bootstrap skins, but based on that code I would be looking closely at the [Extras] section of your skin config file to make sure you have everything there that the history generator expects.

In terms of the other error in your original post:

Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'ValueError'>'
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/month.html.tmpl
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: **** Reason: day is out of range for month
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 326, in generate
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_month_html_tmpl.py", line 959, in respond
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/tags.py", line 120, in span
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      year_delta=year_delta),
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weeutil/weeutil.py", line 460, in archiveSpanSpan
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****      start_dt = time_dt.replace(year=year, month=month)
Jul 31 17:30:41 raspberrypi weewx[456] ERROR weewx.cheetahgenerator: ****  ValueError: day is out of range for month

If the /etc/weewx/skins/neowx-material/month.html.tmpl file is part of/taken from the neowx-material skin then the error is clearly to do with the neowx-material skin and you should seek support from the skin author.

Gary
Reply all
Reply to author
Forward
0 new messages