Generate a pdf file to send via email.
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.
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