Does a commit mean if I download it again the fix is in there or do I wait until the version number increases?
On Thursday 14 December 2023 at 11:32:12 UTC+11 Tom Keffer wrote: > Changed in commit 4b969ce > <https://github.com/weewx/weewx/commit/4b969cedd35471972305879d659ac0ae95a42c31> > . > > For TypeError involving None, the error gets logged if debug>1, then the > program presses on. Any other kind of error results in program termination. > > This applies *only* to expressions used in StdCalibrate. > > -tk > > On Wed, Dec 13, 2023 at 3:46 PM Tom Keffer <[email protected]> wrote: > >> The error was always there, it's just that previous versions swallowed >> it. >> >> We should probably continue to ignore 'None' type errors. It's difficult >> for a newbie to write an expression that can handle them. >> >> On Wed, Dec 13, 2023 at 3:23 PM Greg <[email protected]> wrote: >> >>> I upgraded from 5.0.0.b16 to 17 and got this error: >>> >>> Dec 14 10:15:55 moonbi weewxd[491310]: ERROR weewx.engine: >>> StdCalibration loop error unsupported operand type(s) for /: 'NoneType' and >>> 'int' >>> >>> Dec 14 10:15:21 moonbi weewxd.py: restx: MQTT: binding to loop >>> Dec 14 10:15:21 moonbi weewxd.py: restx: MQTT: topic is >>> jedwood/raw/weather >>> Dec 14 10:15:21 moonbi weewxd.py: restx: MQTT: desired unit system is >>> METRIC >>> Dec 14 10:15:21 moonbi weewxd.py: restx: MQTT: data will be uploaded to >>> mqtt://192.168.1.164:1883/ >>> Dec 14 10:15:21 moonbi weewxd[491310]: INFO weewx.engine: 'pyephem' >>> detected, extended almanac data is available >>> Dec 14 10:15:21 moonbi weewxd[491310]: INFO __main__: Starting up weewx >>> version 5.0.0b17 >>> Dec 14 10:15:21 moonbi weewxd[491310]: INFO weewx.engine: Using binding >>> 'wx_binding' to database 'weewx' >>> Dec 14 10:15:21 moonbi weewxd[491310]: INFO weewx.manager: Starting >>> backfill of daily summaries >>> Dec 14 10:15:21 moonbi weewxd[491310]: INFO weewx.manager: Daily >>> summaries up to date >>> Dec 14 10:15:22 moonbi weewxd[491310]: INFO weewx.drivers.fousb: >>> synchronising to the weather station (quality=0) >>> >>> >>> Dec 14 10:15:52 moonbi weewxd[491310]: INFO weewx.engine: Starting main >>> packet loop. >>> Dec 14 10:15:55 moonbi weewxd[491310]: INFO weewx.drivers.fousb: station >>> status {'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0) >>> Dec 14 10:15:55 moonbi weewxd[491310]: ERROR weewx.engine: >>> StdCalibration loop error unsupported operand type(s) for /: 'NoneType' and >>> 'int' >>> Dec 14 10:15:55 moonbi weewxd[491310]: INFO weewx.restx: MQTT: Published >>> record 2023-12-14 10:15:56 AEDT (1702509356) >>> ^[^[Dec 14 10:16:56 moonbi weewxd[491310]: ERROR weewx.engine: >>> StdCalibration loop error unsupported operand type(s) for /: 'NoneType' and >>> 'int' >>> Dec 14 10:16:56 moonbi weewxd[491310]: INFO weewx.restx: MQTT: Published >>> record 2023-12-14 10:16:56 AEDT (1702509416) >>> >>> I downgraded back to 16 and I didn't get that error. >>> >>> Python 3.11.2 >>> >>> On Thursday 14 December 2023 at 07:39:29 UTC+11 Tom Keffer wrote: >>> >>>> Commit da31d16 >>>> <https://github.com/weewx/weewx/commit/da31d1644314fe19e64be6f4a9d10ced27b85a95> >>>> . >>>> >>>> >>>> On Wed, Dec 13, 2023 at 5:22 AM Paul R Anderson <[email protected]> >>>> wrote: >>>> >>>>> That sounds great! >>>>> Paul >>>>> >>>>> On Wed, Dec 13, 2023 at 7:58 AM Tom Keffer <[email protected]> wrote: >>>>> >>>>>> On Wed, Dec 13, 2023 at 4:47 AM Paul R Anderson <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> That would be better than just deleting it. Wondering if the new >>>>>>> 'scripts' subdirectory could be located at ~/weewx-data/util/scripts ? >>>>>>> >>>>>> >>>>>> That's something I thought of, but then it gets buried amongst some >>>>>> unrelated subdirectories, making them harder to find. >>>>>> >>>>>> How about this: just upgrade the scripts within the subdirectory >>>>>> 'scripts'? Then they can peacefully coexist with your scripts. >>>>>> >>>>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "weewx-development" 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-development/fbbcd4d1-ca19-40fe-9b39-aa418bc0e2c2n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-development/fbbcd4d1-ca19-40fe-9b39-aa418bc0e2c2n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/26ced7a1-b087-42eb-b31f-4b8cca3d5edcn%40googlegroups.com.
