And hers's the error log from the last attempt to start! I'm off to bed shortly so will take another look tomorrow!
Bill On Thursday, September 6, 2018 at 7:37:51 PM UTC-5, Bill M wrote: > > Tryed it but no joy > > my changed weewswd3.py attached, in case I did the changes wrong! > > On Thursday, September 6, 2018 at 6:25:12 PM UTC-5, gjr80 wrote: >> >> Ok, you have an old version of weewxwd3.py that is, how shall I say, not >> quite as robust as it should be. The quick fix is to add a line that will >> avoid the missing windSpeed error. If you are up for it: >> >> 1. edit /usr/share/weewx/user/weewxwd3.py >> 2. go to about line 172, you should see code like this: >> >> # has weewx already calculated appTemp? >> if 'appTemp' not in data_metricwx: >> # no, so calculate it ourself and add to our WD data >> wd_data['appTemp'] = >> weewx.wxformulas.apptempC(data_metricwx['outTemp'], >> >> data_metricwx['outHumidity'], >> >> data_metricwx['windSpeed']) >> >> You need to add an additional line so it looks like: >> >> # has weewx already calculated appTemp? >> if 'appTemp' not in data_metricwx: >> # no, so calculate it ourself and add to our WD data >> if 'outTemp' in data_metricwx and 'outHumidity' in >> data_metricwx and 'windSpeed' in data_metricwx: >> wd_data['appTemp'] = >> weewx.wxformulas.apptempC(data_metricwx['outTemp'], >> >> data_metricwx['outHumidity'], >> >> data_metricwx['windSpeed']) >> >> 3. Be careful with indenting, use the space bar not the tab key, python >> is particular with indents. Indents are multiple of 4 spaces, unfortunately >> posting this on the iPad makes it difficult to format the above code in a >> mono space font so the indents probably look at bit dodgy. >> 4. Save weewxwd3.py >> 5. Restart WeeWX >> >> Have a look at the log and check that WeeWX is running without error. >> >> Gary >> >> PS. Just saw your post about taking my time. I guess if you do want to >> reimage your machine go ahead, you should not lose data provided you have a >> logger with memory connected to your station. Depending on archive interval >> you should have a good 6 days or more at a 5 minute archive interval. WeeWX >> will just pick up any missing data when it next starts. Irrespective of >> whether you reimage or not we should get you onto the latest WeeWX-WD >> version, it's a bit more robust than the version you are using. >> >> -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
root@weather:/usr/share/weewx# /etc/init.d/weewx start [ ok ] Starting weewx weather system: weewx. root@weather:/usr/share/weewx# tail -f /var/log/weewx.log Sep 6 19:45:50 weather weewx[8375]: engine: Using Python 2.7.3 (default, Nov 19 2017, 01:35:09) #012[GCC 4.7.2] Sep 6 19:45:50 weather weewx[8375]: engine: Platform Linux-3.2.0-6-amd64-x86_64-with-debian-7.11 Sep 6 19:45:50 weather weewx[8375]: engine: Locale is 'en_CA.UTF-8' Sep 6 19:45:50 weather weewx[8375]: engine: pid file is /var/run/weewx.pid Sep 6 19:45:50 weather weewx[8379]: engine: Using configuration file /etc/weewx/weewx.conf Sep 6 19:45:50 weather weewx[8379]: engine: Debug is 1 Sep 6 19:45:50 weather weewx[8379]: engine: Initializing engine Sep 6 19:45:50 weather weewx[8379]: engine: Loading station type Vantage (weewx.drivers.vantage) Sep 6 19:45:50 weather weewx[8379]: vantage: Driver version is 3.0.11 Sep 6 19:45:50 weather weewx[8379]: vantage: Opened up serial port /dev/ttyUSB0; baud 19200; timeout 4.00 Sep 6 19:45:54 weather weewx[8379]: vantage: Retry #0 failed Sep 6 19:45:54 weather weewx[8379]: vantage: Gentle wake up of console successful Sep 6 19:45:54 weather weewx[8379]: vantage: Hardware type is 16 Sep 6 19:45:54 weather weewx[8379]: vantage: ISS ID is 1 Sep 6 19:45:54 weather weewx[8379]: vantage: Hardware name: Vantage Pro2 Sep 6 19:45:54 weather weewx[8379]: engine: Loading service weewx.engine.StdTimeSynch Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service weewx.engine.StdTimeSynch Sep 6 19:45:54 weather weewx[8379]: engine: Loading service weewx.engine.StdConvert Sep 6 19:45:54 weather weewx[8379]: engine: StdConvert target unit is 0x1 Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service weewx.engine.StdConvert Sep 6 19:45:54 weather weewx[8379]: engine: Loading service weewx.engine.StdCalibrate Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service weewx.engine.StdCalibrate Sep 6 19:45:54 weather weewx[8379]: engine: Loading service weewx.engine.StdQC Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service weewx.engine.StdQC Sep 6 19:45:54 weather weewx[8379]: engine: Loading service weewx.wxservices.StdWXCalculate Sep 6 19:45:54 weather weewx[8379]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware Sep 6 19:45:54 weather weewx[8379]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service weewx.wxservices.StdWXCalculate Sep 6 19:45:54 weather weewx[8379]: engine: Loading service user.weewxwd3.WdWXCalculate Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service user.weewxwd3.WdWXCalculate Sep 6 19:45:54 weather weewx[8379]: engine: Loading service weewx.engine.StdArchive Sep 6 19:45:54 weather weewx[8379]: engine: Archive will use data binding wx_binding Sep 6 19:45:54 weather weewx[8379]: engine: Record generation will be attempted in 'hardware' Sep 6 19:45:54 weather weewx[8379]: engine: Using archive interval of 300 seconds (specified by hardware) Sep 6 19:45:54 weather weewx[8379]: engine: Use LOOP data in hi/low calculations: 1 Sep 6 19:45:54 weather weewx[8379]: manager: Daily summary version is 2.0 Sep 6 19:45:54 weather weewx[8379]: engine: Using binding 'wx_binding' to database 'weewx.sdb' Sep 6 19:45:54 weather weewx[8379]: manager: Starting backfill of daily summaries Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service weewx.engine.StdArchive Sep 6 19:45:54 weather weewx[8379]: engine: Loading service user.weewxwd3.WdArchive Sep 6 19:45:54 weather weewx[8379]: WdArchive: WdArchive will use data binding wd_binding Sep 6 19:45:54 weather weewx[8379]: manager: Daily summary version is 2.0 Sep 6 19:45:54 weather weewx[8379]: WdArchive: Using binding 'wd_binding' to database 'weewxwd.sdb' Sep 6 19:45:54 weather weewx[8379]: WdArchive: Starting backfill of daily summaries Sep 6 19:45:54 weather weewx[8379]: manager: Starting backfill of daily summaries Sep 6 19:45:54 weather weewx[8379]: WdArchive: Daily summaries up to date. Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service user.weewxwd3.WdArchive Sep 6 19:45:54 weather weewx[8379]: engine: Loading service user.forecast.ZambrettiForecast Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: Zambretti: forecast version 3.2.19 Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: Zambretti: last forecast issued 2018-09-06 09:30:00 CDT (1536244200), requested 2018-09-06 09:30:00 CDT (1536244200) Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: Zambretti: interval=600 max_age=604800 winddir_period=1800 pressure_period=10800 hemisphere=NORTH lower_pressure=950.0 upper_pressure=1050.0 Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service user.forecast.ZambrettiForecast Sep 6 19:45:54 weather weewx[8379]: engine: Loading service user.forecast.NWSForecast Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: NWS: forecast version 3.2.19 Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: NWS: location ID (lid) is not specified Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: NWS: forecast office ID (foid) is not specified Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: NWS: forecast will not be run Sep 6 19:45:54 weather weewx[8379]: engine: Finished loading service user.forecast.NWSForecast Sep 6 19:45:54 weather weewx[8379]: engine: Loading service user.forecast.WUForecast Sep 6 19:45:54 weather weewx[8379]: forecast: MainThread: WU: forecast version 3.2.19 Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: WU: last forecast issued 2018-09-06 07:25:17 CDT (1536236717), requested 2018-09-06 07:25:17 CDT (1536236717) Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: WU: API key (api_key) is not specified Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: WU: forecast will not be run Sep 6 19:45:55 weather weewx[8379]: engine: Finished loading service user.forecast.WUForecast Sep 6 19:45:55 weather weewx[8379]: engine: Loading service user.forecast.OWMForecast Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: OWM: forecast version 3.2.19 Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: OWM: API key (api_key) is not specified Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: OWM: forecast will not be run Sep 6 19:45:55 weather weewx[8379]: engine: Finished loading service user.forecast.OWMForecast Sep 6 19:45:55 weather weewx[8379]: engine: Loading service user.forecast.UKMOForecast Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: UKMO: forecast version 3.2.19 Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: UKMO: API key (api_key) is not specified Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: UKMO: location is not specified Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: UKMO: forecast will not be run Sep 6 19:45:55 weather weewx[8379]: engine: Finished loading service user.forecast.UKMOForecast Sep 6 19:45:55 weather weewx[8379]: engine: Loading service user.forecast.AerisForecast Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: Aeris: forecast version 3.2.19 Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: Aeris: last forecast issued 2017-09-27 06:35:24 CDT (1506512124), requested 2017-09-27 06:35:24 CDT (1506512124) Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: Aeris: interval=10800 max_age=604800 client_id=XXXXXXXXXXXXXXXXXd88g client_secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXvvDf location=49.6772,-97.4356 Sep 6 19:45:55 weather weewx[8379]: engine: Finished loading service user.forecast.AerisForecast Sep 6 19:45:55 weather weewx[8379]: engine: Loading service user.forecast.WWOForecast Sep 6 19:45:55 weather weewx[8379]: forecast: MainThread: WWO: forecast version 3.2.19 Sep 6 19:45:56 weather weewx[8379]: forecast: MainThread: WWO: last forecast issued 2018-05-28 02:55:20 CDT (1527494120), requested 2018-05-28 02:55:20 CDT (1527494120) Sep 6 19:45:56 weather weewx[8379]: forecast: MainThread: WWO: interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXe176 location=49.6772,-97.4356 Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service user.forecast.WWOForecast Sep 6 19:45:56 weather weewx[8379]: engine: Loading service user.forecast.XTideForecast Sep 6 19:45:56 weather weewx[8379]: forecast: MainThread: XTide: forecast version 3.2.19 Sep 6 19:45:56 weather weewx[8379]: forecast: MainThread: XTide: location (location) has not been specified Sep 6 19:45:56 weather weewx[8379]: forecast: MainThread: XTide: forecast will not be run Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service user.forecast.XTideForecast Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.restx.StdStationRegistry Sep 6 19:45:56 weather weewx[8379]: restx: StationRegistry: Station will be registered. Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.restx.StdStationRegistry Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.restx.StdWunderground Sep 6 19:45:56 weather weewx[8379]: restx: Wunderground: Posting not enabled. Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.restx.StdWunderground Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.restx.StdPWSweather Sep 6 19:45:56 weather weewx[8379]: restx: PWSWeather: Data for station SANFORD01 will be posted Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.restx.StdPWSweather Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.restx.StdCWOP Sep 6 19:45:56 weather weewx[8379]: restx: CWOP: Posting not enabled. Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.restx.StdCWOP Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.restx.StdWOW Sep 6 19:45:56 weather weewx[8379]: restx: WOW: Posting not enabled. Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.restx.StdWOW Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.restx.StdAWEKAS Sep 6 19:45:56 weather weewx[8379]: manager: Daily summary version is 2.0 Sep 6 19:45:56 weather weewx[8379]: restx: AWEKAS: Data will be uploaded for user billmcke Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.restx.StdAWEKAS Sep 6 19:45:56 weather weewx[8379]: engine: Loading service user.meteotemplate.Meteotemplate Sep 6 19:45:56 weather weewx[8379]: restx: Meteotemplate: service version is 0.8 Sep 6 19:45:56 weather weewx[8379]: manager: Daily summary version is 2.0 Sep 6 19:45:56 weather weewx[8379]: restx: Meteotemplate: Data will be uploaded to http://www.sanfordweather.com/meteo/api.php Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service user.meteotemplate.Meteotemplate Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.engine.StdPrint Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.engine.StdPrint Sep 6 19:45:56 weather weewx[8379]: engine: Loading service weewx.engine.StdReport Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service weewx.engine.StdReport Sep 6 19:45:56 weather weewx[8379]: engine: Loading service user.lowBattery.BatteryAlarm Sep 6 19:45:56 weather weewx[8379]: manager: Daily summary version is 2.0 Sep 6 19:45:56 weather weewx[8379]: lowBattery: LowBattery alarm enabled. Count threshold is 10 Sep 6 19:45:56 weather weewx[8379]: engine: Finished loading service user.lowBattery.BatteryAlarm Sep 6 19:45:56 weather weewx[8379]: engine: Starting up weewx version 3.8.2 Sep 6 19:45:56 weather weewx[8379]: vantage: Gentle wake up of console successful Sep 6 19:45:56 weather weewx[8379]: engine: Clock error is 0.82 seconds (positive is fast) Sep 6 19:45:56 weather weewx[8379]: vantage: Getting archive packets since 2018-09-06 12:00:00 CDT (1536253200) Sep 6 19:45:56 weather weewx[8379]: vantage: Gentle wake up of console successful Sep 6 19:45:56 weather weewx[8379]: vantage: Retrieving 19 page(s); starting index= 0 Sep 6 19:45:56 weather weewx[8379]: engine: Main loop exiting. Shutting engine down. Sep 6 19:45:56 weather weewx[8379]: restx: Shut down AWEKAS thread. Sep 6 19:45:56 weather weewx[8379]: restx: Shut down PWSWeather thread. Sep 6 19:45:56 weather weewx[8379]: restx: Shut down StationRegistry thread. Sep 6 19:45:56 weather weewx[8379]: engine: Caught unrecoverable exception in engine: Sep 6 19:45:56 weather weewx[8379]: **** 'outTemp' Sep 6 19:45:56 weather weewx[8379]: **** Traceback (most recent call last): Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/weewx/engine.py", line 877, in main Sep 6 19:45:56 weather weewx[8379]: **** engine.run() Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/weewx/engine.py", line 160, in run Sep 6 19:45:56 weather weewx[8379]: **** self.dispatchEvent(weewx.Event(weewx.STARTUP)) Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent Sep 6 19:45:56 weather weewx[8379]: **** callback(event) Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/weewx/engine.py", line 509, in startup Sep 6 19:45:56 weather weewx[8379]: **** self._catchup(self.engine.console.genStartupRecords) Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/weewx/engine.py", line 623, in _catchup Sep 6 19:45:56 weather weewx[8379]: **** origin='hardware')) Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent Sep 6 19:45:56 weather weewx[8379]: **** callback(event) Sep 6 19:45:56 weather weewx[8379]: **** File "/usr/share/weewx/user/weewxwd3.py", line 170, in new_archive_record Sep 6 19:45:56 weather weewx[8379]: **** wd_data['humidex'] = weewx.wxformulas.humidexC(data_metricwx['outTemp'], Sep 6 19:45:56 weather weewx[8379]: **** KeyError: 'outTemp' Sep 6 19:45:56 weather weewx[8379]: **** Exiting. ^C
