Environmental Monitoring with the Tessel 2
Once all of this is saved in the right files and in the right directories, type—or copy and paste—the following into your terminal:
t2 run index.js
Once it's running, open your browser to https://data.sparkfun.com/streams/[Phant Public Key] and refresh it the browser as often as you'd like to see the data appear in your public stream. The stream that I created for this project is available here: https://data.sparkfun.com/streams/wp063JWw94CmL10wYw1W , which I exported to Analog.io and captured a portion that shows my own air conditioner going inactive, followed by a the temperature in the apartment rising until the air conditioner becomes active again.
When you're ready to deploy it full time, push the project into the Tessel 2's flash memory by using the command:
t2 push index.js