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

empty stats for GFZ #23

Closed
KlausStammler opened this issue Jan 27, 2023 · 1 comment
Closed

empty stats for GFZ #23

KlausStammler opened this issue Jan 27, 2023 · 1 comment

Comments

@KlausStammler
Copy link

Thanks for publishing this interface. When retrieving yearly network statistics for each node I get results for all nodes except GFZ:

https://ws.resif.fr/eidaws/statistics/1/dataselect/query?start=2022-01&end=2022-12&datacenter=GFZ&aggregate_on=month,station,country&format=json

returns an empty result. The same happens with unknown data center names. Better would be to return an error if the data center name is invalid.

I also tried "../submit/.." instead of "../dataselect/..". This doesn't work at all.

@vpet98
Copy link
Contributor

vpet98 commented Jan 28, 2023

Hello,

Thank you for the feedback. The GFZ datacenter exists in the database under the name GEOFON, so that is the one you need to use in your query. Returning an error if datacenter name is invalid seems a good idea, it can be implemented in the next update.

The ".../submit" method only accepts POST or PUT requests with a JSON file as parameter and is only for ingesting statistics into the database.

@vpet98 vpet98 closed this as completed Feb 4, 2023
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