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] Reconsider using the data.sensor.community endpoint #16

Open
amotl opened this issue Dec 5, 2019 · 5 comments
Open

[LDI] Reconsider using the data.sensor.community endpoint #16

amotl opened this issue Dec 5, 2019 · 5 comments

Comments

@amotl
Copy link
Member

amotl commented Dec 5, 2019

We just have been pointed towards an endpoint where data from luftdaten.info is published which we haven't known about yet, e.g. https://data.sensor.community/airrohr/v1/filter/country=BE.

We might consider updating Luftdatenpumpe to use that.

@amotl amotl changed the title Reconsider another data source for data from luftdaten.info [LDI] Reconsider another data source for data from luftdaten.info Dec 5, 2019
@amotl
Copy link
Member Author

amotl commented Dec 9, 2019

Re-reading https://github.com/opendata-stuttgart/meta/wiki/APIs#accessing-the-api-data says:

There are two domains where the same data is served.

When comparing LDI API v1 vs. LDI API v2 we see that

So, we may still think about that before switching from v1 to v2, right?

In any case, we might want to switch from api.luftdaten.info to data.sensor.community if this is the designated endpoint for serving data, i.e. it should be used for reporting cases.

cc @wetterfrosch

@amotl
Copy link
Member Author

amotl commented Dec 9, 2019

Also, the filtering endpoint /airrohr/v1/filter listed above might be interesting for different performance improvements, especially when only interested in a subset of data without having to ingest all data.

@amotl amotl changed the title [LDI] Reconsider another data source for data from luftdaten.info [LDI] Reconsider using the data.sensor.community endpoint Dec 9, 2019
@d-roet
Copy link

d-roet commented Dec 11, 2019

perhaps it is not necessary to choose one or the other but to leave the choice to the user by specifying a flag (--LDAPI [v1|v2]) so (s)he can choose between either API?

@amotl
Copy link
Member Author

amotl commented Dec 16, 2019

While api.luftdaten.info is not available today (timeout), data.sensor.community still responds with a valid payload. However, measurements are stale.

image

cc @wetterfrosch

@amotl
Copy link
Member Author

amotl commented Jan 8, 2020

The documentation makes it more clear now:

There are two domains where the same data is served.

  • https://api.luftdaten.info
    This is optimized for receiving data. DON'T use this to request data.
  • https://data.sensor.community
    This is faster and more reliable for serving data, so should be used for reporting cases. Where it is not supported for a certain endpoint, the previous domain must be used.

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

2 participants