Thanks. Would it be an idea to change to Wunderground forecast, so that non-US users of weewx also could benefit?
Thanks. Would it be an idea to change to Wunderground forecast, so that non-US users of weewx also could benefit?
There’s a fine library of Wunderground API’s, see http://www.wunderground.com/weather/api/d/docs
Example given on the WU-site, forecast San Fransisco:
http://api.wunderground.com/api/Your_Key/forecast10day/q/CA/San_Francisco.json
gives
{ "response": { "version": "0.1", "termsofService": "http://www.wunderground.com/weather/api/d/terms.html", "features": { "forecast10day": 1 } }, "forecast": { "txt_forecast": { "date": "8:00 AM PDT", "forecastday": [{ "period": 0, "icon": "partlycloudy", "icon_url": "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "title": "Tuesday", "fcttext": "Overcast in the morning, then clear. High of 75F. Winds from the SSW at 5 to 20 mph.", "fcttext_metric": "Overcast in the morning, then clear. High of 24C. Windy. Winds from the SSW at 5 to 30 km/h.", "pop": "0" }, { "period": 1, "icon": "partlycloudy", "icon_url": "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "title": "Tuesday Night", "fcttext": "Mostly cloudy. Low of 55F. Winds from the SW at 5 to 15 mph.", "fcttext_metric": "Mostly cloudy. Low of 13C. Breezy. Winds from the SW at 10 to 20 km/h.", "pop": "0" }, { "period": 2, "icon": "partlycloudy", "icon_url": "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "title": "Wednesday", "fcttext": "Mostly cloudy in the morning, then clear. High of 72F. Winds from the SW at 10 to 15 mph.", "fcttext_metric": "Mostly cloudy in the morning, then clear. High of 22C. Breezy. Winds from the SW at 15 to 25 km/h.", "pop": "0" }, { "period": 3, "icon": "partlycloudy", "icon_url": "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "title": "Wednesday Night", "fcttext": "Mostly cloudy. Fog overnight. Low of 55F. Winds from the SW at 10 to 15 mph.", "fcttext_metric": "Mostly cloudy. Fog overnight. Low of 13C. Breezy. Winds from the SW at 15 to 20 km/h.", "pop": "0" }, { "period": 4, "icon": "partlycloudy", "icon_url": "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "title": "Thursday", "fcttext": "Mostly cloudy. Fog early. High of 70F. Winds from the WSW at 10 to 15 mph.", "fcttext_metric": "Mostly cloudy. Fog early. High of 21C. Windy. Winds from the WSW at 15 to 25 km/h.", "pop": "0" }, { "period": 5, "icon": "clear", "icon_url": "http://icons-ak.wxug.com/i/c/k/clear.gif", "title": "Thursday Night", "fcttext": "Partly cloudy. Fog overnight. Low of 55F. Winds from the WNW at 5 to 10 mph.", "fcttext_metric": "Partly cloudy. Fog overnight. Low of 13C. Winds from the WNW at 10 to 15 km/h.", "pop": "0" }, { "period": 6, "icon": "partlycloudy", "icon_url": "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif", "title": "Friday", "fcttext": "Partly cloudy in the morning, then clear. High of 72F. Winds from the West at 5 to 15 mph.", "fcttext_metric": "Partly cloudy in the morning, then clear. High of 22C. Breezy. Winds from the West at 10 to 20 km/h.",
… etc (did not copy all text)
Just need an API-key to apply for, but that’s for free within reasonable calls per hour. Forecast available for all over the world. Even callable with only LAT/LON positioning
Jul 19 12:57:04 localhost weewx[28475]: wxengine: Caught unrecoverable exception in wxengine:
Jul 19 12:57:04 localhost weewx[28475]: **** 'Archive' object has no attribute 'delRecords'
Jul 19 12:57:04 localhost weewx[28475]: **** Traceback (most recent call last):
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/wxengine.py", line 867, in main
Jul 19 12:57:04 localhost weewx[28475]: **** engine.run()
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/wxengine.py", line 142, in run
Jul 19 12:57:04 localhost weewx[28475]: **** self.dispatchEvent(weewx.Event(weewx.STARTUP))
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/wxengine.py", line 192, in dispatchEvent
Jul 19 12:57:04 localhost weewx[28475]: **** callback(event)
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/wxengine.py", line 443, in startup
Jul 19 12:57:04 localhost weewx[28475]: **** self._catchup()
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/wxengine.py", line 555, in _catchup
Jul 19 12:57:04 localhost weewx[28475]: **** self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, record=record, origin='hardware'))
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/wxengine.py", line 192, in dispatchEvent
Jul 19 12:57:04 localhost weewx[28475]: **** callback(event)
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/forecast.py", line 191, in update_forecast
Jul 19 12:57:04 localhost weewx[28475]: **** self.prune_forecasts(now - self.max_age)
Jul 19 12:57:04 localhost weewx[28475]: **** File "/usr/share/weewx/weewx/forecast.py", line 210, in prune_forecasts
Jul 19 12:57:04 localhost weewx[28475]: **** self.database.delRecords(ts)
Jul 19 12:57:04 localhost weewx[28475]: **** AttributeError: 'Archive' object has no attribute 'delRecords'
Jul 19 12:57:04 localhost weewx[28475]: **** Exiting
Tried setting this up off the wiki last night, but still having a bit of difficulty with the full implementation. For now, I just commented out the prune call.
Do I need to let the database build up a bit before reactivating?
In the mean time I might plug the Zambretti into the generator to achieve something along the lines of the "forecast trend" that is on the display. Shouldn't be too much work to remove it as a service and instead use it as a custom generator.
Alternatively, pulling weather.gov's forecast XML (http://forecast.weather.gov/MapClick.php?lat=35.09385&lon=-89.93466590000003&unit=0&lg=english&FcstType=dwml) and displaying that might be an option, if I get any time to play around with it.
Thanks for your work.
Looking great, Matthew!Is this exfoliation skin available for download?Cheers, Luc
I'm concerned about downloading the NWS forecast in the same thread as the main console loop. This loop should be kept simple and not interrupted for very long. If the hit on the NWS website takes long, it will delay well beyond the couple seconds the loop has. Instead, the update should be done in a separate thread that has its own timer. Every XX seconds it hits the server and updates the database. In fact, this is my major problem with the code.
Again, great progress. This is a commonly asked for feature. If we (you!) setup a proper framework for forecasts, it will be easy for users living overseas to add their own local forecasts. The one barrier to this is that you've had to hardwire in the three forecasts you've provided into the search list. Adding new forecasts means adding on to an ever expanding list. This isn't your fault: the search lists really need to be more modular. Your use case is a good example of the limitations of the present architecture.
Oh, one other thing: Class Archive may change a bit. I don't see the simple features you are using (getSql()) changing, but the getSqlVectors() stuff probably will. I can't imagine why you'd be using that, but I thought I'd warn you!
The syntax for the WU location in weewx.conf is:location = pws:INORTHER26
New code:try:import cjson as json# XXX: maintain compatibility w/ json modulesetattr(json, 'dumps', json.encode)setattr(json, 'loads', json.decode)except Exception, e:try:import simplejson as jsonexcept Exception, e:try:import jsonexcept Exception, e:json = None
in weewx.conf, be sure to replace FileGenerator with ForecastFileGenerator as described in the comments in forecast.py
Sep 1 13:00:48 debian weewx[4138]: **** TypeError: cannot concatenate 'str' and 'ValueHelper' objects
Sep 1 13:00:48 debian weewx[4138]: **** Generator terminated...
I deleted the current forecast.py and forecast.pyc from weewx/bin/user and download the current version from svn.code.sf.net
I now see:
Sep 2 22:00:48 debian weewx[5499]: filegenerator: Caught exception "<class 'NameMapper.NotFound'>"
Sep 2 22:00:48 debian weewx[5499]: **** Message: "cannot find 'obvis' while searching for 'summary.obvis' in template /home/weewx/skins/exfoliation/index.html.tmpl"
Sep 2 22:00:48 debian weewx[5499]: **** Ignoring template and continuing.
Sep 2 22:00:48 debian weewx[5499]: filegenerator: Caught exception "<class 'NameMapper.NotFound'>"
Sep 2 22:00:48 debian weewx[5499]: **** Message: "cannot find 'obvis' while searching for 'summary.obvis' in template /home/weewx/skins/exfoliation/forecast.html.tmpl"
Sep 2 22:00:48 debian weewx[5499]: **** Ignoring template and continuing.
Derek...
sorry to be pedantic, but did you restart weewx?
I have noticed than (for me) the icon directory is not being created in /weewx/public_html/exfoliation so I was not getting and icons in the forecast. I have manually copied icons-wu into /weewx/public_html/exfoliation/ and renamed it icons and now it works other than some sun and moon icons that I copied from icons-aw.
Thanks, did not notice the missing icons when using the desktop but the picture holder boxes are quite apparent on my ipad just now. Will get on to them when my brain stops aching from today's effort!
Gary
I stopped weewx and deleted all the exfoliation files from /skins, /public_html and /bin/user and downloaded all the latest version to the appropriate directories, rebooted (just to be sure) and it all looks good (other than the wrong radar image). http://www.ninedragons.org/weewx/exfoliation/forecast.html
Matthew,The forecast.html page is cleared regularly. Don't know why. I deleted all files in the /home/weewx/public_html/exfoliation folder, restarted weewx and made successive directories. This is what I got.
Any clues?
BTW. Besides the WU forecast I have also added the Zambretti forecast. This results in one icon on the index page, which have a link to the forecast page - correct?
Sep 6 16:55:18
weewx[13306]: forecast: MainThread: Zambretti: starting thread
Sep 6 16:55:18 weewx[13306]: forecast:
MainThread: WU: starting thread
Sep 6 16:55:18 weewx[21553]: forecast:
ZambrettiThread: Zambretti: not yet time to do the forecast
Sep 6 16:55:18 weewx[21553]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 16:55:18 weewx[21554]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 6 16:55:18 weewx[21554]: forecast:
WUThread: WU: terminating thread
Sep 6 16:59:21
weewx[5054]: forecast: MainThread: Zambretti: using table 'archive' in database
'forecast_mysql'
Sep 6 16:59:21 weewx[5054]: forecast:
MainThread: Zambretti: interval=600 max_age=604800 hemisphere=NORTH lower_pressure=950.0
upper_pressure=1050.0
Sep 6 16:59:21 weewx[5054]: forecast:
MainThread: WU: using table 'archive' in database 'forecast_mysql'
Sep 6 16:59:21 weewx[5054]: forecast:
MainThread: WU: interval=10800 max_age=604800 api_key=*************** location=pws:IPARAMAR5
Sep 6 17:00:27
weewx[5054]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:00:27 weewx[5054]: forecast:
MainThread: WU: starting thread
Sep 6 17:00:27 weewx[9414]: forecast:
ZambrettiThread: Zambretti: generating zambretti forecast
Sep 6 17:00:27 weewx[9414]: forecast:
ZambrettiThread: Zambretti: pressure=1006.5401822 month=8 wind=12 trend=None
north=True
Sep 6 17:00:27 weewx[9414]: forecast:
ZambrettiThread: Zambretti: code is None
Sep 6 17:00:27 weewx[9414]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:00:27 weewx[9415]: forecast:
WUThread: WU: downloading forecast from 'http://api.wunderground.com/api/***************/hourly10day/q/pws:IPARAMAR5.json'
Sep 6 17:00:30 weewx[9415]: forecast:
WUThread: WU: got 240 forecast records
Sep 6 17:00:30 weewx[9415]: forecast:
WUThread: WU: using table 'archive' in database 'forecast_mysql'
Sep 6 17:00:31 weewx[9415]: forecast:
WUThread: WU: deleted forecasts prior to 1377892827
Sep 6 17:00:31 weewx[9415]: forecast:
WUThread: WU: terminating thread
Sep 6 17:05:27
weewx[5054]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:05:27 weewx[5054]: forecast:
MainThread: WU: starting thread
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: generating zambretti forecast
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: pressure=1006.50000984 month=8 wind=0
trend=0.0401723633837 north=True
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: code is E
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: generated 1 forecast record
Sep 6 17:05:27 weewx[29082]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 6 17:05:27 weewx[29082]: forecast:
WUThread: WU: terminating thread
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: using table 'archive' in database
'forecast_mysql'
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: deleted forecasts prior to 1377893127
Sep 6 17:05:27 weewx[29081]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:10:28
weewx[5054]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:10:28 weewx[5054]: forecast:
MainThread: WU: starting thread
Sep 6 17:10:28 weewx[16372]: forecast:
ZambrettiThread: Zambretti: not yet time to do the forecast
Sep 6 17:10:28 weewx[16372]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:10:28 weewx[16373]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 6 17:10:28 weewx[16373]: forecast:
WUThread: WU: terminating thread
Sep 6 17:11:26
weewx[20120]: cpustats: started log at 50521
Sep 6 17:11:27 weewx[20120]: forecast:
MainThread: Zambretti: using table 'archive' in database 'forecast_mysql'
Sep 6 17:11:27 weewx[20120]: forecast:
MainThread: Zambretti: interval=600 max_age=604800 hemisphere=NORTH
lower_pressure=950.0 upper_pressure=1050.0
Sep 6 17:11:27 weewx[20120]: forecast:
MainThread: WU: using table 'archive' in database 'forecast_mysql'
Sep 6 17:11:27 weewx[20120]: forecast:
MainThread: WU: interval=10800 max_age=604800 api_key=***************
location=pws:IPARAMAR5
Sep 6 17:15:32
weewx[20120]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:15:32 weewx[20120]: forecast:
MainThread: WU: starting thread
Sep 6 17:15:32 weewx[3474]: forecast:
ZambrettiThread: Zambretti: generating zambretti forecast
Sep 6 17:15:32 weewx[3474]: forecast:
ZambrettiThread: Zambretti: pressure=1006.46292562 month=8 wind=0 trend=None
north=True
Sep 6 17:15:32 weewx[3474]: forecast:
ZambrettiThread: Zambretti: code is None
Sep 6 17:15:32 weewx[3474]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:15:32 weewx[3475]: forecast:
WUThread: WU: downloading forecast from 'http://api.wunderground.com/api/***************/hourly10day/q/pws:IPARAMAR5.json'
Sep 6 17:15:35 weewx[3475]: forecast:
WUThread: WU: got 240 forecast records
Sep 6 17:15:35 weewx[3475]: forecast:
WUThread: WU: using table 'archive' in database 'forecast_mysql'
Sep 6 17:15:36 weewx[3475]: forecast:
WUThread: WU: deleted forecasts prior to 1377893732
Sep 6 17:15:36 weewx[3475]: forecast:
WUThread: WU: terminating thread
Sep 6 17:20:33
weewx[20120]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:20:33 weewx[20120]: forecast:
MainThread: WU: starting thread
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: generating zambretti forecast
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: pressure=1006.44920069 month=8 wind=0
trend=0.0137249350087 north=True
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: code is E
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: generated 1 forecast record
Sep 6 17:20:33 weewx[22879]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 6 17:20:33 weewx[22879]: forecast:
WUThread: WU: terminating thread
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: using table 'archive' in database
'forecast_mysql'
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: deleted forecasts prior to 1377894033
Sep 6 17:20:33 weewx[22878]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:25:18
weewx[20120]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:25:18 weewx[20120]: forecast:
MainThread: WU: starting thread
Sep 6 17:25:18 weewx[8868]: forecast:
ZambrettiThread: Zambretti: not yet time to do the forecast
Sep 6 17:25:18 weewx[8868]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:25:18 weewx[8869]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 6 17:25:18 weewx[8869]: forecast:
WUThread: WU: terminating thread
Sep 6 17:30:19
weewx[20120]: forecast: MainThread: Zambretti: starting thread
Sep 6 17:30:19 weewx[20120]: forecast:
MainThread: WU: starting thread
Sep 6 17:30:19 weewx[28173]: forecast:
ZambrettiThread: Zambretti: not yet time to do the forecast
Sep 6 17:30:19 weewx[28173]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 6 17:30:19 weewx[28174]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 6 17:30:19 weewx[28174]: forecast:
WUThread: WU: terminating thread
How do I get the results of the Zambretti forecast presented?
My exfoliation skin.conf contains the line:
forecast_service = WU
What is the syntax to show both WU and Zambretti forecasts?
Cheers, Luc
Although I have set debug = 1 in weewx.conf I only get ws28xx and forecast logging lines in my /var/log/messages.No other logging from weewx such as ftp, creating html pages and so on. Any suggestions how I get these?
How do I get the results of the Zambretti forecast presented?
My exfoliation skin.conf contains the line:
forecast_service = WU
I have noticed that the precipitation column on the forecast page misses the metrication the rest of the skin receives.
Sep 7 08:15:26
weewx[21942]: Archive: added archive record 2013-09-07 08:15:00 BRT
(1378552500)
Sep 7 08:15:26 weewx[21942]: forecast:
MainThread: Zambretti: starting thread
Sep 7 08:15:26 weewx[21942]: forecast:
MainThread: WU: starting thread
Sep 7 08:15:26 weewx[7535]: forecast:
ZambrettiThread: Zambretti: not yet time to do the forecast
Sep 7 08:15:26 weewx[7535]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 7 08:15:26 weewx[7536]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 7 08:15:26 weewx[7536]: forecast:
WUThread: WU: terminating thread
Sep 7 08:15:26 weewx[7537]:
reportengine: Running reports for latest time in the database.
Sep 7 08:15:26 weewx[7537]:
reportengine: Running report StandardReport
Sep 7 08:15:26 weewx[7537]:
reportengine: Found configuration file /home/weewx/skins/Standard/skin.conf for
report StandardReport
Sep 7 08:15:26 weewx[7537]: stats:
Schema exists with 16 elements
Sep 7 08:15:27 weewx[21946]: restful:
Published record 2013-09-07 08:15:00 BRT (1378552500) to Wunderground station
IPARAMAR5
Sep 7 08:15:27 weewx[7537]:
filegenerator: generated 1 'SummaryByMonth' files in 0.70 seconds
Sep 7 08:15:27 weewx[21946]: restful:
Published record 2013-09-07 08:15:00 BRT (1378552500) to PWSweather station
SRPBMUITVL
Sep 7 08:15:30
weewx[7537]: filegenerator: generated 1 'SummaryByYear' files in 3.38
seconds
Sep 7 08:15:33 weewx[7537]: filegenerator:
generated 12 'toDate' files in 2.80 seconds
Sep 7 08:15:35 weewx[7537]: genimages:
Generated 11 images in 1.58 seconds
Sep 7 08:15:35 weewx[7537]:
reportengine: copied 0 files to /home/weewx/public_html
Sep 7 08:15:35 weewx[7537]:
reportengine: Running report Exfoliation
Sep 7 08:15:35 weewx[7537]:
reportengine: Found configuration file /home/weewx/skins/exfoliation/skin.conf
for report Exfoliation
Sep 7 08:15:35 weewx[7537]: stats:
Schema exists with 16 elements
Sep 7 08:15:35 weewx[7537]:
filegenerator: generated 1 'SummaryByMonth' files in 0.66 seconds
Sep 7 08:15:39 weewx[7537]:
filegenerator: generated 1 'SummaryByYear' files in 3.34 seconds
Sep 7 08:17:35
weewx[7537]: genimages: Generated 16 images in 2.47 seconds
NOTE: around this time I see a good
forecast.html file
Sep 7 08:17:35
weewx[7537]: reportengine: copied 0 files to
/home/weewx/public_html/exfoliation
Sep 7 08:17:35 weewx[7537]:
reportengine: Running report Amphibian
Sep 7 08:17:35 weewx[7537]:
reportengine: Found configuration file /home/weewx/skins/amphibian/skin.conf
for report Amphibian
Sep 7 08:17:35 weewx[7537]: stats:
Schema exists with 16 elements
Sep 7 08:17:41
weewx[7537]: filegenerator: generated 6 'toDate' files in 2.70 seconds
Sep 7 08:17:43 weewx[7537]: genimages:
Generated 9 images in 1.89 seconds
Sep 7 08:17:43 weewx[7537]:
reportengine: copied 0 files to /home/weewx/public_html/amphibian
Sep 7 08:17:43 weewx[7537]:
reportengine: Running report FTP
Sep 7 08:17:43 weewx[7537]:
reportengine: Found configuration file /home/weewx/skins/Ftp/skin.conf for
report FTP
Sep 7 08:17:43 weewx[7537]:
reportengine: FTP upload not requested. Skipped.
Sep 7 08:17:43 weewx[7537]:
reportengine: Running report RSYNC
Sep 7 08:17:43 weewx[7537]:
reportengine: Found configuration file /home/weewx/skins/Rsync/skin.conf for
report RSYNC
Sep 7 08:17:43 weewx[7537]:
reportengine: rsync upload not requested. Skipped.
Sep 7 08:20:57
weewx[21942]: forecast: MainThread: Zambretti: starting thread
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: generating zambretti forecast
Sep 7 08:20:57 weewx[21942]: forecast:
MainThread: WU: starting thread
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: pressure=957.184234728 month=8 wind=3 trend=-2.45847095876
north=True
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: code is Z
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: generated 1 forecast record
Sep 7 08:20:57 weewx[28727]: forecast:
WUThread: WU: not yet time to do the forecast
Sep 7 08:20:57 weewx[28727]: forecast:
WUThread: WU: terminating thread
Sep 7 08:20:57 weewx[28728]:
reportengine: Running reports for latest time in the database.
Sep 7 08:20:57 weewx[28728]:
reportengine: Running report StandardReport
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: using table 'archive' in database
'forecast_mysql'
Sep 7 08:20:57 weewx[28725]: Archive:
added archive record 2013-09-07 08:20:00 BRT (1378552800)
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: deleted forecasts prior to 1377948057
Sep 7 08:20:57 weewx[28725]: forecast:
ZambrettiThread: Zambretti: terminating thread
Sep 7 08:20:57 weewx[28728]:
reportengine: Found configuration file /home/weewx/skins/Standard/skin.conf for
report StandardReport
Sep 7 08:20:57 weewx[28728]: stats:
Schema exists with 16 elements
Sep 7 08:20:57 weewx[21946]: restful:
Published record 2013-09-07 08:20:00 BRT (1378552800) to Wunderground station
IPARAMAR5
Sep 7 08:20:57 weewx[28728]:
filegenerator: generated 1 'SummaryByMonth' files in 0.69 seconds
Sep 7 08:20:58 weewx[21946]: restful:
Published record 2013-09-07 08:20:00 BRT (1378552800) to PWSweather station
SRPBMUITVL
Sep 7 08:21:01 weewx[28728]:
filegenerator: generated 1 'SummaryByYear' files in 3.43 seconds
Sep 7 08:21:04
weewx[28728]: filegenerator: generated 12 'toDate' files in 2.82 seconds
NOTE: around this time I see a forecast.html file with length null bytes
Cheers, Luc
Matthew,
The index.html and forecast.html files show texts $summary.qpf.format('%.2f',' ') and $summary.qpf.nolabel('%.2f','')$summary.qsf.nolabel('%.2f',''). See attachments.Cheers, Luc
Is there any configuration changes needed.
I have stopped weewx, deleted /skins/exfoliation, /bin/user/forecast.* and for good measure /archive/forecast.sdb , downloaded and install the latest file. I also edited /exfoliation/skin.conf for metric units (this maybe my mistake) then rebooted the computer.
did you update forecast.py to the latest version then restart weewx?
qpf is now a ValueHelper with units and formatting.
m
Well, I thought I updated forecast.py, but skipped a stage in the update process.BTW It would help if forecast.py has an ID like a version number or date to distinguish different versions. Now I look at the file lengths.
The forecast is looking good, see attachment.What is the meaning of the minus sign below the rain forecast in mm?
On Sunday, September 8, 2013 10:32:50 AM UTC-4, Lucas Heijst wrote:Well, I thought I updated forecast.py, but skipped a stage in the update process.BTW It would help if forecast.py has an ID like a version number or date to distinguish different versions. Now I look at the file lengths.
the Id tag is already in forecast.py - see the first line of the file.
python test_forecast.pyE..FF...F.EEE.....EEEEEEE..EE...EE..
Hi i have installed your module but now it not work. Can you help me to make your module workable.in log i see thisSep 9 17:51:07 meteo weewx[2943]: forecast: MainThread: Zambretti: starting threadSep 9 17:51:07 meteo weewx[2943]: forecast: MainThread: WU: starting threadSep 9 17:51:07 meteo weewx[2943]: forecast: ZambrettiThread: Zambretti: generating zambretti forecastSep 9 17:51:07 meteo weewx[2943]: forecast: ZambrettiThread: Zambretti: pressure=1018.77968 month=8 wind=0 trend=0.0 north=TrueSep 9 17:51:07 meteo weewx[2943]: forecast: ZambrettiThread: Zambretti: forecast failure: unsupported operand type(s) for -: 'float' and 'str'Sep 9 17:51:07 meteo weewx[2943]: forecast: ZambrettiThread: Zambretti: terminating thread
PYTHONPATH=bin python /home/weewx/bin/user/test_forecast.pyTraceback (most recent call last):File "/home/weewx/bin/user/test_forecast.py", line 17, in <module>import weedbImportError: No module named weedb
PYTHONPATH=bin python bin/user/test_forecast.pyE..FF...F.EEE.....EEEEEEE..EE...EE..