-
Notifications
You must be signed in to change notification settings - Fork 97
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
Hi, #113
Comments
@MarcEngrie - Please check if your computer's system date-time is set to an accurate date-time. |
@MarcEngrie There may be a small amount of drift between your server time and our server time. We allow no drift on I'm going to create a patch for this issue, but you may want to try changing the data.py example from |
Indeed, that is working. Nut also this is working |
Just to help you out finding the right solution, I did the following |
Unable to replicate, closing. |
Hi,
i just downloaded/installed Adafruit_IO Python (3.7.5 on Win 10) library to give it a first try on Adafruit IO platform.
used the example 'data.py', added user and key and ran it. I came across the date issue
Traceback (most recent call last):
File "data.py", line 39, in
aio.send_batch_data(temperature.key, data_list)
File "C:\Python\lib\site-packages\Adafruit_IO\client.py", line 168, in send_batch_data
self._post(path, {"data": data_dict})
File "C:\Python\lib\site-packages\Adafruit_IO\client.py", line 127, in _post
self._handle_error(response)
File "C:\Python\lib\site-packages\Adafruit_IO\client.py", line 108, in _handle_error
raise RequestError(response)
Adafruit_IO.errors.RequestError: Adafruit IO request failed: 422 Unprocessable Entity - request failed - Record invalid. Failed to save data to mengrie/feeds/temperature. data created_at may not be in the future
So it say, date is in the future. Given the fact that I live in EU (Belgium) and platform is most likely in US, I can understand this date issue but what should be used to overcome this? UTC time?
Or is there another way around?
BTW: in the random_data.py there user and key from Brent are still there. :-(
The text was updated successfully, but these errors were encountered: