Skip to content

tago-io/analysis-example-generatepdf-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this does

Generate a pdf file to send via email.

How to run the script on TagoIO

Do your own modifications and add variable data from a device in your report.
Upload to TagoIO analysis, in the admin website.
Add the environment variable email with an email. Add the environment variable device_token with the device token of the device you would like to include in your report and the variable to be on line 21.

How to run the script from my computer

Make sure you have npm and node installed in your machine.
Add the environment variable email with a email.
Add the environment variable device_token with the device token of the device you would like to include in your report and the variable to be added where designated in the script. Open the analysis.js, change MY-ANALYSIS-TOKEN-HERE line for your analysis token.
Open the terminal and run:

npm install
node analysis.js