Adding an Infographic
You add an Infographic to the list by following the steps below…
Create a new Folder in the Display List directory
In your infographics directory, you can create a folder for every infographic you have. Note that while it's not required, we suggest avoiding spaces in your folder names.
For instance, if you wanted to create a “Current Temperatures” report, you would make a folder called current_temperatures.
Create an Empty Script File
Now, create a Javascript source file inside the folder you just created.
This should be called generate.js.
Copy/Create an Info.txt file for the report
The Info.txt file gives the system some details about the report - most importantly, it's human-readable name.
Info files have four lines….
Line | Example | Meaning |
---|---|---|
Name | Daily Temperature | The name for the Infographic shown in the web interface |
Minutes | 30 | The amount of time shown when you first open the Infographic |
Start Date | 2020-01-01 06:00:00 | This line is only used by reports rather than Infographics |
Timezone | Australia/Sydney | The displayed time zone |
Folder | Blank | A folders that the Infographic should appear in |
Create the Script
Finally, you'll need to write the script.