Error after forecast removal

73 views
Skip to first unread message

Dave Webb KB1PVH

unread,
Dec 24, 2016, 8:57:44 AM12/24/16
to weewx...@googlegroups.com
I decided to remove the Forecast module and after doing it I realized I messed up and did it wrong...I think and can't figure it out.

This is what I did

odroid@odroid:~$ sudo /home/weewx/bin/wee_extension --uninstall forecast
Request to remove extension 'forecast'
Finished removing extension 'forecast'


After starting weewx back up I get this error.

Dec 24 08:50:21 odroid weewx[31712]: genimages: Generated 11 images for StandardReport in 1.00 seconds
Dec 24 08:50:21 odroid weewx[31712]: reportengine: copied 0 files to /home/weewx/public_html
Dec 24 08:50:24 odroid weewx[31712]: cheetahgenerator: Generated 16 files for report BigReport in 3.39 seconds
Dec 24 08:50:26 odroid weewx[31712]: genimages: Generated 11 images for BigReport in 1.69 seconds
Dec 24 08:50:26 odroid weewx[31712]: reportengine: copied 0 files to /home/weewx/public_html/big
Dec 24 08:50:26 odroid weewx[31712]: reportengine: copied 0 files to /home/weewx/public_html/ss
Dec 24 08:50:26 odroid weewx[31712]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Dec 24 08:50:26 odroid weewx[31712]:         ****  No module named forecast
Dec 24 08:50:26 odroid weewx[31712]:         ****  Traceback (most recent call last):
Dec 24 08:50:26 odroid weewx[31712]:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 140, in run
Dec 24 08:50:26 odroid weewx[31712]:         ****      obj.start()
Dec 24 08:50:26 odroid weewx[31712]:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 170, in start
Dec 24 08:50:26 odroid weewx[31712]:         ****      self.run()
Dec 24 08:50:26 odroid weewx[31712]:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 140, in run
Dec 24 08:50:26 odroid weewx[31712]:         ****      self.initExtensions(gen_dict[option_section_name])
Dec 24 08:50:26 odroid weewx[31712]:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 175, in initExtensions
Dec 24 08:50:26 odroid weewx[31712]:         ****      class_ = weeutil.weeutil._get_object(x)
Dec 24 08:50:26 odroid weewx[31712]:         ****    File "/home/weewx/bin/weeutil/weeutil.py", line 1015, in _get_object
Dec 24 08:50:26 odroid weewx[31712]:         ****      mod = __import__(module)
Dec 24 08:50:26 odroid weewx[31712]:         ****  ImportError: No module named forecast
Dec 24 08:50:26 odroid weewx[31712]:         ****  Generator terminated...
Dec 24 08:50:27 odroid weewx[31712]: genimages: Generated 11 images for SteelSeries in 1.08 seconds
Dec 24 08:50:44 odroid weewx[31712]: reportengine: ftp'd 65 files in 16.82 seconds

Running version 3.4.0

Dave-KB1PVH 

mwall

unread,
Dec 24, 2016, 11:37:26 AM12/24/16
to weewx-user
On Saturday, December 24, 2016 at 8:57:44 AM UTC-5, Dave Webb wrote:
I decided to remove the Forecast module and after doing it I realized I messed up and did it wrong...I think and can't figure it out.

This is what I did

odroid@odroid:~$ sudo /home/weewx/bin/wee_extension --uninstall forecast
Request to remove extension 'forecast'
Finished removing extension 'forecast'

After starting weewx back up I get this error.
Dec 24 08:50:26 odroid weewx[31712]:         ****  ImportError: No module named forecast
Dec 24 08:50:26 odroid weewx[31712]:         ****  Generator terminated...

one of your templates is trying to use the $forecast module, but you have removed the ForecastVariables search list extension.

any specific reason that you removed the forecast extension?

m

Dave Webb KB1PVH

unread,
Dec 24, 2016, 11:42:55 AM12/24/16
to weewx...@googlegroups.com
Now that I think about it, I remember my Steel Series Gauges scrolls it across the top. 

 I removed it because I wasn't using it other than to scroll across the top of the S.S. Gauges. I have a forecast link that goes to the Weather Underground forecast page. For me it was easier to have actual text to read with the forecast instead of weewx with icons. 

Dave-KB1PVH


Sent from my Galaxy S7

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mwall

unread,
Dec 24, 2016, 11:57:56 AM12/24/16
to weewx-user
On Saturday, December 24, 2016 at 11:42:55 AM UTC-5, Dave Webb wrote:
Now that I think about it, I remember my Steel Series Gauges scrolls it across the top. 

 I removed it because I wasn't using it other than to scroll across the top of the S.S. Gauges. I have a forecast link that goes to the Weather Underground forecast page. For me it was easier to have actual text to read with the forecast instead of weewx with icons. 


thank you dave.  that is quite helpful.

there is a 'description' field in the forecast database that contains exactly this kind of information (at least, it is supposed to :)

i supposed that would be the absolute baseline case of using the forecast extension.  the forecast service would download the forecast data once every 4 hours (that is how often the forecasts actually change).  then you could simply do $forecast.description to get the text for the next forecast period.

one of my intents with the forecast extension is that a weewx-generated web site should not *have* to have embedded iframes or other links to web services; it should be possible to make the weewx-generated pages completely self-sufficient.  (part of this rationale comes from many of my use cases, where network accessibility and reliability are poor)

m

Dave Webb KB1PVH

unread,
Dec 24, 2016, 12:02:20 PM12/24/16
to weewx...@googlegroups.com
This is the page that I use for forecasts


Dave-KB1PVH


Sent from my Galaxy S7
--
Reply all
Reply to author
Forward
0 new messages