top of page
Search

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:

  1. Participants must use the "Write API" and not the "Read API" key.

  2. 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.


ree

Part 2/2: Google Sheets


ree

Changes:

  1. Add *.json to the .gitignore to prevent credentials from being accidentally uploaded.

  2. 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.

 
 
 

Recent Posts

See All
IoT Lab 10

Hashing is a topic that's relevant for many areas of computer science Hash Tables: By hashing values and storing them in a table, we can...

 
 
 

Comments


I pledge my honor that I have abided by the Stevens Honor System

bottom of page