wiki:aw:configure
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:aw:configure [2025/10/12 15:48] – [Configuring the site] Neil | wiki:aw:configure [2025/10/20 08:32] (current) – [Dynamic Configuring] Neil | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| **Like all previous versions of the alternative website, all settings are now held in one place - the cmxConfig object held in the <color # | **Like all previous versions of the alternative website, all settings are now held in one place - the cmxConfig object held in the <color # | ||
| - | This object holds the location of the menu to use, the location of your data, the path and name of your menu, the location of your NOAA Reports and other features that the website uses. This object is stored locally on your machine as ' | + | This object holds the location of the menu to use, the location of your data, the path and name of your menu, the location of your NOAA Reports and other features that the website uses. This object is stored locally on your machine as ' |
| </ | </ | ||
| - | ===== Information | + | ===== Initial Configuration |
| - | Before any page is fully loaded your browsers current Session Storage is checked to see if a copy of the cmxConfig object already exists, if it does, it is used to configure the page. If it does not not then it is created. | + | Before any page is fully loaded your browsers current Session Storage is checked to see if a copy of the cmxConfig object already exists, if it does, it is used to configure the page. If it does not not then it is created. This is then used throughout the site to access data, theme colours and other configurable options. |
| - | Below is an explanation of all entries. | + | Below is an explanation of the <color # |
| <WRAP group> | <WRAP group> | ||
| <WRAP twothirds column> | <WRAP twothirds column> | ||
| - | <WRAP nicebox | + | <WRAP nicebox |
| - | === Charts | + | ==== Data ==== |
| - | This is used dynamically by the site to record | + | This points to the location of your ***.json** data files((and the **realtimegauges.txt** file)) uploaded by CumulusMX. |
| - | === Records === | + | ++++ See more | |
| - | Again this is dynamically changed by the website based on the last set of records | + | If the entry is blank, it is assumed to be the root directory |
| + | If your site is **not** in the root directory, | ||
| - | === Custom === | + | * Entries that start with **/** will be an absolute path to your data. |
| - | <wrap info> | + | * Other initial characters will interpret |
| - | This area is used to configure user settings. | + | * See [[:wiki:aw:Config-Detail|detailed information]] with images. |
| + | ++++ | ||
| - | ==== Data ==== | + | ==== NOAA Reports |
| - | This points to the location of your .json data files((and the **realtimegauges.txt** file)) uploaded by CumulusMX. The default location is the same as the pages. | + | Unlike general |
| - | === Menu === | + | |
| - | Theis should be used to point to the javascript manu file used to drive all the menus on the site. Its default value is **js/ | + | |
| - | === NOAA Reports === | + | |
| - | If you publish | + | |
| - | === The Gull === | + | |
| - | As in the AI, the seagull can be animated. | + | |
| - | <wrap info> | + | ==== Menu ==== |
| + | This should be used to point to the javascript menu file used to drive all the menus on the site. Unless you use your own modified menu, there should be little need to edit this. Its default value is **js/ | ||
| + | |||
| + | === Custom === | ||
| + | This area is used to configure other user settings. | ||
| </ | </ | ||
| Line 72: | Line 72: | ||
| </ | </ | ||
| </ | </ | ||
| + | ==== Non-critical entries ==== | ||
| + | <WRAP nicebox blue> | ||
| + | === The Gull === | ||
| + | As in the AI, the seagull is animated. | ||
| - | ==== The remaining entries ==== | + | ++++ More | |
| + | **Animation**:< | ||
| + | * **gull-FadeIn**< | ||
| + | * **gull-GrowUp**< | ||
| + | * **gull-SlideIn-from-Left**< | ||
| + | * **gull-SlideIn-from-Right**< | ||
| - | As stated above, | + | **Speed**:< |
| + | **OnTop**:<wrap indent> | ||
| + | </ | ||
| + | ++++ | ||
| + | ==== Charts & Records ==== | ||
| + | Both these entries are dynamic in that they are used by the site to record the last **Trends** or **Historic** chart or **Monthly** or **All Records** recordset viewed so that when a visitor returns to them, the same chart / recordset is displayed. | ||
| + | === Charts === | ||
| + | The charts section can be used to dictate which chart is displayed when a visitor first views the respective page. | ||
| + | ++++ See more | | ||
| If **you** set them in cmxConfig then the chart you set will be the one visitors see first. | If **you** set them in cmxConfig then the chart you set will be the one visitors see first. | ||
| Line 84: | Line 101: | ||
| Of course, if your system does not generate a chart it is pointless to force it to display by default. | Of course, if your system does not generate a chart it is pointless to force it to display by default. | ||
| - | + | ++++ | |
| - | As the Records pages already select the most appropriate record set, I have not included the options for these but there is no reason why they cannot be pre-set: use 1 to 11 for months and **Alltime**, | + | </ |
| ==== Dynamic Configuring ==== | ==== Dynamic Configuring ==== | ||
| <WRAP nicebox red> | <WRAP nicebox red> | ||
| - | In previous versions | + | Previously |
| + | ++ See more | | ||
| + | You can still add this command | ||
| - | My preferred method is to use the **Developer Tools** available in most browsers and to edit the sessionStorage variable directly. | + | **%%sessionStorage.clear()%%** |
| + | |||
| + | <wrap alert 50% center>< | ||
| + | |||
| + | ++ | ||
| + | |||
| + | My preferred method is to use the **Developer Tools** available in most browsers and to edit the sessionStorage variable directly. | ||
| If this is not possible, for whatever reason, simply close the browser and reload the page. The session variable will have been deleted and whatever you have stored in the **page-control.js** cmxConfig variable will be used. | If this is not possible, for whatever reason, simply close the browser and reload the page. The session variable will have been deleted and whatever you have stored in the **page-control.js** cmxConfig variable will be used. | ||
| </ | </ | ||
| + | ===== Dashboard Information Panel ===== | ||
| + | <WRAP nicebox orange> | ||
| + | The contents of this panel can now be changed without editing the **index.html** page. | ||
| + | <WRAP alert center 60% round> | ||
| + | === You should edit this file to include the text that you want to appear on the dashboard page. === | ||
| + | </ | ||
| + | A new **// | ||
| + | </ | ||
wiki/aw/configure.1760284131.txt.gz · Last modified: by Neil
