Giter VIP home page Giter VIP logo

Comments (11)

jschaeff avatar jschaeff commented on August 27, 2024

If you aggregate on networks, you will have the result for all the networks.
If you want to see the statistics for each network, you need to remove the network from the "aggregate_on" parameter, which would give:

https://ws.resif.fr/eidaws/statistics/1//dataselect/query?start=2022-01&end=2022-12&datacenter=NOA&network=HP&aggregate_on=location,channel,month,datacenter,station,country&format=csv

What would you like a format text to look like ?

from eida-statistics.

xrise75 avatar xrise75 commented on August 27, 2024

Ok my fault about the network agregation

format issue:
csv is fine for me as a simple choice BUT in the builder, when I choose format Text/csv then the url has ...&format-=text instead of csv and does not work

from eida-statistics.

jschaeff avatar jschaeff commented on August 27, 2024

OK, nice catch, this is a bug. @vpet98 will fix it.

from eida-statistics.

vpet98 avatar vpet98 commented on August 27, 2024

Thank you for the note,

Bug is fixed on main branch. Needs to be deployed again I suppose.

from eida-statistics.

jschaeff avatar jschaeff commented on August 27, 2024

@vpet98
if the value of format is not supported, the webservice should reply a better error message.
For now, it says if format=text:

http "http://ws-staging.resif.fr/eidaws/statistics/1/dataselect/query?start=2022-01&end=2022-02&aggregate_on=month,datacenter,country,network,station,location,channel&format=text"
HTTP/1.1 400 BAD REQUEST
content-length: 48
content-type: text/plain
date: Tue, 24 Jan 2023 14:50:43 GMT

BAD REQUEST: invalid value of parameter 'format'

could you fix it ?

from eida-statistics.

vpet98 avatar vpet98 commented on August 27, 2024

Yes, I can, but what we would like to reply in this case? Maybe print the wrong value as well?

from eida-statistics.

jschaeff avatar jschaeff commented on August 27, 2024

something like "Unsupported value for parameter format." would do, I guess ?

from eida-statistics.

vpet98 avatar vpet98 commented on August 27, 2024

Done!

from eida-statistics.

xrise75 avatar xrise75 commented on August 27, 2024

Not fixed yet!
still when in query form I click format text/csv then the url given has "&format=text" instead of "&format=csv"

from eida-statistics.

vpet98 avatar vpet98 commented on August 27, 2024

The code is fixed. New version is not deployed yet. I suppose it will be deployed soon together with some other fixes which are in progress.

from eida-statistics.

jschaeff avatar jschaeff commented on August 27, 2024

Fix deployed.
Thank you @vpet98

from eida-statistics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.