WeeWX 4.10.1 not updating web page graphics

418 views
Skip to first unread message

Paulo Reis

unread,
Feb 1, 2023, 4:36:34 AM2/1/23
to weewx-user
Hi,

I am a WeeWX user for some time now (RPi with DietPi connect to a WH1080 weather station).

Yesterday, after updating to WeeWX version 4.10.1 (with Seasons 4.10.1 Skin) graphics from web page stopped updating. Other information present in web page is update apart from graphics (I check dates of graphic files and they are from time before update).

I have restarted my RPi several times, restarted weewx service and also my weather station, to no success.

Then I decided to check weewx service status (/etc/init.d/weewx status) and got following errors:

- - - - - - - - - - - - - - - - - - - -
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1335, in get_object
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****      mod = __import__(module)
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 259
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****      log.error(f"Unknown plot type {plot_type}. Ignored")
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****                                                        ^
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****  SyntaxError: invalid syntax
python2[10940]: weewx[10940] ERROR weewx.reportengine:         ****  Generator ignored
python2[10940]: weewx[10940] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
python2[10940]: weewx[10940] INFO weewx.manager: Added record 2023-02-01 09:10:00 GMT (1675242600) to database 'weewx.sdb'
python2[10940]: weewx[10940] INFO weewx.manager: Added record 2023-02-01 09:10:00 GMT (1675242600) to daily summary in 'weewx.sdb'
- - - - - - - - - - - - - - - - - - - -

Can you please help?

If any additional information is required, please ask.

Than you in advance.

Best regards,

Paulo Reis

gjr80

unread,
Feb 1, 2023, 6:26:20 AM2/1/23
to weewx-user
No doubt you are running WeeWX under python 2 and have encountered the bug at issue #840. I am sure in time there will be a release that will fix this issue, but in the meantime you can replace the defective imagegenerator.py as follows:

1. delete the defective imagegenerator.py:

$ sudo rm /usr/share/weewx/weewx/imagegenerator.py

2. download the updated imagegenerator.py:

note this command may require privileged access ie prefix the command with sudo

3. restart WeeWX

Gary

Paulo Reis

unread,
Feb 1, 2023, 9:13:40 AM2/1/23
to weewx-user
Hi, Gary.

Thank you very much for these instructions.

Already replaced imagegenerator.py with new version and got updated graphics.

Best regards,

Paulo Reis
Reply all
Reply to author
Forward
0 new messages