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

Sensor.community import group sensor_id by location #55

Open
n11ik opened this issue Dec 5, 2024 · 0 comments
Open

Sensor.community import group sensor_id by location #55

n11ik opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working enhancement For improvements to existing features. P1 Highest priority, needs immediate attention. sensor.community
Milestone

Comments

@n11ik
Copy link
Contributor

n11ik commented Dec 5, 2024

Assume: Sensor community stations are uniquely determined by (lat, lon).
Sensor.community: Sensor is uniquely determined by sensor_id.
Luftdaten.at: Sensor cannot be uniquely determined.

To be able to uniquely determine the imported sensor we could create a table: (station_id, measurement_id, sensor.community.sensor_id)
Evaluate if we should create this table.

Import measurement:

  1. Check if station exists (lat, lon)
    1.1 NO create station
  2. ADD measurement to station
  3. ADD entry in table (station_id, measurement_id, sensor.community.sensor_id)
@n11ik n11ik added bug Something isn't working enhancement For improvements to existing features. P1 Highest priority, needs immediate attention. sensor.community labels Dec 5, 2024
@n11ik n11ik added this to the v0.3.2 milestone Dec 5, 2024
@n11ik n11ik closed this as completed Jan 21, 2025
@n11ik n11ik reopened this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement For improvements to existing features. P1 Highest priority, needs immediate attention. sensor.community
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant