weewx migration

325 views
Skip to first unread message

hajsek...@gmail.com

unread,
May 27, 2022, 10:46:10 AM5/27/22
to weewx-user
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.

John Kline

unread,
May 27, 2022, 3:08:24 PM5/27/22
to weewx...@googlegroups.com
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, hajsek...@gmail.com <hajsek...@gmail.com> wrote:


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/57148ec2-5516-40e6-b02f-896df88d13e9n%40googlegroups.com.

hajsek...@gmail.com

unread,
May 27, 2022, 6:11:59 PM5/27/22
to weewx-user
I use python3 version
weewex is installed by this guide and I use centos 8
weewx interceptor is this one
weewx forecast is this one
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 jo...@johnkline.com napisala:

gjr80

unread,
May 27, 2022, 8:37:28 PM5/27/22
to weewx-user
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.

Gary

John Kline

unread,
May 27, 2022, 9:00:56 PM5/27/22
to weewx...@googlegroups.com



After you follow Gary’s advice to install the current version of readltime_gauge-data, you’ll hit a problem with your version of weewx-forecast, as it hasn’t been updated for Python3.  To fix this, you can install a fork that has been ported:

On May 27, 2022, at 5:37 PM, gjr80 <gjrod...@gmail.com> wrote:



hajsek...@gmail.com

unread,
May 28, 2022, 8:50:59 AM5/28/22
to weewx-user
Thank you
I now manage to start weewx and it looks like it populate weewx database in mysql.
But it doesn't update my html files
I use a observer driver to get data from my froggit HP1000 weather station
I seton weather station to send data to my external  ip 123.123.123.123 on port 9000
this is server where I have installed weewx.
but when I setup observer it doesn't work I get errors
now I setup interceptor but still web page doesn't update.
what I am missing here?

##############################################################################
[Observer]
    # This section is for the Observer weather stations.
   
    # The driver to use
    #driver = user.observer
   
    # How often to poll the device, in seconds
    poll_interval = 60

##############################################################################

[Interceptor]
    # This section is for the network traffic interceptor driver.
   
    # The driver to use:
    # device_type = observer
    driver = user.interceptor
    device_type = ecowitt-client
   
    # Specify the hardware device to capture.  Options include:
    #   acurite-bridge - acurite internet bridge, smarthub, or access
    #   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
    #   lw30x - oregon scientific LW301/LW302
    #   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
    #   ecowitt-client - any hardware that uses the ecowitt protocol
    #   wu-client - any hardware that uses the weather underground protocol
    # device_type = acurite-bridge
    mode = listen
    port = 9900
    [[sensor_map_extensions]]
        inTemp = temperature_1
        inHumidity = humidity_1
        outTemp = temperature_4
        outHumidity = humidity_4
##############################################################################


sobota, 28. maj 2022 ob 03:00:56 UTC+2 je oseba jo...@johnkline.com napisala:

John Kline

unread,
May 28, 2022, 9:19:30 AM5/28/22
to weewx...@googlegroups.com
I’m sure someone can help if you send a log.

On May 28, 2022, at 5:51 AM, hajsek...@gmail.com <hajsek...@gmail.com> wrote:



hajsek...@gmail.com

unread,
May 28, 2022, 10:26:45 AM5/28/22
to weewx-user
I see link is not in post with log.
here is again missed one
and recent log

sobota, 28. maj 2022 ob 15:19:30 UTC+2 je oseba jo...@johnkline.com napisala:

hajsek...@gmail.com

unread,
May 28, 2022, 4:27:00 PM5/28/22
to weewx-user
I finally manage to make it work I made a mistake in weewx.conf
instead of "metric" I have wrong settings
but still I can not get all data from it. No Idea why. I get all data except those below.
and there is the same problem if I use default season skin.
here is new log

Outside Temperature
N/A

Wind Chill

N/A

Heat Index

N/A

Dewpoint

N/A

Humidity

N/A

Barometer

N/A

Barometer Trend (3 hours)

N/A

sobota, 28. maj 2022 ob 16:26:45 UTC+2 je oseba hajsek...@gmail.com napisala:

Tom Keffer

unread,
May 28, 2022, 4:39:36 PM5/28/22
to weewx-user
Please read the directions in the link that John posted about how to get a good log. You gave us only 31 seconds worth. We need to see it from when weewxd starts up through the first reporting cycle.

hajsek...@gmail.com

unread,
May 29, 2022, 6:06:38 AM5/29/22
to weewx-user
yes I see, sorry, there must be log and more log and even more log.
so I have enabled debug=2 and here is 11 miutes of weewx log, I hope that is ok if not I will give more log.
I have in setup to update every 60 seconds also on my weather station console.

sobota, 28. maj 2022 ob 22:39:36 UTC+2 je oseba tke...@gmail.com napisala:

hajsek...@gmail.com

unread,
May 29, 2022, 6:48:47 AM5/29/22
to weewx-user
I remember I also can give you gauge data

nedelja, 29. maj 2022 ob 12:06:38 UTC+2 je oseba hajsek...@gmail.com napisala:

Tom Keffer

unread,
May 29, 2022, 10:36:54 AM5/29/22
to weewx-user
Hard to say, but the most likely problem is that you have a 60 second archive interval. LOOP packets may not be arriving fast enough from your station to support that. For example, if your station emits outside temperature only once every 90 seconds, then many records will not contain any valid value.

Try changing to 300 seconds (5 minutes).

-tk

hajsek...@gmail.com

unread,
May 29, 2022, 12:31:32 PM5/29/22
to weewx-user
I have change this to 300 seconds and it is the same only half data
when I check errors in chrome F12 I see this errors and don't know what they mean.

Mixed Content: The page at 'https://vreme.povej.net/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Lato:300,400,700'. This request has been blocked; the content must be served over HTTPS.
vreme.povej.net/:26 Mixed Content: The page at 'https://vreme.povej.net/' was loaded over HTTPS, but requested an insecure stylesheet 'http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'. This request has been blocked; the content must be served over HTTPS.
image.html:1          Failed to load resource: the server responded with a status of 404 (Not Found)
vreme.povej.net/:1 Mixed Content: The page at 'https://vreme.povej.net/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Lato:300,400,700'. This request has been blocked; the content must be served over HTTPS.
vreme.povej.net/:1 Mixed Content: The page at 'https://vreme.povej.net/' was loaded over HTTPS, but requested an insecure stylesheet 'http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'. This request has been blocked; the content must be served over HTTPS.
DevTools failed to load source map: Could not load content for https://vreme.povej.net/css/main.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE


nedelja, 29. maj 2022 ob 16:36:54 UTC+2 je oseba tke...@gmail.com napisala:

Tom Keffer

unread,
May 29, 2022, 12:38:21 PM5/29/22
to weewx-user
I don't know much about the interceptor driver, but I would guess that there is something wrong with the sensor map. You have outTemp mapped to "temperature_4". Are you sure that's right?

Another option would be to use Gary's Ecowitt driver. It uses the native Ecowitt API.

hajsek...@gmail.com

unread,
May 29, 2022, 1:49:39 PM5/29/22
to weewx-user
thank you, that was it.
I just disable those 4 lines and now I get all data like before.
I was following interceptor installation but this is not ok below. now works all
    [[sensor_map_extensions]]
#        inTemp = temperature_1
#        inHumidity = humidity_1
#        outTemp = temperature_4
#        outHumidity = humidity_4

nedelja, 29. maj 2022 ob 18:38:21 UTC+2 je oseba tke...@gmail.com napisala:

hajsek...@gmail.com

unread,
May 29, 2022, 2:08:12 PM5/29/22
to weewx-user
now I see I have this error
any idea what is that?
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: **** Traceback (most recent call last):
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 1889, in process_packet
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****     data = self.calculate(cached_packet)
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 2265, in calculate
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****     data[field] = self.get_field_value(field, packet)
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 1988, in get_field_value
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****     grace=grace_period)
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****   File "/usr/share/weewx/user/rtgd.py", line 2961, in calc_trend
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: ****     return now - then
May 29 20:06:10 web journal[2823]: weewx[2823] INFO user.rtgd: rtgdthread: **** TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
May 29 20:06:10 web journal[2823]: weewx[2823] INFO weewx.manager: Added record 2022-05-29 20:05:00 CEST (1653847500) to database 'weewx'
May 29 20:06:10 web journal[2823]: weewx[2823] INFO weewx.manager: Added record 2022-05-29 20:05:00 CEST (1653847500) to daily summary in 'weewx'


nedelja, 29. maj 2022 ob 19:49:39 UTC+2 je oseba hajsek...@gmail.com napisala:

Tom Keffer

unread,
May 29, 2022, 4:48:47 PM5/29/22
to weewx-user
There seems to be a bug in the real-time gauge extension. It is not checking for null values before attempting some arithmetic. 

I would suggest filing an issue with the extension's author: https://github.com/gjr80/weewx-realtime_gauge-data/issues

gjr80

unread,
May 29, 2022, 5:29:16 PM5/29/22
to weewx-user
I will deal with that rtgd error.

In the meantime could I suggest the OP pare back his system to a basic out of the box WeeWX install and (1) get it running with the simulator driver and then (2) change over to the driver of his choice and get that running reliably.

Gary

hajsek...@gmail.com

unread,
May 29, 2022, 5:48:19 PM5/29/22
to weewx-user
Ok I will do that
thank you

nedelja, 29. maj 2022 ob 23:29:16 UTC+2 je oseba gjr80 napisala:

hajsek...@gmail.com

unread,
May 30, 2022, 12:48:05 PM5/30/22
to weewx-user
After rebooting server that error is gone, now all works great.

nedelja, 29. maj 2022 ob 23:48:19 UTC+2 je oseba hajsek...@gmail.com napisala:
Reply all
Reply to author
Forward
0 new messages