Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LDI] Synthesize "is_active" indicator #26

Open
amotl opened this issue Feb 13, 2020 · 0 comments
Open

[LDI] Synthesize "is_active" indicator #26

amotl opened this issue Feb 13, 2020 · 0 comments

Comments

@amotl
Copy link
Member

amotl commented Feb 13, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant