I've been working on a school project all semester that uses Adafruit's IO. This morning, when I went to take a screenshot of my project's graphs (I'm creating my own with matplotlib), I noticed that it was only showing the 100 most recent data points. After hours of frustration, I discovered that yesterday Adafruit changed the default limit of records you can get from 1000 to 100:
viewtopic.php?f=56&t=190636
I thought this would be a simple change of my code from:
to:
Code: Select all
data = aio.data('test', max_results=None)
However, I keep getting the error message: TypeError: data() got an unexpected keyword argument 'max_results' Did this keyword also change with the update? The documentation I'm using (
https://adafruit-io-python-client.readt ... /data.html) doesn't seem to have been updated as it still says the default limit is 1000. Is there any other way to easily retrieve all of my data with similar code?
It's not the end of the world; I have old screen shots I can include in my presentation and I'm sure my teacher will understand. It's just really frustrating.
Thank you!