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….

LineExampleMeaning
NameDaily TemperatureThe name for the Infographic shown in the web interface
Minutes30The amount of time shown when you first open the Infographic
Start Date2020-01-01 06:00:00This line is only used by reports rather than Infographics
TimezoneAustralia/SydneyThe displayed time zone
FolderBlankA folders that the Infographic should appear in

Create the Script

Finally, you'll need to write the script.