Mario-35 / STEAN

SensorThings Enhanced Api Node
MIT License
2 stars 1 forks source link

resultFormat graph displays bad value #3

Open hsquividant opened 7 months ago

hsquividant commented 7 months ago

Example : in https://sensorthings.geosas.fr/monitoringquimper/v1.0/ STA service, in Temperature DataStreams, when phenomenonTime is "2023-11-21T23:55:55.681747+01:00", result is 19,1. cf https://sensorthings.geosas.fr/monitoringquimper/v1.0/Observations(7407) . After zooming in graph display here https://sensorthings.geosas.fr/monitoringquimper/v1.0/Datastreams(2)/Observations?$resultFormat=graph for the same phenomenonTime, result is 20.03. Any idea ?

Mario-35 commented 7 months ago

if I do : https://sensorthings.geosas.fr/monitoringquimper/v1.0/Datastreams(2)/Observations?$resultFormat=graph&$debug=true

and execute the generated query :

image

the result is good SO I think it's dygraphs wich change the value I investigate in the code

Mario-35 commented 7 months ago

I know why : it's the average of the day that is calculate by dygraphs.

But I don't know why dygraph still show an hour when the mouse moving over the point I go to change that and precise that it's average.

hsquividant commented 7 months ago

In our case, we don't want to display an average, but simply the result of the observation, hour by hour. Is it possible?