Website Generator: Difference between revisions

m
 
(6 intermediate revisions by the same user not shown)
 
#CUserAbout.txt => The menu choice About=>This Site uses the contents of a file named CUserAbout.txt to be displayed in a popup window. As you can imagine, the user has to create this file himself. The contents of this file must be text with HTML tags for formatting.
#CUsermenu.txt => The user menu can be added to the standard menu using the file CUsermenu.txt which is explained [[User_Defined_Menu|elsewhere in this wiki]].
 
== Inifile parameters ==
 
[Website]
// The statistics parameters are currently either for Google or MatamoMatomo
// If the corresponding ID's and or Url are not filled in, invalid code is generated. If you do not want
// statistics than set ''StatisticsType'' without value
GoogleStatsId=
StatisticsType= [Google || MatamoMatomo] default is empty
GoogleStatsId=
MatamoTrackerUrl=
MatamoSiteId=
PermitGoogleOptout=false (default)
 
GoogleStatsId= => When not empty, a google stats code fragment will be generated with this code as the user Id, default is empty
MatomoTrackerUrl=
PermitGoogleOptout=true | false => Permits to generate code so the users own access to the site will not be measured, default=false
MatomoSiteId=
PermitGoogleOptout=true | false (default) => Permits to generate code so the users own access to the site will not be measured, default=false
 
CumulusRealTimeLocation= => see below, default is empty
ShowInsideMeasurements=true | false => when true, inside temperature and humidity will be shown on the website (when available in the datafile), default=false
CumulusRealTimeInterval=30 => The refresh cycle time of the runtime system to update the values on the dashboard and gauges, default=15
ShowUV=true => Show the UV values (if there is a sensor), default=true
UseCMXMoonImage=false => When true the CMX generated moon image is used i.s.o. the CUtils native abstracted image
MoonImageLocation= => The full URL for the moon image, used when ''UseCMXMoonImage=true'', ignored otherwise
PwsfwiButtonInHeader=true => When true the direct access pwsFWI button will show in the header, when false it shows in the menu bar
 
All parameters starting with '''''Panel''''' affect what you actually see in that panel See [[Dashboard]] for more information.<br>
 
then, when CumulusMX sends the realtime and datafiles to the webroot, you can set the ''CumulusRealTimeLocation'' to '''..\''' and it will automatically find the realtime and datafiles it needs.
 
=== CuserHead.def ===
If that file (user created) exists in the utils directory, its contents replaces three HTML Meta tags in the generated HTML code. This should facilitate any HTML header tags e.g. <META ...> to be positioned in the HTML header as the user wishes. No checks are made on the contents of the ''CutilsHead.def'' file and its effect on the resulting ''index.html'', it is fully the users responsibility. No support on the contents and its effects will be given. The HTML tags replaced are:
#<meta name="description" content="CumulusMX Website, part of CumulusUtils" />
#<meta name="keywords" content="CumulusMX, weather, data, private weather station, CumulusUtils" />
#<meta name="robots" content="index, noarchive, follow, noimageindex, noimageclick" />
 
=== Javascript libraries ===