It look like you are using the realtime_gauge-data v0.3.7 or earlier. The current version is v0.5.5 - you will need to upgrade as python3 support was not added until v0.4.0. Use the latest version - it is available on GitHub here <https://github.com/gjr80/weewx-realtime_gauge-data/releases>.
Gary On Saturday, 28 May 2022 at 08:11:59 UTC+10 [email protected] wrote: > I use python3 version > weewex is installed by this guide and I use centos 8 > http://weewx.com/docs/redhat.htm > weewx interceptor is this one > https://github.com/matthewwall/weewx-interceptor > weewx forecast is this one > > https://codeload.github.com/matthewwall/weewx-forecast/zip/refs/heads/master/weewx-forecast-master.zip > I set debug = 2 > this is log > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** self.loadServices(config_dict) > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** obj = weeutil.weeutil.get_object(svc)(self, config_dict) > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** File "/usr/share/weewx/weeutil/weeutil.py", line 1150, in get_object > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** mod = __import__(module) > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** File "/usr/share/weewx/user/rtgd.py", line 1234 > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** except Exception, e: > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** ^ > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** SyntaxError: invalid syntax > May 28 00:08:27 web journal[19319]: weewx[19319] CRITICAL __main__: > **** Exiting. > May 28 00:09:37 web systemd[1]: Started Session 5 of user root. > May 28 00:09:37 web systemd-logind[1010]: New session 5 of user root. > May 28 00:09:41 web systemd[1]: Stopping SYSV: start and stop the weewx > weather system... > May 28 00:09:41 web weewx[19416]: Shutting down weewx: [ V redu ] > May 28 00:09:41 web systemd[1]: weewx.service: Succeeded. > May 28 00:09:41 web systemd[1]: Stopped SYSV: start and stop the weewx > weather system. > May 28 00:09:41 web systemd[1]: Starting SYSV: start and stop the weewx > weather system... > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: > Initializing weewx version 4.8.0 > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: Using > Python 3.6.8 (default, Apr 29 2022, 13:46:02) #012[GCC 8.5.0 20210514 (Red > Hat 8.5.0-10)] > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: Platform > Linux-4.18.0-372.9.1.el8.x86_64-x86_64-with-almalinux-8.6-Sky_Tiger > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: Locale is > 'sl_SI.UTF-8' > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: Using > configuration file /etc/weewx/weewx.conf > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: Debug is 2 > May 28 00:09:42 web journal[19440]: weewx[19440] INFO __main__: PID file > is /var/run/weewx.pid > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.engine: > Loading station type Interceptor (user.interceptor) > May 28 00:09:42 web weewx[19431]: Starting weewx: [ V redu ] > May 28 00:09:42 web systemd[1]: Started SYSV: start and stop the weewx > weather system. > May 28 00:09:42 web journal[19444]: weewx[19444] INFO user.interceptor: > driver version is 0.53 > May 28 00:09:42 web journal[19444]: weewx[19444] INFO user.interceptor: > device type: observer > May 28 00:09:42 web journal[19444]: weewx[19444] INFO user.interceptor: > mode is listen > May 28 00:09:42 web journal[19444]: weewx[19444] INFO user.interceptor: > listen on :9900 > May 28 00:09:42 web journal[19444]: weewx[19444] INFO user.interceptor: > sensor map: {'pressure': 'pressure', 'barometer': 'barometer', > 'outHumidity': 'humidity_out', 'inHumidity': 'humidity_in', 'outTemp': > 'temperature_out', 'inTemp': 'temperature_in', 'windSpeed': 'wind_speed', > 'windGust': 'wind_gust', 'windDir': 'wind_dir', 'windGustDir': > 'wind_gust_dir', 'radiation': 'solar_radiation', 'dewpoint': 'dewpoint', > 'windchill': 'windchill', 'rain': 'rain', 'rainRate': 'rain_rate', 'UV': > 'uv', 'txBatteryStatus': 'battery', 'extraTemp1': 'temperature_1', > 'extraTemp2': 'temperature_2', 'extraTemp3': 'temperature_3', > 'extraHumid1': 'humidity_1', 'extraHumid2': 'humidity_2', 'soilTemp1': > 'soil_temperature_1', 'soilTemp2': 'soil_temperature_2', 'soilMoist1': > 'soil_moisture_1', 'soilMoist2': 'soil_moisture_2', 'soilMoist3': > 'soil_moisture_3', 'soilMoist4': 'soil_moisture_4', 'leafWet1': > 'leafwetness_1', 'leafWet2': 'leafwetness_2', 'pm2_5': 'pm2_5', > 'extraTemp4': 'temperature_4', 'extraTemp5': 'temperature_5', 'extraTemp6': > 'temperature_6', 'extraTemp7': 'temperature_7', 'extraTemp8': > 'temperature_8', 'extraHumid3': 'humidity_3', 'extraHumid4': 'humidity_4', > 'extraHumid5': 'humidity_5', 'extraHumid6': 'humidity_6', 'extraHumid7': > 'humidity_7', 'extraHumid8': 'humidity_8', 'soilTemp3': > 'soil_temperature_3', 'soilTemp4': 'soil_temperature_4'} > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.engine: > StdConvert target unit is 0x10 > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.wxservices: > StdWXCalculate will use data binding wx_binding > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.engine: > Archive will use data binding wx_binding > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.engine: Record > generation will be attempted in 'hardware' > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.engine: Using > archive interval of 60 seconds (specified in weewx configuration) > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: Zambretti: > forecast version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: Zambretti: > interval=600 max_age=604800 winddir_period=1800 pressure_period=10800 > hemisphere=NORTH lower_pressure=950.0 upper_pressure=1050.0 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: NWS: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: NWS: location ID > (lid) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: NWS: forecast > office ID (foid) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: NWS: forecast > will not be run > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: WU: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: WU: API key > (api_key) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: WU: forecast > will not be run > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: OWM: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: OWM: > interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXX8d95 > location=46.129980,14.601124 fc=5day3hour > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: UKMO: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: UKMO: API key > (api_key) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: UKMO: forecast > will not be run > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: Aeris: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: Aeris: client > identifier (client_id) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: Aeris: client > secret (client_secret) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: Aeris: forecast > will not be run > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: WWO: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: WWO: API key > (api_key) is not specified > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: WWO: forecast > will not be run > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: DS: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: DS: > interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXX114d > location=46.129980,14.601124 fc=daily > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: XTide: forecast > version 3.4.0b1 > May 28 00:09:42 web /weewxd[19444]: forecast: MainThread: XTide: > interval=1209600 max_age=2419200 location='Domzale' duration=2419200 > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.restx: > StationRegistry: Registration not requested. > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.restx: > PWSweather: Posting not enabled. > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.restx: CWOP: > Posting not enabled. > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.restx: WOW: > Posting not enabled. > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.restx: AWEKAS: > Posting not enabled. > May 28 00:09:42 web journal[19444]: weewx[19444] INFO weewx.engine: > 'pyephem' detected, extended almanac data is available > May 28 00:09:42 web journal[19444]: weewx[19444] INFO user.interceptor: > shutting down server thread > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: Caught > unrecoverable exception: > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** invalid syntax (rtgd.py, line 1234) > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** Traceback (most recent call last): > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** File "/usr/share/weewx/weewxd", line 147, in main > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** engine = weewx.engine.StdEngine(config_dict) > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** File "/usr/share/weewx/weewx/engine.py", line 93, in __init__ > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** self.loadServices(config_dict) > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** obj = weeutil.weeutil.get_object(svc)(self, config_dict) > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** File "/usr/share/weewx/weeutil/weeutil.py", line 1150, in get_object > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** mod = __import__(module) > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** File "/usr/share/weewx/user/rtgd.py", line 1234 > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** except Exception, e: > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** ^ > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** SyntaxError: invalid syntax > May 28 00:09:42 web journal[19444]: weewx[19444] CRITICAL __main__: > **** Exiting. > > > > petek, 27. maj 2022 ob 21:08:24 UTC+2 je oseba [email protected] > napisala: > >> Your log snippet shows an error in weewx-realtime_gauge-data, probably >> because it’s an old version that doesn’t work with Python3. What version >> of weewx-realtime_gauge-data have you installed? >> >> Also, since you are want to get the forecast extension working, what >> version are you using of that? >> >> And what python version are you running? >> >> Lastly, it would be good if you included the log as it would answer these >> questions. See: >> https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user >> >> On May 27, 2022, at 7:46 AM, [email protected] <[email protected]> >> wrote: >> >> >> >> I have migrated weewx to another server, but have a problem. >> First I copied old files to new server and try to start it and didn't >> worked. >> Than i Have new installation of weex and after that I have installed >> driver observer when I start weewx it was ok. But after that I have >> installed forecast.zip and try to start weewx and all stopped. >> I use before version 4.8 and don't know if I migrate do I need to install >> wewx first and than install observer driver and forecast. >> after that copy old weewx.conf into /etc/weewx >> and restore mysql database and it should work, but doesn't. >> when I start weewx I get this error. >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO weewx.restx: >> StationRegistry: Registration not requested. >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO weewx.restx: >> PWSweather: Posting not enabled. >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO weewx.restx: CWOP: >> Posting not enabled. >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO weewx.restx: WOW: >> Posting not enabled. >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO weewx.restx: AWEKAS: >> Posting not enabled. >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO weewx.engine: >> 'pyephem' detected, extended almanac data is available >> May 27 16:23:58 web journal[6058]: weewx[6058] INFO user.interceptor: >> shutting down server thread >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: Caught >> unrecoverable exception: >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** invalid syntax (rtgd.py, line 1234) >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** Traceback (most recent call last): >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** File "/usr/share/weewx/weewxd", line 147, in main >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** engine = weewx.engine.StdEngine(config_dict) >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** File "/usr/share/weewx/weewx/engine.py", line 93, in __init__ >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** self.loadServices(config_dict) >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** obj = weeutil.weeutil.get_object(svc)(self, config_dict) >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** File "/usr/share/weewx/weeutil/weeutil.py", line 1150, in get_object >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** mod = __import__(module) >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** File "/usr/share/weewx/user/rtgd.py", line 1234 >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** except Exception, e: >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** ^ >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** SyntaxError: invalid syntax >> May 27 16:23:58 web journal[6058]: weewx[6058] CRITICAL __main__: >> **** Exiting. >> >> -- >> 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]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/57148ec2-5516-40e6-b02f-896df88d13e9n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/57148ec2-5516-40e6-b02f-896df88d13e9n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/942fef96-e4de-468d-a977-2f8d7147a9d0n%40googlegroups.com.
