Page 1 of 1

Adding Extra Sensor Data to Main Website

Posted: Sun 14 Nov 2021 2:59 am
by dale
The Wiki seems to be a bit out of date regarding templates and how they work. From looking at the web page sources it appears that only two templates actually exist now: websitedataT.json and realtimegaugesT.txt. it then appears that the main index.htm page (and others) use data-cmxdata fields to extract the current info from websitedata.json.

Is this correct? Is this documented somewhere that I've missed?

Does this mean that if I wish to display some extra sensors, I should modify websitedataT.json in the CMX installation as well as the file (e.g. index.htm) on the website, to get data like <#ExtraTemp1> displayed? Is there a better (or different, preferred) way to do this?