IoT Lab 7
- PMARINA
- Nov 26, 2020
- 1 min read
This lab is mainly about logging data, generally with IoT devices.
Part 1/2: ThingSpeak:
Suggestions:
Participants must use the "Write API" and not the "Read API" key.
To prevent students accidentally pushing up their API keys, which could result in their usage limits being hit and/or their accounts being terminated, it would be better to save the API key out to a file and reference that file when possible.
I have made a pull request to that effect, with the first point being addressed in the README.md, and the second in thingspeak_cpu_loop.py.
With everything working, the following was seen in the ThingSpeak Dashboard.

Part 2/2: Google Sheets

Changes:
Add *.json to the .gitignore to prevent credentials from being accidentally uploaded.
The temperature and cpu logging code are not working in Python. I unfortunately did not have time to debug this issue; however, I ensured that the various packages were installed correctly and that the correct version of Python was being used.
1 was pushed and I plan to work on 2 into the future.
Overall this was a fun lab and I was very excited to see how easily we can integrate with Google Drive and I will definitely be taking advantage of this for Google's convenient API and lack of API restrictions. I am also submitting my pull request to the class repo as I publish this post.
Comments