winds-mobi / winds-mobi-providers

Real-time weather observations: weather data providers
https://winds.mobi
GNU Affero General Public License v3.0
8 stars 11 forks source link

In rare cases, jdc and winds.mobi display different values #1

Closed ysavary closed 2 years ago

ysavary commented 4 years ago

In this example, for the "Chalais" stations:

jdc:

{
"unix-time": 1565160000,
"wind-direction": 212,
"wind-average": 0.1,
"wind-maximum": 5.9,
"temperature": 17.5,
"humidity": 90
}

winds.mobi:

{
"_id": 1565160000,
"w-dir": 212,
"w-avg": 0.1,
"w-max": 29.4,
"temp": 17.5,
"hum": 90
}

An issue with this code? https://github.com/winds-mobi/winds-mobi-providers/blob/ae4225c65dbe408f5b977cb9e858442069b49fa0/jdc/m2a.class.php#L687

@gemotech do you have an idea?

gemotech commented 4 years ago

No, it's just a case where maximum wind speed is too high compared to average wind speed ! It happens sometimes when there isn't quite any wind.

So, I just found a solution to compute a new maximum value. I don't have the calculation anymore, but it is on the website. I could search for it.

Best regards, Gerald

Le mer. 7 août 2019 à 12:42, Yann Savary notifications@github.com a écrit :

In this example, for the "Chalais" stations:

jdc:

{ "unix-time": 1565160000, "wind-direction": 212, "wind-average": 0.1, "wind-maximum": 5.9, "temperature": 17.5, "humidity": 90 }

winds.mobi:

{ "_id": 1565160000, "w-dir": 212, "w-avg": 0.1, "w-max": 29.4, "temp": 17.5, "hum": 90 }

An issue with this code?

https://github.com/winds-mobi/winds-mobi-providers/blob/ae4225c65dbe408f5b977cb9e858442069b49fa0/jdc/m2a.class.php#L687

@gemotech https://github.com/gemotech do you have an idea?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/winds-mobi/winds-mobi-providers/issues/1?email_source=notifications&email_token=AMB5FCBLKOIGCWW7S6BMZ5DQDKRH3A5CNFSM4IJ662FKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HD3M3HA, or mute the thread https://github.com/notifications/unsubscribe-auth/AMB5FCEJZZE4ZWJCDPSPWH3QDKRH3ANCNFSM4IJ662FA .

ysavary commented 4 years ago

Hi @gemotech,

I would be nice if you can help me on this issue. A user complained today about this peak:

Screen Shot 2019-08-26 at 19 17 21

which is not existing on jdc website:

Screen Shot 2019-08-26 at 19 17 05

Thank you, Yann