Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 769 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 769 Bytes

What this does

Get the last record from variable "water_level", prints it to the console, multiple the value by 2 and insert in a new variable called water_level_double.

How to use 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 analysis from your machine

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.
Opens the terminal and run:

npm install
node .