Skip to content

No 'rain' processing should occur if old status is 'lost connection' #114

Description

@diceit-git

After reconnecting the raw data look like:

2023-11-25 12:56:20,30,61,9.5,83,1,942.5,0.7,1.4,14,243.6,0,7943.2,0
2023-11-25 13:00:20,4,61,9.2,,,942.7,,,,0,64,,
...
2023-11-25 14:56:33,30,64,8.8,,,942.2,,,,0,64,,
2023-11-25 15:26:28,30,64,8.8,86,1.1,942.3,0.7,1.4,4,243.6,0,,
2023-11-25 15:56:02,30,65,9,87,1,942.3,0.3,0.7,8,243.6,0,,

process.py calculates the rain delta without recognizing that the WSStatus of previous value is "not connected", so you get a peek in rain values of, in this case, 243.6mm, which is incorrect.

The WSStatus should be recognized and rain value only be calculated if both readings are valid

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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