Skip to content

tago-io/analysis-example-avgMinMax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this does

Get Average, Minimum and Maximum value from a variable

How to run the script on TagoIO

Do your own modifications if you want.
Upload to TagoIO analysis, in the admin website.
Add the environment variable device_token with the device token of your choice.

How to run the script from my computer

Make sure you have npm and node installed in your machine.
Add the environment variable device_token with the device token of your choice, to the analysis configuration, in the admin website.
Open the analysis.js, change MY-ANALYSIS-TOKEN-HERE line for your analysis token.
Open the terminal and run:

npm install
node analysis.js