PWS - Occasional API Error
-
@Neil-Ratan Hi, can you share the API key, that you send there, to my DMs, so we can check that on our end for you?
-
@Suty Done
-
I have not got any error for this
I am posting data to this: http://stations.windy.com/pws/update/apiKey?time=2025-01-20T02:55:51&temp=17.96&humidity=68.80&mbar=1016.54 2025-01-20 02:55:51,194: {"update":{"update":{"stations":[],"observations":[{"si":0,"time":"2025-01-20T02:55:51.000Z","temp":17.96,"rh":68.8,"pressure":101654}]},"errors":{"observations":[],"stations":[]}},"result":{"0":{"stations":[],"observations":[{"success":true,"value":{"si":0,"time":"2025-01-20T02:55:51.000Z","temp":17.96,"rh":68.8,"pressure":101654}}]}}}
But for this I am getting this error, why?
I am posting data to this: http://stations.windy.com/pws/update/apiKey?time=2025-01-20T03:05:50&temp=18.23&humidity=68.57&mbar=1016.64 2025-01-20 03:05:49,792: {"observations":[{"index":1,"errors":[{"value":"2025-01-20T03:05:50","property":"time","children":[],"constraints":{"isTimestampInLastNMinutes":"time must be in last 60 minutes"}}]}],"stations":[]}
This has suddenly started, and it is happening frequently, I have no idea why, if anyone can tell me then I'll be grateful.
Interestingly, the previous error is not there anymore. The one mentioned above in other replies.
-
@Neil-Ratan @Suty I hope you are doing well and not busy. Please have a look at this. You haven't replied to the previous error either. But thankfully, the last error stopped and this one started.
I have provided with two log records, 10 minutes apart. I have no idea why it is giving this error. But I copied the link that I sent to windy which led to this error and pasted it on the browser, and windy accepted it. -
@Neil-Ratan Could you please send these requests that fail, for example, 5 times with the pause between them for 500ms? If that helps, there is probably a bug on our end, however, if this won't help, please share the whole URL address that you sent.
-
@Suty I didn't quite understand you. Can you please elaborate on why I have to do this and how this will help? As I know, your server will send a reply that there should be min. of 5-minute interval if I send the same request 5 times with a 500ms gap.
Just don't mind, I am confused here. -
@Suty And about the url, I have sent it to you via chat option in detail.
-
@Neil-Ratan No worries, this was process that wanted my colleagues from you. I will discuss it once more with him on Monday, when he is back.
-
@Neil-Ratan To be sure, you still have this issue, right? If you do, please check the time you send there, it seems that both requests are a bit forward (300ms) that is probably the reason why you get these errors.
-
@Suty said in PWS - Occasional API Error:
@Neil-Ratan To be sure, you still have this issue, right? If you do, please check the time you send there, it seems that both requests are a bit forward (300ms) that is probably the reason why you get these errors.
I was guessing it and you pointing it out made me think about it. Yes, it was this time difference issue. The internal RTC of my weather station was slowly moving ahead and over the month it jumped around certain milliseconds ahead.
I pushed a software update into it to update the RTC time every 10 days and now it seems to be working fine. I haven't got any errors since then.I was thinking of time lagging but it never crossed my mind that it may also get ahead.