Skip to content

pywws.livelog crashed with math domain error. Impossible to relaunch. #113

@pablus

Description

@pablus

livelog crashed with this error:

File "/usr/local/lib/python3.9/dist-packages/pywws/conversions.py",
line 199, in dew_point
gamma = ((a * temp) / (b + temp)) + math.log(float(hum) / 100)
ValueError: math domain error

When this happened, every time we tried to relaunch the program it failed with the same error message. Somehow, it seems that hum took a value of zero, hence the math domain error of the logarithm.

To work around the problem we have locally changed line 195 of conversion.py to:

if temp is None or hum is None or hum == 0:

Weather station model is PCE-FWS 20N. pywws-version is 23.2.0. It is running on a Raspberry Pi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions