Closed pjrobertson closed 2 years ago
This commit also fixes the issue highlighted in #88
Unit tests added and all confirmed running.
Thanks
Really good quality Python, some clever stuff here. Thanks for the contribution! I approved status checks to run.
Really good quality Python, some clever stuff here. Thanks for the contribution! I approved status checks to run.
Thanks!
Status checks are failing, please review them. Looks like most of them will be resolved by autopep8. Please note these checks count against my Actions minutes, so please don't create too many runs.
Noted, will work on fixing them, and will do so locally so as not to affect Action minutes. (Sidenote: open source projects have unlimited Action minutes :-) See here
Had no idea, that's great to know. Sorry for my confusion!
This last CI fail is pretty silly, I am going to change the pylint settings before I merge this.
Sounds good. Let me know if there's anything more you need from me :)
Can you please rebase your fork from develop
? The issue should be resolved now. Hopefully there are no other issues; I plan to release this as 1.3.0
.
Done. Looking forward to seeing 1.3.0 released :)
Bandit doesn't like the use of urllib.request()
here. I disagree with bandit's assessment as to why it is a problem (this library control the url), but I do think it needs to be removed because urllib.request()
does not cache requests. There are two examples in this repo where we use requests
and requests-cache
you can follow:
Alright, I've switched to CachedSession. Hopefully that's it! :)
Sometimes you may want to pass additional arguments to the thingspeak API, e.g.
timesacale=daily
(get just one result per day oraverage=60
(get average hourly results) etc.This commit makes it possible to pass an additional dict of query args as per the Thingspeak API docs: https://ww2.mathworks.cn/help/thingspeak/readdata.html