Hi Gary, Thanks a lot for the response. I started it directly, and it seems to work, no problem with collecting data via usb: wolfgang@desktop:/etc/weewx$ sudo weewxd /etc/weewx/weewx.conf REC: 2022-06-29 08:37:57 CEST (1656484677) 'altimeter': '30.037633120797683', 'appTemp': '71.99611982772146', 'barometer': '30.01114009807', 'cloudbase': '2946.997066390652', 'dateTime': '1656484677', 'delay': '30', 'dewpoint': '60.95506087039993', 'ET': 'None', 'heatindex': '69.76', 'humidex': '78.01835810673788', 'inDewpoint': '55.0700226414055', 'inHumidity': '31.0', 'inTemp': '89.78', 'interval': '30', 'maxSolarRad': 'None', 'outHumidity': '74.0', 'outTemp': '69.62', 'outTempBatteryStatus': '0', 'pressure': '28.98958872875', 'ptr': '2032', 'radiation': 'None', 'rain': 'None', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '69.62', 'windDir': '45.0', 'windGust': '3.802801148296818', 'windrun': '1.1184709259696521', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:00:13 CEST (1656486013) 'altimeter': '30.034593839650746', 'appTemp': '71.29863987789025', 'barometer': '30.009498686057913', 'cloudbase': '2770.033637241125', 'dateTime': '1656486013', 'delay': '22', 'dewpoint': '61.01369995865785', 'ET': 'None', 'heatindex': '69.06200000000001', 'humidex': '77.33720832640424', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98663573', 'ptr': '2048', 'radiation': 'None', 'rain': 'None', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '157.5', 'windGust': '3.802801148296818', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:00:43 CEST (1656486043) 'altimeter': '30.034593839650746', 'appTemp': '71.29863987789025', 'barometer': '30.009498686057913', 'cloudbase': '2770.033637241125', 'dateTime': '1656486043', 'delay': '22', 'dewpoint': '61.01369995865785', 'ET': 'None', 'heatindex': '69.06200000000001', 'humidex': '77.33720832640424', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98663573', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '157.5', 'windGust': '3.802801148296818', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:01:13 CEST (1656486073) 'altimeter': '30.031554556827572', 'appTemp': '71.29863987789025', 'barometer': '30.00644148366528', 'cloudbase': '2770.033637241125', 'dateTime': '1656486073', 'delay': '22', 'dewpoint': '61.01369995865785', 'ET': 'None', 'heatindex': '69.06200000000001', 'humidex': '77.33720832640424', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98368273125', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '157.5', 'windGust': '3.802801148296818', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:01:49 CEST (1656486109) 'altimeter': '30.031554556827572', 'appTemp': '71.67663987789027', 'barometer': '30.00644148366528', 'cloudbase': '2770.033637241125', 'dateTime': '1656486109', 'delay': '23', 'dewpoint': '61.01369995865785', 'ET': 'None', 'heatindex': '69.06200000000001', 'humidex': '77.33720832640424', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98368273125', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '135.0', 'windGust': '2.2369418519393043', 'windrun': 'None', 'windSpeed': '1.5658592963575133' LOOP: 2022-06-29 09:02:19 CEST (1656486139) 'altimeter': '30.031554556827572', 'appTemp': '71.67663987789027', 'barometer': '30.00644148366528', 'cloudbase': '2770.033637241125', 'dateTime': '1656486139', 'delay': '23', 'dewpoint': '61.01369995865785', 'ET': 'None', 'heatindex': '69.06200000000001', 'humidex': '77.33720832640424', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98368273125', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '135.0', 'windGust': '2.2369418519393043', 'windrun': 'None', 'windSpeed': '1.5658592963575133' LOOP: 2022-06-29 09:02:49 CEST (1656486169) 'altimeter': '30.031554556827572', 'appTemp': '71.1557630373917', 'barometer': '30.00644148366528', 'cloudbase': '2855.000481871861', 'dateTime': '1656486169', 'delay': '24', 'dewpoint': '60.63984584228261', 'ET': 'None', 'heatindex': '69.01500000000001', 'humidex': '77.09076871466092', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '75.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98368273125', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '112.5', 'windGust': '4.473883703878609', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:03:25 CEST (1656486205) 'altimeter': '30.037633120797683', 'appTemp': '71.1557630373917', 'barometer': '30.012555888450542', 'cloudbase': '2855.000481871861', 'dateTime': '1656486205', 'delay': '25', 'dewpoint': '60.63984584228261', 'ET': 'None', 'heatindex': '69.01500000000001', 'humidex': '77.09076871466092', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '75.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98958872875', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '90.0', 'windGust': '3.802801148296818', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:03:55 CEST (1656486235) 'altimeter': '30.037633120797683', 'appTemp': '71.1557630373917', 'barometer': '30.012555888450542', 'cloudbase': '2855.000481871861', 'dateTime': '1656486235', 'delay': '25', 'dewpoint': '60.63984584228261', 'ET': 'None', 'heatindex': '69.01500000000001', 'humidex': '77.09076871466092', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '75.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98958872875', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '90.0', 'windGust': '3.802801148296818', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:04:25 CEST (1656486265) 'altimeter': '30.037633120797683', 'appTemp': '70.79463987789026', 'barometer': '30.012555888450542', 'cloudbase': '2770.033637241125', 'dateTime': '1656486265', 'delay': '26', 'dewpoint': '61.01369995865785', 'ET': 'None', 'heatindex': '69.06200000000001', 'humidex': '77.33720832640424', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.9', 'outTempBatteryStatus': '0', 'pressure': '28.98958872875', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.9', 'windDir': '135.0', 'windGust': '4.473883703878609', 'windrun': 'None', 'windSpeed': '3.1317185927150266' LOOP: 2022-06-29 09:05:01 CEST (1656486301) 'altimeter': '30.031554556827572', 'appTemp': '70.02795734722788', 'barometer': '30.006795972358052', 'cloudbase': '2853.559525724444', 'dateTime': '1656486301', 'delay': '26', 'dewpoint': '60.46618604933124', 'ET': 'None', 'heatindex': '68.81700000000001', 'humidex': '76.79729874870523', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '75.0', 'outTemp': '68.72', 'outTempBatteryStatus': '0', 'pressure': '28.98368273125', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.72', 'windDir': '135.0', 'windGust': '6.039743000236122', 'windrun': 'None', 'windSpeed': '3.802801148296818' LOOP: 2022-06-29 09:05:31 CEST (1656486331) 'altimeter': '30.031554556827572', 'appTemp': '70.02795734722788', 'barometer': '30.006795972358052', 'cloudbase': '2853.559525724444', 'dateTime': '1656486331', 'delay': '26', 'dewpoint': '60.46618604933124', 'ET': 'None', 'heatindex': '68.81700000000001', 'humidex': '76.79729874870523', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '75.0', 'outTemp': '68.72', 'outTempBatteryStatus': '0', 'pressure': '28.98368273125', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.72', 'windDir': '135.0', 'windGust': '6.039743000236122', 'windrun': 'None', 'windSpeed': '3.802801148296818' LOOP: 2022-06-29 09:06:01 CEST (1656486361) 'altimeter': '30.037633120797683', 'appTemp': '71.05195677852426', 'barometer': '30.012910449377383', 'cloudbase': '2768.6573407232577', 'dateTime': '1656486361', 'delay': '27', 'dewpoint': '60.83975566333646', 'ET': 'None', 'heatindex': '68.864', 'humidex': '77.04217802695409', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.72', 'outTempBatteryStatus': '0', 'pressure': '28.98958872875', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.72', 'windDir': '67.5', 'windGust': '6.039743000236122', 'windrun': 'None', 'windSpeed': '2.2369418519393043' LOOP: 2022-06-29 09:06:37 CEST (1656486397) 'altimeter': '30.034593839650746', 'appTemp': '70.54795677852425', 'barometer': '30.00985321086772', 'cloudbase': '2768.6573407232577', 'dateTime': '1656486397', 'delay': '28', 'dewpoint': '60.83975566333646', 'ET': 'None', 'heatindex': '68.864', 'humidex': '77.04217802695409', 'inDewpoint': '56.17149206966253', 'inHumidity': '33.0', 'inTemp': '89.06', 'maxSolarRad': 'None', 'outHumidity': '76.0', 'outTemp': '68.72', 'outTempBatteryStatus': '0', 'pressure': '28.98663573', 'ptr': '2048', 'radiation': 'None', 'rain': '0.0', 'rainRate': '0.0', 'rainTotal': '18.57', 'rxCheckPercent': '100', 'status': '0', 'usUnits': '1', 'UV': 'None', 'windchill': '68.72', 'windDir': '112.5', 'windGust': '6.039743000236122', 'windrun': 'None', 'windSpeed': '3.1317185927150266'
gjr80 schrieb am Mittwoch, 29. Juni 2022 um 06:14:21 UTC+2: > I don't see anything obviously wrong in that log extract, WeeWX appears to > be receiving records and generating reports. Is the Seasons main page being > generated? Does the data/data-time on the page change? > > The line you are suspicious of: > > Jun 29 00:01:02 wolfgang-desktop weewx[1774] INFO weewx.reportengine: > Copied 0 files to /var/www/html/weewx > > is quite normal. That is the WeeWX CopyGenerator saying it had no files to > copy. The CopyGenerator is typically used to copy static files (such as > .js or .css) to the web server, it is often set to copy files once only > on WeeWX startup and then no more. For the Seasons skin it is set to copy > five files (seasons.css, seasons.js, favicon.ico, font/*.woff, > font/*.woff2) once upon startup, if you look at your log you can see five > files were copied at 23:32:13: > > Jun 28 23:32:13 wolfgang-desktop weewx[1774] INFO weewx.reportengine: > Copied 5 files to /var/www/html/weewx > > Since WeeWX appears to be running as it should you could try running > WeeWX directly <http://weewx.com/docs/usersguide.htm#Running_directly> to > see what (if any) data the loop packets and archive records contain. When > running WeeWX directly you should see loop packets (LOOP:) and archive > records (REC:) appear on screen. > > If the loop packets are essentially empty you may need someone who is > familiar with the fousb driver to take a closer look at the log or > otherwise troubleshoot the driver. > > Gary > On Wednesday, 29 June 2022 at 08:11:06 UTC+10 [email protected] > wrote: > >> Thanks a lot for your advice. >> I did a clean reboot, enabled debug and selected all weewx related syslog >> lines (attached). In the second report @00:01, one line looks suspicious: >> >> Jun 29 00:01:02 wolfgang-desktop weewx[1774] INFO weewx.reportengine: >> Copied 0 files to /var/www/html/weewx >> Best, >> Wolfgang >> >> gjr80 schrieb am Dienstag, 28. Juni 2022 um 22:44:11 UTC+2: >> >>> You have a long archive period (30 minutes) so WeeWX will only generate >>> reports at most every 30 minutes. You log extract appears to only cover two >>> seconds, was there anything in the subsequent one hour? I don't believe an >>> unrecognised magic number is a serious error with the fousb driver. I >>> suggest you provide a longer log extract covering the full WeeWX start up >>> and at least two archive periods (one hour) of WeeWX operation. Make sure >>> you edit weewx.conf and set debug = 1 before restarting WeeWX. >>> >>> Gary >>> >>> On Wednesday, 29 June 2022 at 02:44:32 UTC+10 [email protected] >>> wrote: >>> >>>> weewx runs as service on the work station. A bit puzzling is that there >>>> is an error message in the syslog that the magic number is wrong: >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] ERROR weewx.drivers.fousb: >>>> unrecognised magic number 2714 >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.engine: Using >>>> archive interval of 1800 seconds (specified by hardware) >>>> Jun 27 00:58:32 wolfgang-desktop goa-daemon[2908]: goa-daemon version >>>> 3.44.0 starting >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.restx: >>>> StationRegistry: Registration not requested. >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.restx: >>>> Wunderground: Posting not enabled. >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.restx: >>>> PWSweather: Posting not enabled. >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.restx: CWOP: >>>> Posting not enabled. >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.restx: WOW: >>>> Posting not enabled. >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.restx: AWEKAS: >>>> Posting not enabled. >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.engine: >>>> 'pyephem' not detected, extended almanac data is not available >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO __main__: Starting up >>>> weewx version 4.8.0 >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.engine: Using >>>> binding 'wx_binding' to database 'weewx.sdb' >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.manager: >>>> Starting backfill of daily summaries >>>> Jun 27 00:58:32 wolfgang-desktop weewx[1753] INFO weewx.manager: Daily >>>> summaries up to date >>>> >>>> >>>> Wolfgang Bosswick schrieb am Dienstag, 28. Juni 2022 um 16:07:32 UTC+2: >>>> >>>>> [FineOffsetUSB] >>>>> # This section is for the Fine Offset series of weather stations. >>>>> >>>>> # The station model, e.g., WH1080, WS1090, WS2080, WH3081 >>>>> model = WH1080 >>>>> >>>>> # How often to poll the station for data, in seconds >>>>> polling_interval = 60 >>>>> >>>>> # The driver to use: >>>>> driver = weewx.drivers.fousb >>>>> >>>>> ... >>>>> >>>>> [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 >>>>> >>>>> # Uncomment and change to override logging for reports >>>>> log_success = True >>>>> log_failure = True >>>>> >>>>> # The database binding indicates which data should be used in >>>>> reports. >>>>> data_binding = wx_binding >>>>> >>>>> # 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 = true >>>>> >>>>> After an update to Ubuntu 22.04, weewx stopped updating the >>>>> /var/www/hatml/weewx files. I updated weewx to 4.8.0 and phython 3, and >>>>> after that, I managed to get updated reports from the first start of the >>>>> server. Alas, after that, no more updates. >>>>> Any ideas? >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: >>>>> Initializing weewx version 4.8.0 >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: Using >>>>> Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: Platform >>>>> Linux-5.15.0-25-generic-x86_64-with-glibc2.35 >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: Locale is >>>>> 'de_DE.UTF-8' >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: Using >>>>> configuration file /etc/weewx/weewx.conf >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: Debug is 0 >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1609] INFO __main__: PID file >>>>> is /var/run/weewx.pid >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1753] INFO weewx.engine: >>>>> Loading station type FineOffsetUSB (weewx.drivers.fousb) >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1566]: ...done. >>>>> Jun 27 00:58:31 wolfgang-desktop systemd[1]: Started LSB: weewx >>>>> weather system. >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1753] INFO weewx.drivers.fousb: >>>>> driver version is 1.20 >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1753] INFO weewx.drivers.fousb: >>>>> polling mode is PERIODIC >>>>> Jun 27 00:58:31 wolfgang-desktop weewx[1753] INFO weewx.drivers.fousb: >>>>> polling interval is 60 >>>>> Jun 27 00:58:31 wolfgang-desktop sssd_pam[1746]: Starting up >>>>> >>>>> >>>>> -- 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/ffe10b1f-1887-441f-8387-99633be17db0n%40googlegroups.com.
