/etc/weewx/skins/Ftp/head.inc not founded

158 views
Skip to first unread message

michae...@gmail.com

unread,
Jan 30, 2024, 2:31:34 PMJan 30
to weewx-user
Hello, I run weewx on a Raspberry pi. I installed it via apt install weewx. are neowx material is the default skin. Now I have installed the update to weewx 5 and since then I have repeatedly had the following error message. Apparently it can't find the file /etc/weewx/skins/Ftp/head.inc. I couldn't find it in git either. Do you have an idea of what could happen next? Greetings Michael


Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/neowx-material/yesterday.html.tmpl failed with exception '<class 'FileNotFoundError'>'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/yesterday.html.tmpl
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_yesterday_html_tmpl.py", line 524, in respond
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1685, in _handleCheetahInclude
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      file=file)
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 738, in compile
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      fileHash += str(os.path.getmtime(file))
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3.7/genericpath.py", line 55, in getmtime
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      return os.stat(filename).st_mtime
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/neowx-material/week.html.tmpl failed with exception '<class 'FileNotFoundError'>'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/week.html.tmpl
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_week_html_tmpl.py", line 501, in respond
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1685, in _handleCheetahInclude
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      file=file)
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 738, in compile
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      fileHash += str(os.path.getmtime(file))
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3.7/genericpath.py", line 55, in getmtime
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      return os.stat(filename).st_mtime
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/neowx-material/month.html.tmpl failed with exception '<class 'FileNotFoundError'>'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/month.html.tmpl
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_neowx_material_month_html_tmpl.py", line 501, in respond
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1685, in _handleCheetahInclude
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      file=file)
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 738, in compile
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      fileHash += str(os.path.getmtime(file))
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3.7/genericpath.py", line 55, in getmtime
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****      return os.stat(filename).st_mtime
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/neowx-material/year.html.tmpl failed with exception '<class 'FileNotFoundError'>'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx-material/year.html.tmpl
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: **** Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/etc/weewx/skins/Ftp/head.inc'
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jan 30 20:11:37 raspberrypi weewxd[425]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate

Tom Keffer

unread,
Jan 30, 2024, 4:02:09 PMJan 30
to weewx...@googlegroups.com
Hello, Michael

Just to clarify, you had an existing v4.10.2 installation, then you upgraded it to V5.0.0, using apt. Correct?

Please set debug=1, restart weewx, then post the log through the first reporting cycle. We're looking for the location of various directories.



--
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/11c89ab7-e2c0-4692-83a0-90cf74fe69d1n%40googlegroups.com.

michae...@gmail.com

unread,
Jan 31, 2024, 12:10:38 PMJan 31
to weewx-user
Hello,
Yes, exactly.

I set Debug=1. I hope the section is detailed enough.

Thanks again for the help. Michael


Jan 31 17:59:20 raspberrypi systemd[1]: Started WeeWX.
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Initializing weewxd version 5.0.0
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Using Python 3.7.3 (default, Oct 11 2023, 09:51:27) #012[GCC 8.3.0]
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Located at /usr/bin/python3
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Platform Linux-5.10.103-v7+-armv7l-with-debian-10.13
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Locale: 'de_DE.UTF-8'
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: WEEWX_ROOT: /
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: User module: /etc/weewx/bin/user
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO __main__: Debug: 1
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO weewx.engine: Loading station type BYOWS (user.byows_rpi)
Jan 31 17:59:20 raspberrypi /weewxd.py: BYOWS RPi: using driver BYOWS
Jan 31 17:59:20 raspberrypi /weewxd.py: BYOWS RPi: driver version is 0.51
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO weewx.engine: StdConvert target unit is 0x11
Jan 31 17:59:20 raspberrypi weewxd[13461]: INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: service version is 0.16
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: sysinfo: Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: processor: 3
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: model name: ARMv7 Processor rev 4 (v7l)
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: BogoMIPS: 76.80
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: CPU implementer: 0x41
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: CPU architecture: 7
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: CPU variant: 0x0
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: CPU part: 0xd03
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: CPU revision: 4
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: Hardware: BCM2835
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: Revision: a02082
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: Serial: 0000000016b6433e
Jan 31 17:59:21 raspberrypi /weewxd.py: cmon: cpuinfo: Model: Raspberry Pi 3 Model B Rev 1.2
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.engine: Archive will use data binding wx_binding
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.engine: Record generation will be attempted in 'hardware'
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.engine: Using archive interval of 150 seconds (specified in weewx configuration)
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.restx: StationRegistry: Registration not requested.
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.restx: Wunderground: Posting not enabled.
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.restx: PWSweather: Posting not enabled.
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.restx: CWOP: Posting not enabled.
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.restx: WOW: Posting not enabled.
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.restx: AWEKAS: Posting not enabled.
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO __main__: Starting up weewx version 5.0.0
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx'
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.manager: Starting backfill of daily summaries
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.manager: Daily summaries up to date
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.engine: Starting main packet loop.
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: 0.0,0.0,1.2,45.0,5.4,59.0,-40.0,-40.0,4.8,6.3
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Garagen: 77, 11.58, 983.97, 67.28, Außen: 76, 4.93, 988.06, 100.00
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Rohdaten aus Michaeldatei: 19.21,0.00,98525.88,-77.00,31.01.2024 - 17:57:50
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Datei michael läuft durch
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Michael ist durch
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Rohdaten aus Zählerdatei: 225.26,225.02,225.08,86.35,153.89,227.08,467.32,50.0,225.82,225.76,224.4,0.0,0.0,0.0,0.0,50.0,"31.01.2024 17:49:08","31.01.2024 17:49:08",'30.01.24 10:00:00', 13086, 13568, 224, 387, 15872, 95344, 989848, 989848, 2981459163, 0, 0, 0, 0, 0, 0, 28910
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Zählervergleich1: "29.12.2022 09:19:34" "31.01.2024 17:49:08"
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Zählerfehler 1: 0
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Zählervergleich2: "29.12.2022 09:19:34" "31.01.2024 17:49:08"
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Zählerfehler 2: 0
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Er geht rein
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Verbrauch: 13553.32
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Zähler.txt: -9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,-9999.9,,, 5, ., -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, -9999.9, 28910
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Data {'outHumidity': 100.0, 'pressure': 988.0593764517292, 'outTemp': 4.93, 'extraTemp2': 11.58, 'pressure2': 983.9737459499598, 'barometer2': 121.42603999707073, 'extraTemp3': 5.4, 'extraTemp5': 4.8, 'extraTemp606': 6.3, 'extraHumid2': 67.27846765497706, 'extraHumid3': 59.0, 'windSpeed': 0.0, 'windGust': 1.2, 'windDir': 45.0, 'rain': 0.0, 'extraTemp8': 19.21, 'extraHumi8': 0.0, 'pressure4': 98525.88, 'barometer4': 102980.24255373707, 'signal2': -77.0, 'Zu1': 225.26, 'Zu2': 225.02, 'Zu3': 225.08, 'Zp1': 86.35, 'Zp2': 153.89, 'Zp3': 227.08, 'Zpg': 467.32, 'Zhz': 50.0, 'Eu1': 225.82, 'Eu2': 225.76, 'Eu3': 224.4, 'Ep1': 0.0, 'Ep2': 0.0, 'Ep3': 0.0, 'Epg': 0.0, 'Ehz': 50.0, 'Pac': 13086.0, 'Pdc': 13568.0, 'Uac': 224.0, 'Udc': 387.0, 'STag': 15872.0, 'SGestern': 95344.0, 'SMonat': 989848.0, 'SJahr': 989848.0, 'STotal': 2981459163.0, 'Verbrauch': 13553.32}
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Paket vor yield {'dateTime': 1706720361, 'usUnits': 17, 'outHumidity': 100.0, 'pressure': 988.0593764517292, 'outTemp': 4.93, 'extraTemp2': 11.58, 'pressure2': 983.9737459499598, 'barometer2': 121.42603999707073, 'extraTemp3': 5.4, 'extraTemp5': 4.8, 'extraTemp606': 6.3, 'extraHumid2': 67.27846765497706, 'extraHumid3': 59.0, 'windSpeed': 0.0, 'windGust': 1.2, 'windDir': 45.0, 'rain': 0.0, 'extraTemp8': 19.21, 'extraHumi8': 0.0, 'pressure4': 98525.88, 'barometer4': 102980.24255373707, 'signal2': -77.0, 'Zu1': 225.26, 'Zu2': 225.02, 'Zu3': 225.08, 'Zp1': 86.35, 'Zp2': 153.89, 'Zp3': 227.08, 'Zpg': 467.32, 'Zhz': 50.0, 'Eu1': 225.82, 'Eu2': 225.76, 'Eu3': 224.4, 'Ep1': 0.0, 'Ep2': 0.0, 'Ep3': 0.0, 'Epg': 0.0, 'Ehz': 50.0, 'Pac': 13086.0, 'Pdc': 13568.0, 'Uac': 224.0, 'Udc': 387.0, 'STag': 15872.0, 'SGestern': 95344.0, 'SMonat': 989848.0, 'SJahr': 989848.0, 'STotal': 2981459163.0, 'Verbrauch': 13553.32}
Jan 31 17:59:21 raspberrypi weewxd[13461]: INFO weewx.wxxtypes: Type beaufort has been deprecated. Use unit beaufort instead.
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Paket {'dateTime': 1706720361, 'usUnits': 17, 'outHumidity': 100.0, 'pressure': 988.0593764517292, 'outTemp': 4.93, 'extraTemp2': 11.58, 'pressure2': 983.9737459499598, 'barometer2': 121.42603999707073, 'extraTemp3': 5.4, 'extraTemp5': 4.8, 'extraTemp606': 6.3, 'extraHumid2': 67.27846765497706, 'extraHumid3': 59.0, 'windSpeed': 0.0, 'windGust': 1.2, 'windDir': None, 'rain': 0.0, 'extraTemp8': 19.21, 'extraHumi8': 0.0, 'pressure4': 98525.88, 'barometer4': 102980.24255373707, 'signal2': -77.0, 'Zu1': 225.26, 'Zu2': 225.02, 'Zu3': 225.08, 'Zp1': 86.35, 'Zp2': 153.89, 'Zp3': 227.08, 'Zpg': 467.32, 'Zhz': 50.0, 'Eu1': 225.82, 'Eu2': 225.76, 'Eu3': 224.4, 'Ep1': 0.0, 'Ep2': 0.0, 'Ep3': 0.0, 'Epg': 0.0, 'Ehz': 50.0, 'Pac': 13086.0, 'Pdc': 13568.0, 'Uac': 224.0, 'Udc': 387.0, 'STag': 15872.0, 'SGestern': 95344.0, 'SMonat': 989848.0, 'SJahr': 989848.0, 'STotal': 2981459163.0, 'Verbrauch': 13553.32, 'altimeter': 1033.7084201173743, 'appTemp': 3.791524962369003, 'barometer': 1035.2937068780714, 'beaufort': 0, 'cloudbase': 380.0000000000001, 'dewpoint': 4.929999999999999, 'ET': None, 'heatindex': 4.089666666666669, 'humidex': 4.93, 'inDewpoint': None, 'maxSolarRad': 0.0, 'rainRate': 0.0, 'windchill': 4.9300000000000015, 'windrun': None}
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: RTL433: 0.0,-40.0,-40.0,-40.0,-40.0,-40.0,-40.0,-40.0,-40.0,-40.0
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Michael: -40.0,-40.0,-40.0,0.0,31.01.2024 - 17:57:50
Jan 31 17:59:21 raspberrypi /weewxd.py: BYOWS RPi: Scheife läuft durch

Tom Keffer

unread,
Jan 31, 2024, 6:38:49 PMJan 31
to weewx...@googlegroups.com
Thanks. 

Unfortunately, I'm unable to reproduce this. Could you use the tool "weectl debug" and post the results? It will create a copy of weewx.conf with any passwords obfuscated. It usually does its job well, but just in case, check the output and make sure there isn't anything private in there.

weectl debug > /var/tmp/debug.txt

Then post debug.txt

michae...@gmail.com

unread,
Feb 4, 2024, 6:31:05 AMFeb 4
to weewx-user
Hello Tom, sorry for the late reply. I have attached the document below. As you can see, I added some additional measurements. I have now copied the missing ones into the skin FTP with copies from the skin neowx material. Now works. Thank you for the effort.
Greetings Michael

Using configuration file [1m/etc/weewx/weewx.conf [0m

System info
  Platform:       Linux-5.10.103-v7+-armv7l-with-debian-10.13
  Python Version: 3.7.3

Load Information
   1 minute load average:  0.21    
   5 minute load average:  0.15    
  15 minute load average:  0.10    

General Weewx info
  Weewx version 5.0.0 detected.

Currently installed extensions
Extension Name    Version   Description
cmon              0.16      Collect and display computer health indicators.
neowx             1.0       The most advanced weewx skin.
neowx-material    1.11      The most versatile and modern weewx skin
sdr               0.77      Capture data from rtl_433

Archive info
  Database name:        weewx
  Table name:           archive
  Version               4.0
  Unit system:          17 (METRICWX)
  First good timestamp: 2020-10-10 08:45:00 CEST (1602312300)
  Last good timestamp:  2024-02-03 18:47:30 CET (1706982450)
  Number of records:    356799
  weewx (weewx.conf) is set to use an archive interval of 150 seconds.
  The station hardware was not interrogated to determine the archive interval.

Supported SQL keys
  dateTime                  usUnits                   interval                
  altimeter                 appTemp                   appTemp1                
  barometer                 batteryStatus1            batteryStatus2          
  batteryStatus3            batteryStatus4            batteryStatus5          
  batteryStatus6            batteryStatus7            batteryStatus8          
  cloudbase                 co                        co2                      
  consBatteryVoltage        dewpoint                  dewpoint1                
  ET                        extraHumid1               extraHumid2              
  extraHumid3               extraHumid4               extraHumid5              
  extraHumid6               extraHumid7               extraHumid8              
  extraTemp1                extraTemp2                extraTemp3              
  extraTemp4                extraTemp5                extraTemp6              
  extraTemp7                extraTemp8                extraTemp9              
  extraTemp10               extraTemp11               extraTemp12              
  forecast                  hail                      hailBatteryStatus        
  hailRate                  heatindex                 heatindex1              
  heatingTemp               heatingVoltage            humidex                  
  humidex1                  inDewpoint                inHumidity              
  inTemp                    inTempBatteryStatus       leafTemp1                
  leafTemp2                 leafWet1                  leafWet2                
  lightning_distance        lightning_disturber_count lightning_energy        
  lightning_noise_count     lightning_strike_count    luminosity              
  maxSolarRad               nh3                       no2                      
  noise                     o3                        outHumidity              
  outTemp                   outTempBatteryStatus      pb                      
  pm10_0                    pm1_0                     pm2_5                    
  pressure                  radiation                 rain                    
  rainBatteryStatus         rainRate                  referenceVoltage        
  rxCheckPercent            signal1                   signal2                  
  signal3                   signal4                   signal5                  
  signal6                   signal7                   signal8                  
  snow                      snowBatteryStatus         snowDepth                
  snowMoisture              snowRate                  so2                      
  soilMoist1                soilMoist2                soilMoist3              
  soilMoist4                soilTemp1                 soilTemp2                
  soilTemp3                 soilTemp4                 supplyVoltage            
  txBatteryStatus           UV                        uvBatteryStatus          
  windBatteryStatus         windchill                 windDir                  
  windGust                  windGustDir               windrun                  
  windSpeed                 Zpg                       Zp1                      
  Zp2                       Zp3                       Zu1                      
  Zu2                       Zu3                       Zhz                      
  Eu1                       Eu2                       Eu3                      
  Ehz                       extraTemp606              wohnHeiz                
  wohnSoll                  Pac                       Pdc                      
  Uac                       Udc                       STag                    
  SGestern                  SMonat                    SJahr                    
  STotal                    Verbrauch                

Databases configured in weewx.conf:
  archive_sqlite:
     database_name weewx.sdb          
            driver weedb.sqlite        
       SQLITE_ROOT /var/lib/weewx      
  archive_mysql:
     database_name weewx              
            driver weedb.mysql        
              host localhost          
              user weewx              
          password weewx              
  cmon_sqlite:
     database_name cmon                
            driver weedb.mysql        
              host localhost          
              user weewx              
          password weewx              

--- Start configuration file /etc/weewx/weewx.conf ---
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer <tke...@gmail.com>
# See the file LICENSE.txt for your rights.

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

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 1

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 4.10.2
config_path = /etc/weewx/weewx.conf
WEEWX_ROOT_CONFIG = /

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

#   This section is for information about the station.

[Station]
   
    # Description of the station location
    location = Greding
   
    # Latitude in decimal degrees. Negative for southern hemisphere
    latitude = 49.045833
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = 11.3525
   
    # Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 380, meter
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    station_type = BYOWS
   
    # If you have a website, you may specify an URL
    #station_url = http://www.example.com
   
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

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

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

[SDR]
    # This section is for the software-defined radio driver.
   
    # The driver to use
    driver = user.sdr
    cmd = rtl_433 -M utc -F json
    path = /usr/local/bin/
    log_unknown_sensors = True
    log_unmapped_senrors = True
   
    [[sensor_map]]
        rain_total = rain_mm.*.AlectoV1-Rain
        extraTemp1 = temperature_C.*.AlectoV1-Temperature
        extraHumid1 = humidity.*.AlectoV1-Temperature
        windSpeed = wind_avg_m_s.*.AlectoV1-Wind
        windDir = wind_dir_deg.*.AlectoV1-Wind
        windGust = wind_max_m_s.*.AlectoV1-Wind

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

[BYOWS]
    # This section is for the Raspberry Pi Bring Your Own Weather Station driver.
   
    # [REQUIRED]
    # The driver to use.
    driver = user.byows_rpi
   
    # [OPTIONAL]
    # How often should the driver generate packets in seconds
    loop_interval = 60
   
    # [OPTIONAL]
    # Pin to which anemometer is connected, the DEFAULT is pin 5.
    anemometer_pin = 5
   
    # [OPTIONAL]
    # Pin to which rain bucket is connected, the DEFAULT is pin 6.
    rain_bucket_pin = 6
   
    # [OPTIONAL]
    # Port and address for sensor bme280, the DEFAULT are port=1 address=0x77
    bme280_port = 1
    bme280_address = 0x76
    bme280_address2 = 0x77
   
    # [OPTIONAL]
    # Channel to which wind vane is connected to on MCP3008, The DEFAULT is channel 0
    mcp3008_channel = 0
   
    # [OPTIONAL]
    # Anemometer adjustment value, the DEFAULT is 1.18
    anemometer_adjustment = 1.18
   
    # [OPTIONAL]
    # Bucket Size in mm, the DEFAULT is 0.2794 mm.
    bucket_size = 0.2794
   
    # [OPTIONAL]
    # Anemometer radious in cm, the DEFAULT is 9.0 cm.    
    anemometer_radius_cm = 9.0

[Eigenbau]
    driver = user.Eigener_Driver

[Simulator]
    # This section is for the weewx weather station simulator
   
    # The time (in seconds) between LOOP packets.
    loop_interval = 2.5
   
    # The simulator mode can be either 'simulator' or 'generator'.
    # Real-time simulator. Sleep between each LOOP packet.
    mode = simulator
    # Generator.  Emit LOOP packets as fast as possible (useful for testing).
    #mode = generator
   
    # The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the default
    # is to use the present time.
    #start = 2011-01-01T00:00
   
    # The driver to use:
    driver = weewx.drivers.simulator

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

#   This section is for uploading data to Internet sites

[StdRESTful]
   
    [[StationRegistry]]
        # To register this weather station with weewx, set this to true
        register_this_station = false
   
    [[AWEKAS]]
        # This section is for configuring posts to AWEKAS.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a username and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        username = XXXXXX
        password = XXXXXX
   
    [[CWOP]]
        # This section is for configuring posts to CWOP.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify the station ID (e.g., CW1234).
        enable = false
        station = XXXXXX
   
    # If this is an APRS (radio amateur) station, uncomment
    # the following and replace with a passcode (e.g., 12345).
    #passcode = replace_me (APRS stations only)
   
    [[PWSweather]]
        # This section is for configuring posts to PWSweather.com.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        station = XXXXXX
        password = XXXXXX
   
    [[WOW]]
        # This section is for configuring posts to WOW.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        station = XXXXXX
        password = XXXXXX
   
    [[Wunderground]]
        # This section is for configuring posts to the Weather Underground.
       
        # If you wish to do this, set the option 'enable' to true,
        # and specify a station (e.g., 'KORHOODR3') and password.
        # To guard against parsing errors, put the password in quotes.
        enable = false
        station = XXXXXX
        password = XXXXXX
       
        # If you plan on using wunderfixer, set the following
        # to your API key:
        api_key = XXXXXX
       
        # Set the following to True to have weewx use the WU "Rapidfire"
        # protocol. Not all hardware can support it. See the User's Guide.
        rapidfire = False

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

#   This section specifies what reports, using which skins, to generate.

[StdReport]
   
    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins
   
    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/html/weewx
   
    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding
   
    # Whether to log a successful operation
    log_success = True
   
    # Whether to log an unsuccessful operation
    log_failure = True
   
    # Each of the following subsections defines a report that will be run.
    # See the customizing guide to change the units, plot types and line
    # colors, modify the fonts, display additional sensor data, and other
    # customizations. Many of those changes can be made here by overriding
    # parameters, or by modifying templates within the skin itself.
   
    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = false    #true
   
    #[[SmartphoneReport]]
    ## The SmartphoneReport uses the 'Smartphone' skin, and the images and
    ## files are placed in a dedicated subdirectory.
    #skin = Smartphone
    #enable = false
    #HTML_ROOT = /var/www/html/weewx/smartphone
   
    #[[MobileReport]]
    ## The MobileReport uses the 'Mobile' skin, and the images and files
    ## are placed in a dedicated subdirectory.
    #skin = Mobile
    #enable = false
    #HTML_ROOT = /var/www/html/weewx/mobile
    #  [[cmon]]
    #     skin = cmon
    #    HTML_ROOT = /var/www/html/cmon
    #[[neowx]]
    #skin = neowx    #-material  
    #HTML_ROOT = /var/www/html/neowx
    [[neowx-material]]
        skin = neowx-material
        HTML_ROOT = /var/www/html/weewx
   
    [[StandardReport]]
        # This is the old "Standard" skin. By default, it is not enabled.
        skin = neowx-material    #standard #neowx
        enable = true
   
    [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp
       
        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true    #false
        user = XXXXXX
        password = XXXXXX
        server = XXXXXX    # The ftp server name, e.g, www.myserver.org
        path = www    # The destination directory, e.g., /weather
       
        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False
       
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = /var/www/html/weewx
       
        # Most FTP servers use port 21
        port = 21
       
        # Set to 1 to use passive mode, zero for active mode
        passive = 1
    [[FTP2]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp2
       
        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true    #false
        user = XXXXXX
        password = XXXXXX
        server = XXXXXX    # The ftp server name, e.g, www.myserver.org
        path = default-website    # The destination directory, e.g., /weather
       
        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = true
       
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = /var/www/html/weewx
       
        # Most FTP servers use port 21
        port = 21
       
        # Set to 1 to use passive mode, zero for active mode
        passive = 1
   
    [[RSYNC]]
        # rsync'ing to a webserver is treated as just another report
        skin = Rsync
       
        # If you wish to use rsync, you must configure passwordless ssh using
        # public/private key authentication from the user account that weewx
        # runs to the user account on the remote machine where the files
        # will be copied.
        #
        # If you wish to use rsync, set "enable" to "true", then
        # fill out server, user, and path.
        # The server should appear in your .ssh/config file.
        # The user is the username used in the identity file.
        # The path is the destination directory, such as /var/www/html/weather.
        # Be sure that the user has write permissions on the destination!
        enable = false
        server = XXXXXX
        user = XXXXXX
        path = replace_me
       
        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = /var/www/html/weewx
       
        # Rsync can be configured to remove files from the remote server if
        # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
        # make a mistake in the remote path, you could could unintentionally
        # cause unrelated files to be deleted. Set to 1 to enable remote file
        # deletion, zero to allow files to accumulate remotely.
        delete = 1
   
    ####
   
    # Various options for customizing your reports.
   
    [[Defaults]]
       
        [[[Units]]]
           
            # The following section sets what unit to use for each unit group.
            # NB: The unit is always in the singular. I.e., 'mile_per_hour',
            # NOT 'miles_per_hour'
            [[[[Groups]]]]
               
                group_altitude = meter    # Options are 'foot' or 'meter'
                group_degree_day = degree_C_day    # Options are 'degree_F_day' or 'degree_C_day'
                group_distance = km    # Options are 'mile' or 'km'
                group_pressure = hPa    # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
                group_rain = mm    # Options are 'inch', 'cm', or 'mm'
                group_rainrate = mm_per_hour    # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
                group_speed = meter_per_second    # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
                group_speed2 = meter_per_second2    # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
                group_temperature = degree_C    # Options are 'degree_F' or 'degree_C'
                group_energy2 = hertz
                group_energy = kilowatt_hour
           
            # The following section sets the formatting for each type of unit.
            [[[[StringFormats]]]]
               
                centibar = %.0f
                cm = %.2f
                cm_per_hour = %.2f
                degree_C = %.1f
                degree_F = %.1f
                degree_compass = %.0f
                foot = %.0f
                hertz = %.2f
                hPa = %.1f
                hour = %.1f
                inHg = %.3f
                inch = %.2f
                inch_per_hour = %.2f
                km = %.1f
                km_per_hour = %.0f
                km_per_hour2 = %.1f
                knot = %.0f
                knot2 = %.1f
                mbar = %.1f
                meter = %.0f
                meter_per_second = %.1f
                meter_per_second2 = %.1f
                mile = %.1f
                mile_per_hour = %.0f
                mile_per_hour2 = %.1f
                mm = %.1f
                mmHg = %.1f
                mm_per_hour = %.1f
                percent = %.0f
                second = %.0f
                uv_index = %.1f
                volt = %.1f
                watt = %.2f
                frequency = %.2f
                watt_per_meter_squared = %.0f
                NONE = "   N/A"
           
            # The following section overrides the label used for each type of unit
            [[[[Labels]]]]
               
                meter = " Meter", " Meter"    # You may prefer "metre".
                day = " Tag", " Tage"
                hour = " Stunde", " Stunden"
                minute = " Minute", " Minuten"
                second = " Sekunden", " Sekunde"
                NONE = ""
           
            # The following section sets the format for each time scale.
            # The values below will work in every locale, but they may not look
            # particularly attractive.
            [[[[TimeFormats]]]]
               
                hour = %H:%M
                day = %X
                week = %X (%A)
                month = %x %X
                year = %x %X
                rainyear = %x %X
                current = %x %X
                ephem_day = %X
                ephem_year = %x %X
           
            [[[[Ordinates]]]]
               
                # Ordinal directions. The last one is for no wind direction
                directions = N, NNO, NO, ONO, O, OSO, SO, SSO, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A
           
            # The following section sets the base temperatures used for the
            #  calculation of heating, cooling, and growing degree-days.
            [[[[DegreeDays]]]]
               
                # Base temperature for heating days, with unit:
                heating_base = 65, degree_F
                # Base temperature for cooling days, with unit:
                cooling_base = 65, degree_F
                # Base temperature for growing days, with unit:
                growing_base = 50, degree_F
           
            # A trend takes a difference across a time period. The following
            # section sets the time period, and how big an error is allowed to
            # still be counted as the start or end of a period.
            [[[[Trend]]]]
               
                time_delta = 10800    # 3 hours
                time_grace = 300    # 5 minutes
       
        # The labels to be used for each observation type
        [[[Labels]]]
           
            # Set to hemisphere abbreviations suitable for your location:
            hemispheres = N, S, O, W
           
            # Formats to be used for latitude whole degrees, longitude whole
            # degrees, and minutes:
            latlon_formats = %02d, %03d, %05.2f
           
            # Generic labels, keyed by an observation type.
            [[[[Generic]]]]
                barometer = Barometer
                dewpoint = Taupunkt
                ET = ET
                heatindex = Heat Index
                inHumidity = Innenfeuchte
                inTemp = Innentemperatur
                outHumidity = Aussenfeuchte
                outTemp = Aussentemperatur
                radiation = Radiation
                rain = Regen
                rainRate = Regen Rate
                UV = UV Index
                windDir = Windrichtung
                windGust = Windmax
                windGustDir = Gust Direction
                windSpeed = Windgeschwindigkeit
                windchill = Wind Chill
                windgustvec = Gust Vector
                windvec = Wind Vector
                extraTemp1 = Temperature1
                extraTemp2 = Garagentemperatur
                extraTemp3 = Alecto Aussentemperatur
                extraTemp4 = WT450 Aussentemperatur
                extraTemp7 = Wohnzimmer-Temperatur
                extraTemp8 = Michael-Temperatur
                extraTemp5 = Temperatur NEXUS-T
                extraTemp606 = Temperatur Lidl
                extraHumid2 = Garagenfeuchte
                extraHumid3 = Alecto Aussenfeuchte
                extraHumid4 = WT450 Aussenfeuchte
                extraHumid7 = Wohnzimmer-Feuchte
                Zpg = Gesamtleistung
                Zp1 = Leistung L1
                Zp2 = Leistung L2
                Zp3 = Leistung L3
                Zhz = Frequenz Keller
                Ehz = Frequenz Scheune
               
                # Sensor status indicators
               
                rxCheckPercent = Signal Quality
                txBatteryStatus = Transmitter Battery
                windBatteryStatus = Wind Battery
                rainBatteryStatus = Rain Battery
                outTempBatteryStatus = Outside Temperature Battery
                inTempBatteryStatus = Inside Temperature Battery
                consBatteryVoltage = Console Battery
                heatingVoltage = Heating Battery
                supplyVoltage = Supply Voltage
                referenceVoltage = Reference Voltage
       
        [[[Almanac]]]
           
            # The labels to be used for the phases of the moon:
            moon_phases = New, Waxing crescent, First quarter, Waxing gibbous, Full, Waning gibbous, Last quarter, Waning crescent

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

#   This service acts as a filter, converting the unit system coming from
#   the hardware to a unit system in the database.

[StdConvert]
   
    # The target_unit affects only the unit system in the database. Once
    # chosen it cannot be changed without converting the entire database.
    # Modification of target_unit after starting weewx will result in
    # corrupt data - the database will contain a mix of US and METRIC data.
    #
    # The value of target_unit does not affect the unit system for
    # reporting - reports can display US, Metric, or any combination of units.
    #
    # In most cases, target_unit should be left as the default: US
    #
    # In particular, those migrating from a standard wview installation
    # should use US since that is what the wview database contains.
   
    # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
    target_unit = METRICWX    # Options are 'US', 'METRICWX', or 'METRIC'

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

#   This section can adjust data using calibration expressions.

[StdCalibrate]
   
    [[Corrections]]
        # For each type, an arbitrary calibration expression can be given.
        # It should be in the units defined in the StdConvert section.
        # Example:
        foo = foo + 0.2

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

#   This section is for quality control checks. If units are not specified,
#   values must be in the units defined in the StdConvert section.

[StdQC]
   
    [[MinMax]]
        barometer = 26, 32.5, inHg
        pressure = 24, 34.5, inHg
        outTemp = -39, 60, degree_C
        extraTemp1 = -39, 60, degree_C
        extraTemp2 = -39, 60, degree_C
        extraTemp3 = -39, 60, degree_C
        extraTemp4 = -39, 60, degree_C
        extraTemp5 = -39, 60, degree_C
        extraTemp9 = -39, 60, degree_C
        inTemp = 15, 33, degree_C
        extraTemp6 = 15, 70, degree_C
        extraTemp7 = 15, 70, degree_C
        #       wohnHeiz = 23, 29, degree_C
        #      wohnSoll = 15, 33, degree_C
        extraTemp8 = 15, 33, degree_C
        outHumidity = 20, 100
        extraHumid2 = 20, 100
        extraHumid3 = 20, 100
        extraHumid4 = 20, 100
        extraHumid6 = 20, 100
        extraHumid7 = 20, 100
        extraHumid8 = 20, 100
        inHumidity = 20, 100
        windSpeed = 0, 120, mile_per_hour
        windGust = 0, 120, mile_per_hour
        windDir = 0, 360
        rain = 0, 10, inch

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

#   This section controls the origin of derived values.

[StdWXCalculate]
   
    [[Calculations]]
        # How to calculate derived quantities.  Possible values are:
        #  hardware        - use the value provided by hardware
        #  software        - use the value calculated by weewx
        #  prefer_hardware - use value provide by hardware if available,
        #                      otherwise use value calculated by weewx
       
        pressure = prefer_hardware
        altimeter = prefer_hardware
        appTemp = prefer_hardware
        barometer = prefer_hardware
        beaufort = prefer_hardware
        cloudbase = prefer_hardware
        dewpoint = prefer_hardware
        ET = prefer_hardware
        heatindex = prefer_hardware
        humidex = prefer_hardware
        inDewpoint = prefer_hardware
        maxSolarRad = prefer_hardware
        rainRate = prefer_hardware
        windchill = prefer_hardware
        windrun = prefer_hardware

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

#   For hardware that supports it, this section controls how often the
#   onboard clock gets updated.

[StdTimeSynch]
   
    # How often to check the weather station clock for drift (in seconds)
    clock_check = 14400
   
    # How much it can drift before we will correct it (in seconds)
    max_drift = 5

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

#   This section is for configuring the archive service.

[StdArchive]
   
    # If the station hardware supports data logging then the archive interval
    # will be downloaded from the station. Otherwise, specify it (in seconds).
    archive_interval = 150
   
    # If possible, new archive records are downloaded from the station
    # hardware. If the hardware does not support this, then new archive
    # records will be generated in software.
    # Set the following to "software" to force software record generation.
    record_generation = hardware
   
    # Whether to include LOOP data in hi/low statistics
    loop_hilo = True
   
    # The data binding used to save archive records
    data_binding = wx_binding

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

#   This section binds a data store to a database.

[DataBindings]
   
    [[wx_binding]]
        # The database must match one of the sections in [Databases].
        # This is likely to be the only option you would want to change.
        database = archive_mysql
        # The name of the table within the database
        table_name = archive
        # The manager handles aggregation of data for historical summaries
        manager = weewx.manager.DaySummaryManager
        # The schema defines the structure of the database.
        # It is *only* used when the database is created.
        schema = schemas.wview_extendeds.schema
    [[cmon_binding]]
        database = cmon_sqlite
        table_name = archive
        manager = weewx.manager.DaySummaryManager
        schema = user.cmon.schema

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

#   This section defines various databases.

[Databases]
   
    # A SQLite database is simply a single file
    [[archive_sqlite]]
        database_name = weewx.sdb
        database_type = SQLite
   
    # MySQL
    [[archive_mysql]]
        database_name = weewx
        database_type = MySQL
    [[cmon_sqlite]]
        database_name = cmon
        database_type = MySQL

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

#   This section defines defaults for the different types of databases.

[DatabaseTypes]
   
    # Defaults for SQLite databases
    [[SQLite]]
        driver = weedb.sqlite
        # Directory in which the database files are located
        SQLITE_ROOT = /var/lib/weewx
   
    # Defaults for MySQL databases
    [[MySQL]]
        driver = weedb.mysql
        # The host where the database is located
        host = localhost
        # The user name for logging in to the host
        user = XXXXXX
        # The password for the user name (quotes guard against parsing errors)
        password = XXXXXX

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

#   This section configures the internal weewx engine.

[Engine]
    # The following section specifies which services should be run and in what order.
    [[Services]]
        prep_services = weewx.engine.StdTimeSynch
        data_services = ""    #user.zaehler.AddElectricity
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate, user.cmon.ComputerMonitor
        xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx.wxxtypes.StdDelta
        archive_services = weewx.engine.StdArchive
        restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport

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

# Options for extension 'cmon'
[ComputerMonitor]
    data_binding = cmon_binding

Tom Keffer

unread,
Feb 4, 2024, 2:11:48 PMFeb 4
to weewx...@googlegroups.com
That looks pretty normal except for one thing: the neowx-material skin is being used twice:

    [[neowx-material]]
        skin = neowx-material
        HTML_ROOT = /var/www/html/weewx
   
    [[StandardReport]]
        # This is the old "Standard" skin. By default, it is not enabled.
        skin = neowx-material    #standard #neowx
        enable = true

Not sure why you're doing this, but it shouldn't cause the problem you're having.

The only thing I can think of is that an exception is being raised within a report, which causes the current working directory to get messed up.

V5.0.1 will be slightly more robust to this happening. Perhaps you could substitute your copy of /usr/share/weewx/weewx/reportengine.py with the current one

Then try again. Post the log if you're still having problems.

-tk


Tom Keffer

unread,
Feb 5, 2024, 11:10:38 AMFeb 5
to weewx...@googlegroups.com, michae...@gmail.com
Version 5.0.1 includes the change in reportengine.py, so you just need to upgrade.

Let me know if that fixes the problem.

-tk
Reply all
Reply to author
Forward
0 new messages