Default Website Development: Difference between revisions

 
(100 intermediate revisions by the same user not shown)
Line 1: Line 1:
==The default CMX website Development==
==The default CMX website Development==


These section of the Wiki will enable you to get the latest information and resources for the new default CMX website shipped with version 3.10.x
These section of the Wiki will enable you to get the latest information and resources for the alternative to the default CumulusMX public website.


===The current default site===
===Alternative public website===
Please visit the [[AlternativePublicWebsite|Alternative Public Website]]
This will always be available to you in the 'websites' folder of your Cumulus MX Installation. If you wish to undo any of the changes that downloads from this page generate then simply re-copy the websites folder to your web host.
Please note. This is NOT part of the CumulusMX Distribution package and is provided only for those interested in having a public site that uses similar structures to the Alternative Interface.


Although it should function at the date of release, no guarantees are given that it will continue to do so with subsequent releases of CumulusMX. Users should take time to investigate how it reacts and uses the library and data files uploaded by CumulusMX so that you are able to do some troubleshooting for yourself.
===An Alternative Interface===
A new addition to the existing Interface site used for managing your weather station is now available. You can find out about it here: [[Alternative_Interface|Alternative Interface]].


Full details of the alternative public website, including screenshots can be fond on [https://oaktreewebs.co.uk/wiki/ my wiki] together with comprehensive instructions on how to install, use and modify.
===Templates===
There are currently 3 alternative template frameworks for the site. These all include 4 variations for the main content area of a page; a single column, two column, three column and four columns. These can be used as the framework for existing pages or to add your own content as required. You can choose to use them in any combination or just one - its up to you. All come with a pdf readme file to help you use them but for full information about the available styles visit [https://www.w3schools.com/w3css/default.asp w3Schools].


This site also comes with new themes (unfortunately not compatible with the AI or previous versions) that should be easier to modify for your own needs.
The available frameworks are:
* A lefthand sidebar with the main panel on the right. Download at [https://cumuluswiki.org/images/7/75/LeftSBTemplates.zip Left-handed sidebar template]. These can be viewed at [https://weather.oaktreewebs.co.uk/ATL-1c.htm OaktreeWebs Weather]. Updated: 16 June 2021
* A righthand sidebar with the man panel on the left. Download at [Https://cumuluswiki.org/images/6/67/RightSBTemplates.zip Right-handed sidebar templates]. This is similar to the default site but the sidebar starts higher up the screen. Again, these can be viewed at [https://weather.oaktreewebs.co.uk/ATR-1c.htm OaktreeWebs Weather]. Updated 15 June 2021.
* A set with no sidebar - just the main content area. Download at [Https://cumuluswiki.org/images/2/2a/NoSBTemplates.zip No sidebar templates]. View at [https://weather.oaktreewebs.co.uk/ATN-1c.htm OaktreeWebs Weather]. The single column version gauges page is set wider than other pages. Updated: 1 October 2021


==Editing the website menu==
====Additional/Alternative Pages====
=====Gauges=====
We also have an alternative to the default gauges.htm page. This does away with the sidebar and places the gauges in fixed width panels that automatically reposition themselves as the page width is changed. The gauges are also able to be placed in any order without resorting to cut-n-paste. Just add/change a number to their order style and its done.


Please refer to my [https://oaktreewebs.co.uk/wiki/ wiki] for full details of the menu and how to edit it.
This can be downloaded from [Https://cumuluswiki.org/Downloads/NewGauges.zip Gauges Page]. Updated: 11 March 2021


==Changing the Theme and Other Settings==
=====NOAA Reports=====
This is now included in the standard default website. It enables any of your NOAA reports to be loaded into the page using Ajax calls so no page refresh is needed. Updated: 16 June 2021.


Please refer to my [https://oaktreewebs.co.uk/wiki/ wiki] for full information on configuring and setting up the alternative website.
===Complete ready to run alternative website pack===
We now have a complete [[ResponsiveSite.zip | alternative 'website']] ready for use. It is very similar to the current supplied website but with the following changes:

* There are two (2) gauges pages - gauges.htm and gaugesII.htm. They are both full width. The first removes the radio buttons from all gauges making is easy to see all gauges without scrolling. The options are provided in a dropdown page menu along with units. The second shows individual gauges in panels with their radio buttons.
* There is also a 'today v yesterday' page (todayYest.htm), for those that want to be able to compare readings.
* The layout of the sidebar is slightly different - it starts at the top of the right hand panel.
The menu has NOT been included in the zip and consequently you will need to adjust it to use the chosen pages listed above.
The zip file does contain the three css stylesheets; colours.css, mx-templates.css and gauges.css which will need to be copied to the correct location on your waebserver.

'''Please backup your site before uploading and extracting this alternative website'''

===Colour Themes===
The website and templates use colour themes to make it easier to change the colour throughout the site. By downloading the colour theme pack, you can simply rename the chosen colour as 'colours.css' and it will be applied throughout your site. All colour themes have now been updated to use ''css variables'' for the available theme colours. This makes it much easier to add your theme colours to your custom pages. or style sheets. It is also possible to apply theme colours to the gauges tooltips in this way.

For example, to add a coloured border to an element you can add the style like so:
<nowiki><span style="border-color: var(--d2);"></span></nowiki> or <nowiki><span style="w3-theme-d2-bdr w3-border">##</span></nowiki>.

Visit the new '''[https://weather.oaktreewebs.co.uk/ATThemes.htm Theme Viewer]''' to preview any of these themes on a basic template page. You can download individual themes directly from this page.

You will also find that additional themes have now been added. The download includes a reworked default 'colours.css' stylesheet to also use css variables.

The current list is:
{| class="wikitable"
|-
! Theme !! Description !! Theme !! Description
|-
| '''AlmondBuff''' || A brownish theme. || '''AlmostMauve''' || Mauve like in colour!
|-
| '''Arcadia''' || Almost a bottle green! || '''CherryTomato''' || A muted red based on #e94b3c.
|-
| '''ChilliOil''' || A reddy brown based on #944743. || '''ChilliPepper''' || NEW: A Rusty red colour.
|-
| '''CoconutMilk''' || A slightly sandy milky colour! || '''CrocusPetal''' || A very purple/mauve like theme.
|-
| '''CylonYellow''' || More of a light brown colour. || '''Emporador''' || A mid misty brown based colour.
|-
| '''HarbourMist''' || A warm grey based on #b4b7ba. || ''Limelight''' || A very bright yellow!
|-
| '''LimePunch''' || This is a greener yellow than Limelight. || '''Marsala''' || NEW: A slightly orange muted red.
|-
| '''MartiniOlive''' || A very dark grey brown. || '''MeerKat''' || A turquoise blue green.
|-
| '''NebulasBlue''' || Almost a royal blue. || '''QuietGrey''' || A slightly cooler grey based on #bcbcbe.
|-
| '''RedPear''' || A variation between CherryTomato and ChiliOil based on #bcbcbe. || '''RussetOrange''' || A reddy orange based on #bcbcbe.
|-
| '''SailorBlue''' || A strong dark blue || ||
|-
| '''SargassoSea''' || An even stronger dark blue than SailorBlue || '''SlateGrey''' || NEW Darker than the other greys.
|-
| '''SpringCrocus''' || A muted purple theme based on #bc70a4. || '''Tofu''' || A colour often found in nappies.
|-
| '''UltraViolet''' || Theme based on purple / violet || '''ValiantPoppy''' || Another theme based on purple / violet
|-
| '''WarmSand''' || The lighter colours are sandy coloured while the darker range have a distinct orange tinge. || ||
|}

Use this link [https://cumuluswiki.org/images/4/43/ColourSchemes.zip Additional colour schemes] to down load the schemes. Please note Themes marked 'NEW' are only available on my website. Just follow the next link. You can view them in action at [https://weather.oaktreewebs.co.uk/ATThemes.htm Theme Viewer] page. Updated: 6th Sept 2021.

Latest revision as of 09:52, 26 October 2025

The default CMX website Development

These section of the Wiki will enable you to get the latest information and resources for the alternative to the default CumulusMX public website.

Alternative public website

Please visit the Alternative Public Website

 Please note.  This is NOT part of the CumulusMX Distribution package and is provided only for those interested in having a public site that uses similar structures to the Alternative Interface.
Although it should function at the date of release, no guarantees are given that it will continue to do so with subsequent releases of CumulusMX. Users should take time to investigate how it reacts and uses the library and data files uploaded by CumulusMX so that you are able to do some troubleshooting for yourself.

Full details of the alternative public website, including screenshots can be fond on my wiki together with comprehensive instructions on how to install, use and modify.

This site also comes with new themes (unfortunately not compatible with the AI or previous versions) that should be easier to modify for your own needs.

Editing the website menu

Please refer to my wiki for full details of the menu and how to edit it.

Changing the Theme and Other Settings

Please refer to my wiki for full information on configuring and setting up the alternative website.