Error message with WeeWX-Saratoga extension after weewx 4.6.0 upgrade

177 views
Skip to first unread message

Al

unread,
Feb 6, 2022, 8:25:44 PM2/6/22
to weewx...@googlegroups.com
Immediately after upgrading to weewx 4.6.0 I am getting the following
errors:

Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: Evaluation of template
/opt/weewx/skins/WEEWXtags/WEEWXtags.php.tmpl failed with exception
'<class 'KeyError'>'
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** Ignoring template
/opt/weewx/skins/WEEWXtags/WEEWXtags.php.tmpl
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** Reason: 'trend'
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** Traceback (most recent call last):
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** File
"/opt/weewx/bin/weewx/cheetahgenerator.py", line 344, in generate
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** unicode_string =
compiled_template.respond()
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** File
"_opt_weewx_skins_WEEWXtags_WEEWXtags_php_tmpl.py", line 669, in respond
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** File "/opt/weewx/bin/weewx/tags.py",
line 65, in trend
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** time_grace =
to_int(self.option_dict['trend'].get('time_grace', 300))
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR
weewx.cheetahgenerator: **** KeyError: 'trend'
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] INFO
weewx.cheetahgenerator: Generated 0 files for report WEEWXtagsReport in
3.30 seconds
Feb 06 17:00:27 p4-1 weewxd[17341]: weewx[17341] ERROR weewx.restx:
Wunderground-PWS: Failed to publish record 2022-02-06 17:00:00 PST
(1644195600): Failed upload after 3 tries

WEEWXtags.php.tmpl is the latest version (0.1.2, 25 November 2021)

Any ideas as to a fix?

Thanks,

Al

Tom Keffer

unread,
Feb 6, 2022, 8:39:08 PM2/6/22
to weewx...@googlegroups.com
Are you using the extension "since"?

Take a look at this thread and see if it helps. 


--
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/a869600c-4d50-ecd9-3834-a2f086d1abd8%40gmail.com.

gjr80

unread,
Feb 6, 2022, 9:02:49 PM2/6/22
to weewx-user
This will be due to some errant behaviour in one of the WeeWX-Saratoga SLEs that most likely has some of the characteristics of the since.py issue. I will need to work through and fix and will update WeeWX-Saratoga in due course.

Gary

Al

unread,
Feb 6, 2022, 10:22:06 PM2/6/22
to weewx...@googlegroups.com
Thanks Tom and Gary.

For now I'll just go back to the previous weewx version and wait this
out. I have a full backup from this morning taken just before I upgraded.

For reference, there is no 'since.py' on my installation.

Al

gjr80

unread,
Feb 6, 2022, 10:29:54 PM2/6/22
to weewx-user
Hang on, gives about 15 minutes and I will have the new version published.

Gary

Big Al

unread,
Feb 6, 2022, 10:37:13 PM2/6/22
to weewx-user
OK, I'll stick with 4.6.0 and await your update.

Al

gjr80

unread,
Feb 6, 2022, 10:46:14 PM2/6/22
to weewx-user
Turns out I had fixed the 'trend' issue a month ago but never built and published the release, my apologies.

I have published v0.1.3 which fixes this plus one other issue.

Gary

Al

unread,
Feb 7, 2022, 12:03:18 AM2/7/22
to weewx...@googlegroups.com
gjr80 wrote:
> Turns out I had fixed the 'trend' issue a month ago but never built and
> published the release, my apologies.
>
> I have published v0.1.3
> <https://github.com/gjr80/weewx-saratoga/releases/tag/v0.1.3> which
> fixes this plus one other issue.

Thanks Gary! after updating all is well.

Al

Jym SPRL

unread,
Nov 2, 2023, 1:29:13 PM11/2/23
to weewx-user
Hello

i have a similar problem with Weewx-wd. 

Any solutions?

gjr80

unread,
Nov 3, 2023, 4:43:26 AM11/3/23
to weewx-user
The WeeWX-WD extension is no longer being supported or developed. The WeeWX-Saratoga extension does almost all of the things that WeeWX-WD does, is more efficient and is actively supported/developed. You should use it instead of WeeWX-WD.

Gary  

Reply all
Reply to author
Forward
0 new messages