Default Website Development: Difference between revisions
NeilThomas (talk | contribs) |
NeilThomas (talk | contribs) m (→Installing) |
||
| (74 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 |
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 [[AlternativePublicWebsite|Alternative Public Website]] |
|||
This will always be available to you in the 'websites' folder of your Cumulus MX Installation. However, it is not a published site until you decide to make it so. |
|||
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. |
|||
To publish the default website you will need a web host and a domain name that you can access. |
|||
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. |
|||
=== Publishing the Default Site === |
|||
To publish the site you need to upload '''ALL''' of the contents of the website folder to a location on your website. Normally this would be to the public_html folder in your control panel for your web host. However, there is nothing to stop you using a sub-folder off the public_html one. If you do this you will need to '''make a note of the folder name''' you use. |
|||
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. |
|||
Once you have copied all the above files, you need to configure CumulusMX to upload your data at regular intervals. |
|||
==== Configure CumulusMX to upload data ==== |
|||
This is done on the '''Internet Settings''' Page. |
|||
Under the Web/Upload Site' tab check the following: |
|||
* Enable Upload Connections |
|||
* Select a FTP protocol - Do this in consultation with your web host provider. |
|||
* Enter a Host name: - this will usually be your domain name without the http/https prefix. |
|||
* FTP and FTPS is usually port 21 but you should select the port in consultation with you web host provider. |
|||
* Enter the directory you wish to upload to. This will usually be public_html/ as this is where your pages are. If you have copied your pages to another location then give the path to them. |
|||
* Provide a username and password for an account that can FTP to the specified location.* |
|||
You should not need to change either General or Advanced settings at this stage. |
|||
Under the '''Interval Configuration''' tab check the option: 'I wish to use the supplied default web site'. |
|||
This should make all the configuration changes needed but it is worth while to check: |
|||
Under '''Normal Interval Settings''' make sure that everything is selected and that the interval to use is what you want. |
|||
Under '''Real time Interval Settings''' make sure that it is enabled, that the interval in seconds is what you want and that ''''Upload'''' is enabled. |
|||
One final task you need to complete is to enable the load of the moon image. This is on the '''Moon Image''' tab of the '''Internet Settings''' page. |
|||
You can accept the default settings unless you have copied your site to a different location. |
|||
Your site should now be functioning. However, you may wish to visit the '''Utilities''' page and initiate an FTP upload of everything. |
|||
===NOAA Reports=== |
|||
CumulusMX can generate NOAA Reports and the default website includes a page to display them. |
|||
To enable NOAA Reports you need to visit the '''NOAA Settings page'''. |
|||
* Firstly check the box 'Create NOAA files after daily rollover. |
|||
* Setup your site details on the '''Site Details''' tab. |
|||
* Under '''Report Options''', configure the settings that suit you. |
|||
* Under '''Upload Options''' either accept the default location which is Reports/ or specify a location based on where you upload your data. To avoid issues always name this <somewhere>/Reports/ |
|||
Finally you need to dose research to find out the '''Normal Mean Temperatures''' and '''Normal Precipitation''' for your location. These values need to be entered into the appropriate boxes under the respective tabs. |
|||
If you decide '''NOT''' to generate NOAA Reports then you need to edit the ''menu.js'' file uploaded to your web host. See below: |
|||
==Editing the website menu== |
==Editing the website menu== |
||
Please refer to my [https://oaktreewebs.co.uk/wiki/ wiki] for full details of the menu and how to edit it. |
|||
The website menu is held in the file ''menu.js''. An image of this is shown below: |
|||
Menu configuration file for NEW CuMX template |
|||
Last modified: 2022/07/05 11:39:38 |
|||
menu.js - typical name, you define the one used in setpagedata.js<br> |
|||
It is STRONGLY RECOMMENDED that if you customise this file, you create a new file with a different name, e.g. mymenu.js |
|||
and change setpagedata.js to use that file. This will avoid your customisations being accidentally overwritten during upgrades<br> |
|||
Properties: |
|||
.title - This is the text that appears in the menu bar. |
|||
.menu - can be 'b' (both menus), 'w' (wide menu ONLY), 'n' (narrow [mobile] menu ONLY) |
|||
.new_window:true - forces the link to open in new browser window |
|||
.url - This is the address of the page. if it is to an external page on another site it must include the full url |
|||
The two entries that are '#' are special and are configured by the website. |
|||
.forum:true - flags a forum link menu item, it will use the url provided in CuMX config, if that is blank the menu item will be hidden |
|||
.webcam:true - flags a webcam link menu item, it will use the url provided in CuMX config, if that is blank the menu item will be hidden |
|||
[[File:Screenshot 2024-03-20 at 12.38.12.png|800px]] |
|||
* If you want to change the language, simply enter translations for the titles only. |
|||
* If you want to add an entry copy the entry above and edit it as required. |
|||
* To create a whole new sub-menu, copy and paste either the section that starts with the '''title: "Records"...''' or '''title: "Charts"...''' and then edit as required. |
|||
==An Alternate Default Website== |
|||
Following on from the development of the current default website, the author of the default website has generated an alternative that is more adaptable and responsive. |
|||
It is designed to work on all screen sizes while using exactly the same data that is uploaded to the default website. |
|||
It allows your data to be sent to its own sub-folder of the site rather than mixing in with the web pages so makes it easier to manage. It comes with a number of themes or colour schemes that you can implement as required. |
|||
To find out more please visit |
|||
==An Alternative Interface== |
|||
==Changing the Theme and Other Settings== |
|||
In addition to the existing Interface site used for managing your weather station, an additional Alternative Interface is also available from the author of the default website. |
|||
Please refer to my [https://oaktreewebs.co.uk/wiki/ wiki] for full information on configuring and setting up the alternative website. |
|||
Details of this can be found here: [[Alternative_Interface|Alternative Interface]]. |
|||
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.
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.