|
= Introduction =
{|align=right
CumulusUtils has a help system for the Charts (through the ChartsCompiler) and for the Climate Charts (Graphs menu choice).
|__TOC__
|}
For the website viewer there is no difference: the small word ''info'' appears left of the hamburger menu in the chart and when clicked there is some Help info available through a popup modal window. If it is not available, the word Info won't appear.
== Introduction ==
[[File:Website example.jpg|thumb|right|Website Example Wolfshagen]]
While CumulusUtils started as a collection of modules to be used at will in the creation of a weather website - for the site of the author - after several modules it became clear that generation of a complete website would not be too difficult. It required a HTML framework within which the modules would fit, a menu, a runtime system to handle the realtime data, loading of files, clocks, sun and moon and an adaptation of mcrossley's gauges.
For the owner of the Website is the task to write some information which makes the charts more clear for the viewer.
The work set out on a scratch board where the site was drafted and the runtime was coded. The choice was made to split the screen in two in a 5/7 ratio which never changed since. The right pane became the ''ReportView'' where the user chooses the report he wishes to see while the realtime data are always visible in the left pane, the [[Dashboard]]. The contents of the Dashboard can be toggled between two sets of twelve panes (see the [[Dashboard]] page). The lunar disc can be replaced by the lunar image produced by CMX (see [[Dashboard#The_Lunar_Disc|DashBoard]]).
= Operation =
In the example on the image on the right you see Holgers' fully translated site with expanded user menu and even multilingual by his own design to show off the things possible with the CumulusUtils framework.
Technically there are currently two systems:
# The charts generated through the [[ChartsCompiler]] have the [[Charts_Definition_Language_(CDL)#Info_specifier|keyword Info in CDL]]
# The charts in the menu ''Graphs'' assemble the Info text from the ''file CUhelptexts.txt'' where the website owner has his help texts.
The ''CutilsCharts.def'' for the ChartsCompiler is described [[ChartsCompiler|on the ChartsCompiler page]].
== Operation ==
The website generation includes in principle all modules. It is created with the following command:
The ''CUhelptexts.txt'' file resides in the utils directory an will be created when it does not exist: run CumulusUtils once without an argument. A default CUhelptexts-default-for-use.txt exists in the distribution you can use that file by renaming it to ''CUhelptexts.txt'' or by using those texts in your own ''CUhelptexts.txt''. This is relevant if you use translations
utils/bin/cumulusutils.exe Website
It has the following default content:
== Output ==
The output of the website generation is the output of all individual modules and in addition:
HT_DailyRain = " "
#index.html => is the Bootstrap formatted start page of the site
HT_MonthlyRain = " "
#cumulusutils.js => is the javascript runtime system
HT_YearlyRainStats = " "
#cumuluscharts.txt => contains the charts for the Home page and is originally based on the CumulusMX recent charts. This file is produced by the ChartsCompiler but if the compiler is not used, the original charts as present in the old standard CumulusMX website will be presented.
HT_YearlyMonthlyRainStats = " "
#HighchartsLanguage.js => contains the language definitions for the charts. Not many possibilities are used but that may change. It is generated each run.
HT_MonthlyTemp = " "
HT_YearlyTempStats = " "
HT_YearlyMonthlyTempStats = " "
HT_WarmerDays = " "
HT_HeatMap = " "
HT_WindRose = " "
HT_WindRun = " "
HT_YearlySolarHRSstats = " "
HT_YearlyMonthlySolarHRSstats = " "
HT_YearlyInsolationStats = " "
HT_YearlyMonthlyInsolationStats = " "
HT_TempSum = " "
HT_GrowingDegreeDays = " "
HT_ThermalSeasons = " "
HT_DailyEVT = " "
HT_MonthlyEVT = " "
HT_ClashOfAverages = " "
The structure is <code><tag> = " <free text> "</code> ; The spaces are obligatory, the tag names are fixed and must not be changed by the user.
These files will be generated by the ''Website'' command. If you did not change anything, apart from the index.html they do NOT need to be uploaded (see the [[Thrifty_-_Cutils_Command_Qualifier|Thrifty qualifier]])
The spaces are obligatory for the parser to recognize the structure of the file and a space between the double quote and the free text between the quotes is also obligatory. The user can write any HTML formatted text between the quotes, in principle of any length (though some restraint is advisable).
The following files are not generated but are required. If not present a message is logged on the console.
All climate graphs have their own meaningful entry - e.g. HT_DailyRain means '''''H'''elp '''T'''ext for the '''D'''aily '''R'''ain'' chart - and can have their own text. If no text is specified (only white space between the double quotes) the ''Info'' word will not appear in the chart.
#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]].
= Output =
== Inifile parameters ==
The helptexts are assembled in the different charts files (e.g. ''graphsrain.txt'' and ''cumuluscharts.txt'').
'''NOTE: The Website Generator works closely together with the Internal [[FTP facility]]. You have to setup that first or upload the output manually. It's user preference.'''
= Inifile parameters =
The Website section is the largest parameters section. Not all parameters will be reproduced here, see the [[Cumulusutils.ini]] article. Only the important individual parameters will be discussed, the others are discussed as a group.
There are no inifile parameters related to this helptext information system
= Other remarks =
[Website]
The ''Info'' keyword in the ChartsCompiler will eventually be unified with the CUhelptexts.txt file system when an unambiguous merge can be constructed.
GoogleStatsId= => When not empty, a google stats code fragment will be generated with this code as the user Id, default is empty
PermitGoogleOptout=true | false => 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
ShowSolar=true => Show the solar radiation values (if there is a sensor), default=true
HeaderLeftText= => A free plain or HTML formatted text destined at the left side of the header, default is empty
HeaderRightText= => A free plain or HTML formatted text destined at the right side of the header, default is empty
SiteTitleAddition= => A free text addition to the title, default is empty
UseCMXMoonImage=false => When true the CMX generated moon image is used i.s.o. the CUtils native abstracted image
When errors have been made or the default tag names have been changed and the system no longer works, just remove the CUhelptexts.txt file and rerun CumulusUtils without argument.
All parameters starting with '''''Panel''''' affect what you actually see in that panel See [[Dashboard]] for more information.<br>
All parameters starting with '''''Color''''' affect the Bootstrap elements relevant for the interface and give the user the possibility to create a personal touch to the presentation.<br>
All parameters starting with '''''Steelseries''''' affect the presentation of the gauges. You may find examples [https://www.wilmslowastro.com/steelseries/demoRadial.html here] and [http://www.boock.ch/meteo/gauges_stelserie_demoradial.php here] <ref> See the site of Mark Crossley if you wish to see more and create gauges yourself: [https://www.wilmslowastro.com/steelseries/demoLinear.html lineair], [https://www.wilmslowastro.com/steelseries/demoExtras.html extras], [https://www.wilmslowastro.com/steelseries/demoStopWatch.html stopwatch], [https://www.wilmslowastro.com/steelseries/demoLightBulb.html lightbulb], [https://www.wilmslowastro.com/steelseries/demoLcdSections.html LCD] and [https://www.wilmslowastro.com/steelseries/demoLcdSections.html trafficlight]</ref>. See also the [[SteelSeries_FAQ|SteelSeries FAQ]].<br>
All parameters starting with '''''Threshold''''' give a definition in pairs for a red led within a gauge to start flashing when the given boundary has surpassed.<br>
All parameters starting with '''''Home''''' apply to the Home page graphs and give the user the possibility to explicitly set non-default colours <ref>When use is made of the [[ChartsCompiler|CutilsCharts.def]] definition of charts for the [[ChartsCompiler]], then these colours have no meaning and either the colours from the [[ChartsCompiler|CutilsCharts.def]] or from the theme (if none specified) are used </ref>. <br>
When colours go in three they are gradient colours. If only the first colour is used, no gradient effect is seen.
<references />
=== Header Background Images ===
(v6.8.4 and up)
Special attention must be given to the Header Background Images parameters, meant to make user specific artwork to the site possible. The perception of the site changes dramatically when the header image changes in colour, brightness and what is actually depicted.
ColorTitleBackGroundImage= (this image represents the DAY, for historical reasons the name of the parameter has not been modified)
ColorTitleBackGroundImageCivil=
ColorTitleBackGroundImageNautical=
ColorTitleBackGroundImageAstronomical=
ColorTitleBackGroundImageNight=
These parameters may contain the name of an imagefile which the user has placed on the website. The path must be relative to the webroot or a full URL specification. The images correspond to the respective phases of the day: DAY, CIVIL twilight, NAUTICAL twilight, ASTRONOMICAL twilight and NIGHT - see the solar disc in the [[dashboard]] - and are displayed when that corresponding phase starts. If an image is not specified, the image of the preceding phase is used where the order is: DAY, CIVIL, NAUTICAL, ASTRONOMICAL and NIGHT. So, when only DAY is specified, all phases have the DAY image displayed. When DAY and CIVIL are specified, DAY gets the DAY image and all other phases get the CIVIL image etc...
=== Chart Background Images ===
(v6.9.6 and up)
It is possible to define a background image for the chart as a whole (so not only the plot area but also the axis and titles). For this a general parameter exists (general because it is valid for all modules carrying charts):
ChartBackgroundImage=
If this parameter contains a filename, that file is used as background image of the charts. Note that the specification may also be a url which must be accessible by the user running the website.
=== CumulusRealTimeLocation ===
The parameter ''CumulusRealTimeLocation'' gives the user the possibility to setup the CumulusUtils website beside a main website and share the realtime and datafiles with the other site.
If there is a directory structure like:
\ as webroot
|
- cutils\ as directory where the CumulusUtils site is located
|--- lib\
|--- css\
|--- CUicons\
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.
=== Javascript libraries ===
When using the [[Website Generator]], all modules are used implicitly. Modules, with some exceptions, can be used standalone in any website by including the output of CumulusUtils in that website. When using the standalone mode you need to be aware of the [[cumulusutils.ini|inifile parameters]] (section general) ''GeneratejQueryInclude'' and ''DoLibraryIncludes''.
#GeneratejQueryInclude will - if true - generate the required jQuery library reference line on top of the module.
#DoLibraryIncludes will - if true - generate the required library references (e.g. HighCharts, Leaflet etc...) on top of the module.
If you manage these libraries in your website yourself set these parameter values to false.
If the modules don't work and you have no idea what this is about, set these values to true.
If you use the [[Website Generator]], '''set both parameters to false'''.
On top of the above use of these parameters, if you wish to run the [[ChartsCompiler]] as a module i.e. [[ChartsCompiler#Explicit_activation|explicit activation]] (command CompileOnly) but for use '''inside''' the CUtils environment then both library parameters must be false.
== Other remarks ==
In this section some special subjects and questions and answers from the forum will be summarized
=== The Clocks ===
The clocks panel of the website shows three clocks:
#Station which is the actual time at the location of the station corrected for DST of the station location
#Browser which is the time on the computer of the viewer corrected for the browser location DST
#UTC
It is important for the automatic DST switch to understand that the generation of the daily website needs to take place after the switch time. So in spring that would be at 2 o'clock and in autumn that would be after 3 o'clock. If run before those hours the DST correction will obviously take place one day later.
[[Category:CumulusUtils]]
|