No idea what would cause that. The simplest way to proceed is to just drop <https://www.weewx.com/docs/5.1/utilities/weectl-database/#drop-the-daily-summaries> the daily summaries, then rebuild <https://www.weewx.com/docs/5.1/utilities/weectl-database/#rebuild-the-daily-summaries> them.
*weectl database drop-daily* *weectl database rebuild-daily* -tk On Mon, Dec 23, 2024 at 11:57 AM mihec <peter...@gmail.com> wrote: > The database update failed, unfortunately... > pi@vreme-Solkan-master:~ $ sudo weectl database update > Using configuration file /etc/weewx/weewx.conf > The update process does not affect archive data, but does alter the > database. > Continue (y/n)? y > Preparing interval weighting fix... > Daily summaries at V2.0. Patching to V4.0 > Traceback (most recent call last):0:00 CEST (1628719200) > File "/usr/share/weewx/weedb/sqlite.py", line 38, in guarded_fn > return fn(*args, **kwargs) > File "/usr/share/weewx/weedb/sqlite.py", line 233, in execute > return sqlite3.Cursor.execute(self, *args, **kwargs) > sqlite3.OperationalError: no such column: inf > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/share/weewx/weectl.py", line 75, in <module> > main() > File "/usr/share/weewx/weectl.py", line 67, in main > namespace.func(namespace) > File "/usr/share/weewx/weectllib/__init__.py", line 90, in dispatch > namespace.action_func(config_dict, namespace) > File "/usr/share/weewx/weectllib/database_cmd.py", line 406, in > update_database > weectllib.database_actions.update_database(config_dict, > File "/usr/share/weewx/weectllib/database_actions.py", line 559, in > update_database > with weewx.manager.open_manager_with_config(config_dict, db_binding) > as dbm: > File "/usr/share/weewx/weewx/manager.py", line 938, in > open_manager_with_config > return open_manager(manager_dict, initialize) > File "/usr/share/weewx/weewx/manager.py", line 928, in open_manager > return manager_cls.open(manager_dict['database_dict'], > File "/usr/share/weewx/weewx/manager.py", line 187, in open > dbmanager = cls(connection, table_name) > File "/usr/share/weewx/weewx/manager.py", line 1076, in __init__ > self.patch_sums() > File "/usr/share/weewx/weewx/manager.py", line 1531, in patch_sums > self.recalculate_weights(start_d=datetime.date(2020, 6, 1)) > File "/usr/share/weewx/weewx/manager.py", line 1451, in > recalculate_weights > self._do_tranche(mark_d, end_of_tranche_d, weight_fn, progress_fn) > File "/usr/share/weewx/weewx/manager.py", line 1490, in _do_tranche > self._set_day_sums(day_accum, cursor) > File "/usr/share/weewx/weewx/manager.py", line 1515, in _set_day_sums > cursor.execute(update_sql, (day_accum.timespan.start,)) > File "/usr/share/weewx/weedb/sqlite.py", line 50, in guarded_fn > raise weedb.NoColumnError(e) > weedb.NoColumnError: no such column: inf > > ponedeljek, 23. december 2024 ob 20:46:36 UTC+1 je oseba mihec napisala: > >> OK, I did a fresh OS install (bullseye 32-bit) and installed version >> 5.1.0. The issue with "nothing happening" remained. Then, I let weewx >> create a fresh database and that worked fine. So it seemed the issue might >> be related to the database. I added three more columns to the original >> weewx.sdb (when I started with weewx years ago) so I didn't / don't want to >> lose the data. >> Thanks for another hint, Tom. My RPi 3B+ is doing database update now. It >> seems it will take several hours to finish (takes 1 minute for 25 days). I >> hope this will fix the database so I can use it from this point on. >> Will weewx know how many archive records to read from the datalogger once >> it comes online again? >> >> ponedeljek, 23. december 2024 ob 16:27:56 UTC+1 je oseba Tom Keffer >> napisala: >> >>> It looks like your database was never patched to fix a bug in the daily >>> summaries. See the Upgrade Guide for V3.7 >>> <https://www.weewx.com/docs/5.1/upgrade/#changes-to-daily-summaries>. >>> This patching process takes some time. Unfortunately, it was stopped >>> prematurely. >>> >>> Try patching it explicitly >>> <https://www.weewx.com/docs/5.1/utilities/weectl-database/#update-a-database>. >>> This has the advantage that you can watch its progress. >>> >>> *weectl database upgrade* >>> >>> >>> >>> >>> On Mon, Dec 23, 2024 at 5:00 AM mihec <pete...@gmail.com> wrote: >>> >>>> Sorry, this is the log content when I restart weewx after I set the >>>> permissions on directories and database file: >>>> Dec 23 13:50:26 vreme-Solkan-master systemd[1]: Started WeeWX. >>>> Dec 23 13:50:26 vreme-Solkan-master weewxd[32632]: DEBUG __main__: >>>> **** raise Terminate >>>> Dec 23 13:50:26 vreme-Solkan-master weewxd[32632]: DEBUG __main__: >>>> **** Terminate >>>> Dec 23 13:50:26 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> Initializing weewxd version 5.1.0 >>>> Dec 23 13:50:26 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: Using >>>> Python: 3.7.3 (default, Apr 3 2019, 05:39:12) #012[GCC 8.2.0] >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> Located at: /usr/bin/python3 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> Platform: Linux-4.19.66-v7+-armv7l-with-debian-10.0 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> Locale: 'sl_SI.UTF-8' >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: Entry >>>> path: /usr/share/weewx/weewxd.py >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> WEEWX_ROOT: /etc/weewx >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: Config >>>> file: /etc/weewx/weewx.conf >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: User >>>> module: /etc/weewx/bin/user >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: Debug: >>>> 1 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: User: >>>> weewx >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: Group: >>>> weewx >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO __main__: >>>> Groups: dialout weewx >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG __main__: >>>> loop_on_init: False >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG __main__: >>>> Initializing engine >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO weewx.engine: >>>> Loading station type Vantage (weewx.drivers.vantage) >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: Driver version is 3.6.2 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: Option loop_request=1 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200; >>>> timeout 4.00 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: Successfully woke up Vantage console >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: Hardware type is 17 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: ISS ID is 1 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG >>>> weewx.drivers.vantage: Hardware name: Vantage Vue >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service weewx.engine.StdTimeSynch >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service weewx.engine.StdTimeSynch >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service user.strele.streleservice >>>> Dec 23 13:50:27 vreme-Solkan-master /weewxd.py: strele: using >>>> /home/pi/weewx/html/strele2.txt >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service user.strele.streleservice >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service user.tempjar.tempjarservice >>>> Dec 23 13:50:27 vreme-Solkan-master /weewxd.py: tempJar: using >>>> /home/pi/weewx/html/extraTemp1.txt >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service user.tempjar.tempjarservice >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service user.solarjar.solarjarservice >>>> Dec 23 13:50:27 vreme-Solkan-master /weewxd.py: solarJar: using >>>> /home/pi/weewx/html/solar.txt >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service user.solarjar.solarjarservice >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service user.aqi.AQIservice >>>> Dec 23 13:50:27 vreme-Solkan-master /weewxd.py: AQI: using >>>> /home/pi/weewx/html/aqi.txt >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service user.aqi.AQIservice >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service user.soil.Soilservice >>>> Dec 23 13:50:27 vreme-Solkan-master /weewxd.py: Temperatura tal: using >>>> /home/pi/weewx/html/soiltemp.txt >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service user.soil.Soilservice >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service user.temp_pisarna.Pisarnaservice >>>> Dec 23 13:50:27 vreme-Solkan-master /weewxd.py: Temperatura v pisarni: >>>> /home/pi/data/ITtemp.txt >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service user.temp_pisarna.Pisarnaservice >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service weewx.engine.StdConvert >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO weewx.engine: >>>> StdConvert target unit is 0x1 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service weewx.engine.StdConvert >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service weewx.engine.StdCalibrate >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service weewx.engine.StdCalibrate >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service weewx.engine.StdQC >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Finished loading service weewx.engine.StdQC >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.engine: >>>> Loading service weewx.wxservices.StdWXCalculate >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO >>>> weewx.wxservices: StdWXCalculate will use data binding wx_binding >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.manager: >>>> Daily summary version is 2.0 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO weewx.manager: >>>> Daily summaries at V2.0. Patching to V4.0 >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: INFO weewx.manager: >>>> recalculate_weights: Using database 'weewx.sdb' >>>> Dec 23 13:50:27 vreme-Solkan-master weewxd[1302]: DEBUG weewx.manager: >>>> recalculate_weights: Tranche size 100 >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1333]: (pi) CMD >>>> (/home/pi/scripts/readITtemp.sh) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1335]: (pi) CMD >>>> (/home/pi/weewx/scripts/loadStrele.sh) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1341]: (pi) CMD >>>> (/home/pi/weewx/scripts/loadSoilTemp.sh) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1345]: (pi) CMD >>>> (/home/pi/weewx/scripts/obeti.sh) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1351]: (pi) CMD >>>> (/usr/bin/python /home/pi/scripts/readDALSolkan.py) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1353]: (pi) CMD >>>> (/usr/bin/python /home/pi/scripts/parseWForiginal.py) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1355]: (pi) CMD >>>> (/home/pi/weewx/scripts/solar.sh) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1312]: (CRON) info (No MTA >>>> installed, discarding output) >>>> Dec 23 13:51:01 vreme-Solkan-master CRON[1313]: (CRON) info (No MTA >>>> installed, discarding output) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1504]: (pi) CMD >>>> (/home/pi/weewx/scripts/loadStrele.sh) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1505]: (pi) CMD >>>> (/home/pi/weewx/scripts/solar.sh) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1509]: (pi) CMD >>>> (/home/pi/weewx/scripts/loadSoilTemp.sh) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1517]: (pi) CMD >>>> (/usr/bin/python /home/pi/scripts/parseWForiginal.py) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1512]: (pi) CMD >>>> (/usr/bin/python /home/pi/scripts/readDALSolkan.py) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1520]: (pi) CMD >>>> (/home/pi/scripts/readITtemp.sh) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1527]: (pi) CMD >>>> (/home/pi/weewx/scripts/obeti.sh) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1484]: (CRON) info (No MTA >>>> installed, discarding output) >>>> Dec 23 13:52:01 vreme-Solkan-master CRON[1483]: (CRON) info (No MTA >>>> installed, discarding output) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1690]: (pi) CMD >>>> (/home/pi/scripts/readITtemp.sh) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1696]: (pi) CMD >>>> (/home/pi/weewx/scripts/obeti.sh) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1703]: (pi) CMD >>>> (/home/pi/weewx/scripts/solar.sh) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1702]: (pi) CMD >>>> (/home/pi/weewx/scripts/loadSoilTemp.sh) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1706]: (pi) CMD >>>> (/usr/bin/python /home/pi/scripts/readDALSolkan.py) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1713]: (pi) CMD >>>> (/home/pi/weewx/scripts/loadStrele.sh) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1717]: (pi) CMD >>>> (/usr/bin/python /home/pi/scripts/parseWForiginal.py) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1671]: (CRON) info (No MTA >>>> installed, discarding output) >>>> Dec 23 13:53:01 vreme-Solkan-master CRON[1672]: (CRON) info (No MTA >>>> installed, discarding output) >>>> >>>> >>>> pi@vreme-Solkan-master:~ $ ls -la weewx/database/ >>>> skupno 666208 >>>> drwxrwxrwx 3 weewx weewx 4096 dec 23 13:54 . >>>> drwxrwxrwx 8 weewx weewx 4096 dec 14 06:31 .. >>>> drwxrwxrwx 2 root root 4096 sep 11 2019 backup >>>> -rwxrwxrwx 1 weewx weewx 682086400 dec 23 13:48 weewx.sdb >>>> -rwxrwxrwx 1 weewx weewx 90800 dec 23 13:56 weewx.sdb-journal >>>> >>>> The /home/pi/weewx/ and /home/pi/weewx/database/ directories are both >>>> set to weewx:weewx owners. >>>> >>>> The 'weewx.sdb-journal' appeared with weewx 5.1.0. The time of last >>>> change on the 'weewx.sdb' is the time when I re-set ownership to >>>> weewx:weewx. >>>> >>>> Now it looks like the weewx doesn't try to read the data from the >>>> logger and run the tasks (WU, FTP). >>>> >>>> ponedeljek, 23. december 2024 ob 13:51:30 UTC+1 je oseba Tom Keffer >>>> napisala: >>>> >>>>> Without a log, so are we. >>>>> >>>>> See *How to get a good, useful log >>>>> <https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user#how-to-get-a-good-useful-log>.* >>>>> >>>>> >>>>> On Mon, Dec 23, 2024 at 4:47 AM mihec <pete...@gmail.com> wrote: >>>>> >>>>>> I set all directories' permissions to '777' and the error has gone. >>>>>> The next issue is the weewx does not log the data from the station at >>>>>> all. >>>>>> No message in the log, no WU update, no FTP update, no database write >>>>>> attempt. I'm completely lost. >>>>>> >>>>>> ponedeljek, 23. december 2024 ob 12:49:09 UTC+1 je oseba >>>>>> michael.k...@gmx.at napisala: >>>>>> >>>>>>> >>>>>>> The user which is running weewx has to have write access both to the >>>>>>> database file and the containing folder. Furthermore, no other process >>>>>>> can >>>>>>> have the database open for writing at the same time. >>>>>>> mihec schrieb am Montag, 23. Dezember 2024 um 10:43:15 UTC+1: >>>>>>> >>>>>>>> Latest status: I've upgraded to weewx 5.1 and set python3 as >>>>>>>> default. I think everything should be operational except the weewx >>>>>>>> does not >>>>>>>> have write permissions to the existing weewx.sdb. I've attached >>>>>>>> complete >>>>>>>> startup log. >>>>>>>> I really appreciate your help since the station is now not >>>>>>>> operational... Thanks! >>>>>>>> Dec 23 10:34:11 vreme-Solkan-master systemd[1]: Started WeeWX. >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Initializing weewxd version 5.1.0 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Using Python: 3.7.3 (default, Apr 3 2019, 05:39:12) #012[GCC 8.2.0] >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Located at: /usr/bin/python3 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Platform: Linux-4.19.66-v7+-armv7l-with-debian-10.0 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Locale: 'sl_SI.UTF-8' >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Entry path: /usr/share/weewx/weewxd.py >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> WEEWX_ROOT: /etc/weewx >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Config file: /etc/weewx/weewx.conf >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> User module: /etc/weewx/bin/user >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Debug: 1 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> User: weewx >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Group: weewx >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO __main__: >>>>>>>> Groups: dialout weewx >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG __main__: >>>>>>>> loop_on_init: False >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG __main__: >>>>>>>> Initializing engine >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO >>>>>>>> weewx.engine: Loading station type Vantage (weewx.drivers.vantage) >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: Driver version is 3.6.2 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: Option loop_request=1 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200; >>>>>>>> timeout 4.00 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: Successfully woke up Vantage console >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: Hardware type is 17 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: ISS ID is 1 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.drivers.vantage: Hardware name: Vantage Vue >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service weewx.engine.StdTimeSynch >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service weewx.engine.StdTimeSynch >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service user.strele.streleservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master /weewxd.py: strele: using >>>>>>>> /home/pi/weewx/html/strele2.txt >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service user.strele.streleservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service user.tempjar.tempjarservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master /weewxd.py: tempJar: using >>>>>>>> /home/pi/weewx/html/extraTemp1.txt >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service user.tempjar.tempjarservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service user.solarjar.solarjarservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master /weewxd.py: solarJar: using >>>>>>>> /home/pi/weewx/html/solar.txt >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service user.solarjar.solarjarservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service user.aqi.AQIservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master /weewxd.py: AQI: using >>>>>>>> /home/pi/weewx/html/aqi.txt >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service user.aqi.AQIservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service user.soil.Soilservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master /weewxd.py: Temperatura tal: >>>>>>>> using /home/pi/weewx/html/soiltemp.txt >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service user.soil.Soilservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service user.temp_pisarna.Pisarnaservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master /weewxd.py: Temperatura v >>>>>>>> pisarni: /home/pi/data/ITtemp.txt >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service user.temp_pisarna.Pisarnaservice >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service weewx.engine.StdConvert >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO >>>>>>>> weewx.engine: StdConvert target unit is 0x1 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service weewx.engine.StdConvert >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service weewx.engine.StdCalibrate >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service weewx.engine.StdCalibrate >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service weewx.engine.StdQC >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Finished loading service weewx.engine.StdQC >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.engine: Loading service weewx.wxservices.StdWXCalculate >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO >>>>>>>> weewx.wxservices: StdWXCalculate will use data binding wx_binding >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.manager: Daily summary version is 2.0 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO >>>>>>>> weewx.manager: Daily summaries at V2.0. Patching to V4.0 >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: INFO >>>>>>>> weewx.manager: recalculate_weights: Using database 'weewx.sdb' >>>>>>>> Dec 23 10:34:12 vreme-Solkan-master weewxd[12090]: DEBUG >>>>>>>> weewx.manager: recalculate_weights: Tranche size 100 >>>>>>>> Dec 23 10:34:15 vreme-Solkan-master weewxd[12090]: CRITICAL >>>>>>>> __main__: Database OperationalError exception: attempt to write a >>>>>>>> readonly >>>>>>>> database >>>>>>>> Dec 23 10:34:15 vreme-Solkan-master weewxd[12090]: CRITICAL >>>>>>>> __main__: **** Waiting 2 minutes then retrying... >>>>>>>> >>>>>>>> This is my database file: >>>>>>>> -rwxrwxrwx 1 weewx weewx 682086400 dec 23 08:57 weewx.sdb >>>>>>>> >>>>>>>> I also tried with pi:root or root:root but none of the options >>>>>>>> worked. >>>>>>>> >>>>>>>> ponedeljek, 23. december 2024 ob 09:34:05 UTC+1 je oseba mihec >>>>>>>> napisala: >>>>>>>> >>>>>>>>> Thanks both for your advice. I decided to do a weewx upgrade >>>>>>>>> before I read you last two posts... It has not progressed OK and now >>>>>>>>> I'm >>>>>>>>> stuck with some strange error due to modified schema in the weewx.sdb >>>>>>>>> file. >>>>>>>>> I moved to weewx 4.10. I'm trying to solve this now... >>>>>>>>> >>>>>>>>> petek, 20. december 2024 ob 20:04:39 UTC+1 je oseba Tom Keffer >>>>>>>>> napisala: >>>>>>>>> >>>>>>>>>> Ah, yes! That would explain the symptoms. I forgot that Peter had >>>>>>>>>> upgraded neowx. >>>>>>>>>> >>>>>>>>>> Peter: I think Vince is right: the modern neowx skin depends on a >>>>>>>>>> modern version of WeeWX. >>>>>>>>>> >>>>>>>>>> On Fri, Dec 20, 2024 at 10:53 AM vince <vince...@gmail.com> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Sure, but 3.9 doesn't know of the newer %Y syntax that the >>>>>>>>>>> current (new) skin that is failing uses. >>>>>>>>>>> >>>>>>>>>>> He can: >>>>>>>>>>> >>>>>>>>>>> - hack the new/current version of the skin to use the old >>>>>>>>>>> YYYY format that 3.9 knows of >>>>>>>>>>> - Or go back to running the old skin on the old weewx >>>>>>>>>>> - Or better yet get current and run v5 weewx and the new >>>>>>>>>>> skin that matches it >>>>>>>>>>> >>>>>>>>>>> But old weewx and new format template naming isn't gonna work. >>>>>>>>>>> Weewx is backward compatible, but it's not forward compatible. >>>>>>>>>>> >>>>>>>>>>> On Friday, December 20, 2024 at 10:41:01 AM UTC-8 Tom Keffer >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> You remember right, except that the old 'YYYY', 'MM', etc., >>>>>>>>>>>> names are still honored. >>>>>>>>>>>> >>>>>>>>>>>> Besides, he has not upgraded his copy of WeeWX. He's still on >>>>>>>>>>>> V3.9. >>>>>>>>>>>> >>>>>>>>>>>> On Fri, Dec 20, 2024 at 9:29 AM vince <vince...@gmail.com> >>>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> "*My suspicion is that weewx is not handling the %Y and %Y-%m >>>>>>>>>>>>> template files properly."* >>>>>>>>>>>>> >>>>>>>>>>>>> Tom - it's been literally years, but I remember some kind of >>>>>>>>>>>>> breaking change that happened along those lines way back when and >>>>>>>>>>>>> the fix >>>>>>>>>>>>> was to rename filenames on the template files in pre-existing >>>>>>>>>>>>> skins. >>>>>>>>>>>>> >>>>>>>>>>>>> FWIW - surfing the neowx github site(s), the old original >>>>>>>>>>>>> neowx skin file names in the format of "NOAA-YYYY-MM.txt.tmpl >>>>>>>>>>>>> <https://github.com/neoground/neowx/blob/master/src/NOAA/NOAA-YYYY-MM.txt.tmpl>" >>>>>>>>>>>>> and the like. The new ones uses the % syntax for year/month in >>>>>>>>>>>>> the >>>>>>>>>>>>> filename name. My very hazy recollection is that at some point >>>>>>>>>>>>> in time I >>>>>>>>>>>>> had to rename things in old skins to use the new syntax. >>>>>>>>>>>>> >>>>>>>>>>>>> My guess (guess) is that to use the new neowx skin on the old >>>>>>>>>>>>> weewx he has to rename the neowx templates the other way to use >>>>>>>>>>>>> the old >>>>>>>>>>>>> syntax for file naming. >>>>>>>>>>>>> >>>>>>>>>>>>> From the install.py file for the current neowx: >>>>>>>>>>>>> 'skins/neowx-material/archive/NOAA-%Y.txt.tmpl', >>>>>>>>>>>>> 'skins/neowx-material/archive/NOAA-%Y-%m.txt.tmpl' >>>>>>>>>>>>> >>>>>>>>>>>>> For the new skin on old ancient weewx, I'd try renaming them >>>>>>>>>>>>> to the old filename syntax ala: >>>>>>>>>>>>> 'skins/neowx-material/archive/NOAA-YYYY.txt.tmpl', >>>>>>>>>>>>> 'skins/neowx-material/archive/NOAA-YYYY-MM.txt.tmpl' >>>>>>>>>>>>> >>>>>>>>>>>>> Worst that happens is it doesn't work :-) >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> 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 visit >>>>>>>>>>>>> https://groups.google.com/d/msgid/weewx-user/998b9ae9-cf90-47c5-91c0-587f532d151dn%40googlegroups.com >>>>>>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/998b9ae9-cf90-47c5-91c0-587f532d151dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>>>> . >>>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>>> Google Groups "weewx-user" group. >>>>>>>>>>> To unsubscribe from this group and stop receiving emails from >>>>>>>>>>> it, send an email to weewx-user+...@googlegroups.com. >>>>>>>>>>> >>>>>>>>>> To view this discussion visit >>>>>>>>>>> https://groups.google.com/d/msgid/weewx-user/8dd66ca8-0222-4a2b-a1ad-32f16f03bf63n%40googlegroups.com >>>>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/8dd66ca8-0222-4a2b-a1ad-32f16f03bf63n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>>>> . >>>>>>>>>>> >>>>>>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "weewx-user" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to weewx-user+...@googlegroups.com. >>>>>> >>>>> To view this discussion visit >>>>>> https://groups.google.com/d/msgid/weewx-user/2d2a6873-7e20-44b9-80fc-60372a12e4d3n%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/weewx-user/2d2a6873-7e20-44b9-80fc-60372a12e4d3n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "weewx-user" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to weewx-user+...@googlegroups.com. >>>> >>> To view this discussion visit >>>> https://groups.google.com/d/msgid/weewx-user/b12fabdb-1fe3-4dea-9279-3dc0fb5d41f0n%40googlegroups.com >>>> <https://groups.google.com/d/msgid/weewx-user/b12fabdb-1fe3-4dea-9279-3dc0fb5d41f0n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to weewx-user+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/weewx-user/d3923af6-765e-42f0-a27f-e9fe72c28cc9n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/d3923af6-765e-42f0-a27f-e9fe72c28cc9n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDytywAFN1mxWotGzcsbOTQV9od-U9C7eTxdCtp1ZhPfQ%40mail.gmail.com.