Skip to content

[LDI] Synthesize "is_active" indicator #26

Open

Description

Within 0c3ec97 and with a minor fixup through fb1301a, we added a feature to synthesize a field called is_active within PostGIS based on the sensor_last_date field coming from the SOS service where we are ingesting sensor data of the IRCELINE sensor network from.

The gist is

ABS(DATE_PART('day', sensor_last_date - now())) <= 7 AS is_active

@d-roet asked for a likewise feature on the LDI network in order to mitigate issues coming from downstream processing of this data, see also [1].

[1] https://source.irceline.be/vaquums/grafana_luftdatenpumpe/issues/27

cc @wetterfrosch

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions