<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.cumuluswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Relleray</id>
	<title>Cumulus Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.cumuluswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Relleray"/>
	<link rel="alternate" type="text/html" href="https://www.cumuluswiki.org/a/Special:Contributions/Relleray"/>
	<updated>2026-04-27T06:46:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://www.cumuluswiki.org/index.php?title=Updating_MX_to_new_version&amp;diff=11231</id>
		<title>Updating MX to new version</title>
		<link rel="alternate" type="text/html" href="https://www.cumuluswiki.org/index.php?title=Updating_MX_to_new_version&amp;diff=11231"/>
		<updated>2023-03-16T09:32:11Z</updated>

		<summary type="html">&lt;p&gt;Relleray: /* Upgrading if you run MX as a service */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Who this article is for=&lt;br /&gt;
&lt;br /&gt;
Please be aware that if you want to move from Cumulus 1 to MX, you should read [[Migrating_from_Cumulus_1_to_MX]] article instead.&lt;br /&gt;
&lt;br /&gt;
This article is for those who already use MX, and so are comfortable with basic MX installation and running.&lt;br /&gt;
&lt;br /&gt;
=Who is not intended reader=&lt;br /&gt;
&lt;br /&gt;
Cumulus MX has been updated so frequently in 2020, that you may be used to upgrading to a new build, and for you this article is not useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Where to download a release distribution=&lt;br /&gt;
&lt;br /&gt;
==Latest release==&lt;br /&gt;
&lt;br /&gt;
Download release distribution zip from  [[Software|the Software article in this Wiki]] for latest version.&lt;br /&gt;
&lt;br /&gt;
Be aware that the developer needs to remember to update this link each time there is a new release.&lt;br /&gt;
&lt;br /&gt;
An image that contains a &#039;&#039;&#039;Raspberry Pi lite operating system&#039;&#039;&#039; and a recent CumulusMX release already included, can be downloaded from the same wiki article. Not every CumulusMX release is provided as a Raspberry Pi image, so you may need to perform an update to get the latest release. The Raspberry Pi image places CumulusMX in /opt/CumulusMX.&lt;br /&gt;
&lt;br /&gt;
==Any release developed by Mark Crossley==&lt;br /&gt;
&lt;br /&gt;
Download release distribution zip from https://github.com/cumulusmx/CumulusMX/releases for earlier versions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction to upgrading MX=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: LemonChiffon;padding:5px; margin:2px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Crystal Clear info.png|40px]] This document is &#039;Work In Progress&#039; so content may not be complete or accurate!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Cumulus MX]]&lt;br /&gt;
&lt;br /&gt;
You can download and unzip in advance, but cannot replace existing files while they are being used, so how you stop MX is in next two sub-sections.&lt;br /&gt;
&lt;br /&gt;
My preference, after download, and unzip into a holding area, is to copy (it would be file transfer if you download on another device) over my existing installation all files except:&lt;br /&gt;
*CumulusMX.exe&lt;br /&gt;
*CumulusMX.exe.config&lt;br /&gt;
while MX is still running. I then stop MX for minimal time needed to replace just those two files before I restart MX.  That way I minimise downtime, especially useful for a patch release when few files have changed, as it takes some time to replace all the files in the installation.&lt;br /&gt;
&lt;br /&gt;
For simplicity, in guidance below, MX is stopped before any files are replaced.&lt;br /&gt;
&lt;br /&gt;
==Upgrading on a Raspberry Pi (RPi) computer by commands from a Microsoft Windows computer (PC)==&lt;br /&gt;
&lt;br /&gt;
I recommend you download WinSCP (this and PuTTy share some settings). This will allow you to connect your PC to your rPi and copy files back and forth.  You can use it to copy the MX distribution, you download and unzip on your PC, onto the RPi. You can also use it to take a back-up of your RPI files onto your PC, and to pick certain files off your RPi. e.g. copy log files  from [[MXdiags folder]] to your PC to read diagnostics etc.&lt;br /&gt;
&lt;br /&gt;
You can download PuTTy (shares some settings with WinSCP) to enable you to open a terminal session and send commands to your RPi computer.&lt;br /&gt;
&lt;br /&gt;
If you have Cumulus MX setup to run as a service then you will need to do one of these, should you wish to add debugging when the upgraded MX begins...&lt;br /&gt;
# Edit the CumulusMX service file (see [[MX_on_Linux#Running_as_a_service]]) to add the -debug parameter (do this if always want debugging on, not usually needed)&lt;br /&gt;
# Just set it from Program Settings | Logging Options (easiest for turning debug on when you need it and off when you don&#039;t need it)&lt;br /&gt;
# Edit the Cumulus.ini file and enable it in there (no longer recommended)&lt;br /&gt;
&lt;br /&gt;
==Upgrading if you run MX as a service==&lt;br /&gt;
&lt;br /&gt;
Don&#039;t forget to stop the service, before you do the upgrade.&lt;br /&gt;
&lt;br /&gt;
For  a Linux Operating system: &amp;lt;code&amp;gt;sudo systemctl stop cumulusmx&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For Microsoft Windows Operating System: &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open Windows Administration Tools from Windows Task Bar, select Component Services, click on Services (local)&lt;br /&gt;
In middle window select CumulusMX service from the list; click on Stop the service option. (click on Start the service after upgrade)&lt;br /&gt;
&lt;br /&gt;
==Upgrading if you run MX interactively==&lt;br /&gt;
&lt;br /&gt;
If you do NOT run as a service, you will want to use &#039;&#039;&#039;Control and C&#039;&#039;&#039; in the terminal (or command) window running MX to make the software close tidily. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updating to the next MX release if you have not upgraded before ==&lt;br /&gt;
&lt;br /&gt;
The simplest upgrade is from the immediate preceding build, and the steps required are summarised as follows:&lt;br /&gt;
# Download the release distribution zip for the next build (see later for where from)&lt;br /&gt;
#* My advice is to have a separate download location away from the location where you are installing/running the software; it can retain older releases to make regression simple if the new release proves to have a bug.&lt;br /&gt;
# Use &#039;&#039;&#039;Control-C&#039;&#039;&#039; to stop Cumulus MX (see later if running as a service)&lt;br /&gt;
# Take a backup of your complete existing MX installation (as it is not running, no files will be locked)&lt;br /&gt;
# Unzip the new distribution, overwriting the previous installation (the release announcement might ask you to delete obsolete files)&lt;br /&gt;
# Run any one-off batch scripts needed to prepare for upgrade&lt;br /&gt;
#* These might be needed if log files in the new release contain fields that were not in earlier release &lt;br /&gt;
#* These might be needed if you use optional database functionality (see later for examples)&lt;br /&gt;
# Do any actions that require you to use [[MX Administrative Interface|Admin Interface]] to change settings&lt;br /&gt;
# Do any one-off actions in relation to any files provided by MX for you to run a web site with the default pages&lt;br /&gt;
# Restart your Cumulus MX (consider running with &#039;&#039;&#039;-debug&#039;&#039;&#039; parameter if you are not sure the new build is bug free)&lt;br /&gt;
&lt;br /&gt;
The remainder of this article explains all options for updating, and is thus less simple than above.&lt;br /&gt;
&lt;br /&gt;
==Installer Option==&lt;br /&gt;
&lt;br /&gt;
[https://cumulus.hosiene.co.uk/memberlist.php?mode=viewprofile&amp;amp;u=9016 HansR] on support forum has developed an multi-platform installer, see [https://cumulus.hosiene.co.uk/viewtopic.php?f=44&amp;amp;t=18916 Multiplatform Installer for CumulusMX] which makes life a lot easier if you do not wish to dive into the (file level contents) internals of CumulusMX.&lt;br /&gt;
&lt;br /&gt;
#Copy the &#039;&#039;&#039;InstallCMX.exe&#039;&#039;&#039; to any directory you want, on the drive where you wish to install (or have previously installed) MX. &lt;br /&gt;
#Copy the CumulusMX release distribution zip(s) to that same directory, if you have not already done so. You may have more than one distribution in the same directory.&lt;br /&gt;
#*The install procedure gives you the possibility to select, or define, the Archive to install, and the location where to install.&lt;br /&gt;
#Stop CumulusMX&lt;br /&gt;
#Run &#039;&#039;&#039;InstallCMX&#039;&#039;&#039; and confirm / fill in (on the console) where you wish to install (or update) CMX. The default for Windows is C:\CumulusMX\ and for Linux it is : /home/CumulusMX. The Installation directory can be modified.&lt;br /&gt;
#* You can give the &#039;&#039;&#039;build number&#039;&#039;&#039;, for the release distribution zip, to install as command line &#039;&#039;&#039;argument&#039;&#039;&#039;.&lt;br /&gt;
#Start CumulusMX&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;NOTE:&#039;&#039;&#039; On Windows you run the installer as any other command line executable and it is best to open a command window in which you start the installer. On Linux you run it on the command line as &amp;quot;mono ./InstallCMX.exe&amp;quot;, the mono command can be omitted if mono is already active (e.g. if you run CumulusMX as a service, and stop it, mono remains active).&lt;br /&gt;
 &#039;&#039;&#039;NOTE:&#039;&#039;&#039; In an existing installation with modified files, make sure those are in a different, either filename or folder (a safe place). If they have the same name as files in the distribution, they will be overwritten.&lt;br /&gt;
 &#039;&#039;&#039;NOTE:&#039;&#039;&#039; Check in the &amp;lt;code&amp;gt;webfiles&amp;lt;/code&amp;gt; directory to see if any files there have been modified, since your last upload to your web server. If so, move those new files to the website.&lt;br /&gt;
&lt;br /&gt;
After the installation, there is a &#039;&#039;&#039;log file&#039;&#039;&#039;. Check the log file to see everything has gone well.&lt;br /&gt;
There is an &#039;&#039;&#039;ini file&#039;&#039;&#039; where you can control:&lt;br /&gt;
* NormalMessageToConsole=true or (default) NormalMessageToConsole=false &lt;br /&gt;
* TraceInfoLevel=Warning (out of: Error, Warning, Info, Verbose, None)&lt;br /&gt;
&lt;br /&gt;
Any reactions (thank you, issues and questions) please post in the [https://cumulus.hosiene.co.uk/viewtopic.php?f=44&amp;amp;t=18916 download thread of the installer].&lt;br /&gt;
&lt;br /&gt;
Modifications and additions on user request can be discussed (e.g. think about automated start/stop, upload of webfiles to the directory etc....), use the talk for this page.&lt;br /&gt;
&lt;br /&gt;
==Upgrading if you are running MX on a Linux computer==&lt;br /&gt;
&lt;br /&gt;
You might want to read galfert&#039;s post on the support forum [https://cumulus.hosiene.co.uk/viewtopic.php?p=148851#p148851 here] for the relevant Linux instructions in a concise format.&lt;br /&gt;
&lt;br /&gt;
If you want more detailed information, on any Linux (including Raspberry Pi operating system) aspects of the upgrade instructions on this page, see [[MX on Linux]] page.&lt;br /&gt;
&lt;br /&gt;
== Updating if you use the start/stop management script == &lt;br /&gt;
&lt;br /&gt;
This section contributed by &#039;&#039;Jank&#039;&#039; on support forum.  Note the version on the forum might have been updated from the original included here.&lt;br /&gt;
&lt;br /&gt;
1. look on [[Software|Software download page]], find the link to latest version, and fill out the &#039;...&#039; below appropriately as you run these 2 commands on your device where you do downloads: &lt;br /&gt;
&amp;lt;pre&amp;gt;cd /tmp&lt;br /&gt;
wget https://github.com/cumulusmx/CumulusMX/ ... .zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Once that download is complete, start cumulusmx.sh with option -u&lt;br /&gt;
&amp;lt;pre&amp;gt;/home/pi/CumulusMX/cumulusmx.sh -u&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3.When asked for the zip file, enter &lt;br /&gt;
&amp;lt;pre&amp;gt;/tmp/CumulusMXDist&amp;lt;/pre&amp;gt; and hit the TAB Button&lt;br /&gt;
&lt;br /&gt;
4.Choose the zip file with the CumulusMX upgrade and hit return.&lt;br /&gt;
&lt;br /&gt;
5. Follow the on screen instructions&lt;br /&gt;
&lt;br /&gt;
6. With each update component .....you can choose: [y]es, [n]o, [A]ll, [N]one, [r]ename&lt;br /&gt;
&lt;br /&gt;
I would recommend select &#039;&#039;&#039;A&#039;&#039;&#039; as that will simply replace all files without further action.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CumulusMX will be restarted after upgrade completes.&lt;br /&gt;
&lt;br /&gt;
You can check if the upgrade was successful by using option -s:&lt;br /&gt;
&amp;lt;pre&amp;gt; /home/pi/CumulusMX/cumulusmx.sh -s&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Considerations that determine when to upgrade=&lt;br /&gt;
&lt;br /&gt;
Cumulus MX will nag you, in various places, to make you aware if you are not running the latest build. Some people will choose to upgrade as soon after a new release as they can. However, each upgrade does involve a period when MX is not running, and that causes some loss of data:&lt;br /&gt;
*for some weather station types readings taken every minute, or more frequently, are replaced by whatever period you station data logger records at; &lt;br /&gt;
*for other stations, without their own logging, all data is lost for the period when MX is not running.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other, more cautious, people (like the present writer) will not upgrade each time a new release becomes available (and there are a lot of new releases in 2020), here are some of the reasons:&lt;br /&gt;
* you will see in the Cumulus Support Forum that many builds have bugs, and so you realise that it is better to stick with your fully working release, than install one with bugs;&lt;br /&gt;
* you may wish to avoid the loss of data mentioned above, by minimising the number of times that you stop MX;&lt;br /&gt;
* you may run MX on a computer that you rarely visit, perhaps even in a remote location not often visited, so you prefer to leave it untouched, rather than risk possibility of being unable to restart remotely;&lt;br /&gt;
* you may just have more important ways to use your time than updating your MX software, and some new builds might not give you any benefits that make it worthwhile to change your priorities.&lt;br /&gt;
&lt;br /&gt;
It is perfectly possible to &#039;&#039;&#039;upgrade from rather old versions of MX, to the latest&#039;&#039;&#039;, skipping intermediate versions, &#039;&#039;&#039;but there are some key versions that you should not skip over&#039;&#039;&#039;. This page, in subsequent sections, includes suggestions for which releases to install (and get running) before moving onto newer releases. This will be especially useful for those people who do not immediately upgrade to new releases, as per above suggestions. &lt;br /&gt;
&lt;br /&gt;
===Advice about skipping versions===&lt;br /&gt;
&lt;br /&gt;
Please see [[Updating_MX_to_new_version#Updating_from_a_very_old_version]] sub-section later on this page (and preceding sub-sections where relevant)&lt;br /&gt;
&lt;br /&gt;
The important point to make here is that when you do an upgrade, you should copy in &#039;&#039;&#039;ALL&#039;&#039;&#039; files from the release distribution you want to run next. This is because there are dependencies between files within a distribution, so missing out any particular file may stop other files from working. However, if you are skipping versions, read the in-between release announcements to see if there are any one-off actions.&lt;br /&gt;
&lt;br /&gt;
= What to read (and when) before upgrading =&lt;br /&gt;
&lt;br /&gt;
== Upgrading from immediately preceding build ==&lt;br /&gt;
&lt;br /&gt;
=== The release announcement ===&lt;br /&gt;
&lt;br /&gt;
The release announcement is found in [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&amp;amp;t=17887 Cumulus MX Announcements and Download - PLEASE READ FIRST] topic of the support forum.&lt;br /&gt;
&lt;br /&gt;
*Generally, a release announcement WILL contain&lt;br /&gt;
*#An overall purpose for that particular release (e.g. fixing bugs or adding functionality)&lt;br /&gt;
*#Details of what functionality has been added&lt;br /&gt;
*#Details of what bugs have been fixed, or where the processing has been improved&lt;br /&gt;
*# (For older releases only) A list of the main files that have been added or amended in the release (excluding &amp;quot;updates.txt&amp;quot; which is amended in each release)&lt;br /&gt;
*#* (Publishing a list of changed files has been discontinued, because people were updating selected files, and often missed crucial ones, like &#039;&#039;&#039;CumulusMX.cfg&#039;&#039;&#039;)&lt;br /&gt;
*Sometimes, a release announcement MAY contain&lt;br /&gt;
**Descriptions of one-off actions (like changing the schema if you use a database, or editing your web pages to take advantage of new web tags). &lt;br /&gt;
**Actual scripts to download and run to perform the necessary one-off actions.&lt;br /&gt;
*Be aware that it is worth while checking back on the release announcement for a few days after a release. &lt;br /&gt;
**It may have been edited because the original announcement forgot to mention something.&lt;br /&gt;
** It may have been edited to mention that some bugs have now been found&lt;br /&gt;
***That may mean you are advised to regress to an earlier version and use that&lt;br /&gt;
***It might mean that some supporting files in current version are wrong, and you only need to regress those named files&lt;br /&gt;
***There might be an emergency release to fix the bugs, and you need to upgrade to that emergency release&lt;br /&gt;
***Finally you might be given advice to avoid using certain parts of the functionality or take some other action until the next release is available.&lt;br /&gt;
&lt;br /&gt;
===Other places where you can find information about release content ===&lt;br /&gt;
&lt;br /&gt;
Although it is not always kept in step, a concise summary of all formal MX releases is available at [[Cumulus_MX_formal_release_versions]].&lt;br /&gt;
&lt;br /&gt;
You can also view the latest [https://github.com/cumulusmx/CumulusMX/blob/master/Updates.txt Updates.txt].&lt;br /&gt;
&lt;br /&gt;
===Deciding whether to upgrade to new release ===&lt;br /&gt;
&lt;br /&gt;
This has been covered earlier in this article, but I repeat here 2 critical considerations:&lt;br /&gt;
*Any new development or change in a new version of MX might cause problems for some users. You might want to stick with the version you are already using unless you really need any new functionality or the fixes gained by upgrading.&lt;br /&gt;
*Also remember that there are bugs in (almost) all versions of MX, this is a large and complicated package, and the current developer has not been able to test all the code with all possible settings and all possible weather stations.&lt;br /&gt;
&lt;br /&gt;
==Updating to a new minor build, skipping in-between minor builds==&lt;br /&gt;
&lt;br /&gt;
For a minor version build either the associated version number does not change or only the final section changes (3.x.y to 3.x.z).&lt;br /&gt;
&lt;br /&gt;
===Reading multiple release announcements===&lt;br /&gt;
&lt;br /&gt;
If you are skipping some intermediate builds, then you will need to read each of the formal release announcements for builds after the build you currently use.  &lt;br /&gt;
&lt;br /&gt;
The other sources of release information mentioned above may be consulted as an alternative and may highlight something useful, but the formal release announcement contains what the developer wants you to know.&lt;br /&gt;
&lt;br /&gt;
===Action to take when skipping minor intermediate builds===&lt;br /&gt;
&lt;br /&gt;
You need to apply the cumulative actions recommended (i.e. apply any actions in sequence as listed for each intermediate build). Unfortunately, for Cumulus MX, one cannot assume that minor builds have no one-off actions associated with them.   Luckily, most of the advice above for updating from immediately preceding build still applies.&lt;br /&gt;
&lt;br /&gt;
==Updating to a new major version==&lt;br /&gt;
&lt;br /&gt;
Generally, if the developer decides a new build warrants classification as a major version (i.e. 3.w.0) then the change being implemented is significant enough that updating might be more complex.&lt;br /&gt;
&lt;br /&gt;
=== Examples of what might be classified as a major change===&lt;br /&gt;
&lt;br /&gt;
*Additions to fields in log files (whilst older lines can continue to be read, you might want to consider [https://cumulus.hosiene.co.uk/viewtopic.php?f=18&amp;amp;t=18096 amending your standard data log] by populating the additional derivatives for older lines)&lt;br /&gt;
*Schema changes for database tables (if you don&#039;t use the standard tables, this might be irrelevant to you), the standard insert operations by MX can cope with extra columns in a table, but will fail if any column they try to update is missing&lt;br /&gt;
*Additions, changes, or removals, in configuration file (in general MX will ignore unrecognised parameters, but it does need correct values for those attributes it does recognise), see release announcements to discover if new lines in configuration file need you to add them manually or you need to use the admin interface to select the right setting for you &lt;br /&gt;
*New pages in Administrative Interface (additional pages require menu on every other page to be amended)&lt;br /&gt;
*Changes to existing pages in admin interface that involve changes to associated files (it is vital that all associated files are from same build)&lt;br /&gt;
*Catering for new weather station sensors, or new ways of communicating (this might not seem relevant to you)&lt;br /&gt;
*Any interface functionality changes (it may look the same, but what it does has changed)&lt;br /&gt;
*Additions to files being generated for web server (i.e. changes to template files, or additions to &#039;&#039;web&#039;&#039; or &#039;&#039;webfiles&#039;&#039; folders), even if you use your own versions of such files you may want to check the revisions&lt;br /&gt;
&lt;br /&gt;
=== What you need to read ===&lt;br /&gt;
&lt;br /&gt;
*Basically, check the corresponding release announcements for every version since the one you have been using before planning your upgrade. &lt;br /&gt;
**Make a note of any one-off actions required at particular in-between versions, remember these actions are only in forum release announcements.&lt;br /&gt;
**Although one-off actions will not be described in the Wiki (whether on the [[Software]] page or the [[Cumulus_MX_formal_release_versions]] page), the Wiki can give you an idea of what functionality has been improved to help you decide whether to upgrade.&lt;br /&gt;
*It is still worth reading all the points made above for updating from immediately preceding build.&lt;br /&gt;
&lt;br /&gt;
=== Doing the upgrade===&lt;br /&gt;
&lt;br /&gt;
# Download the release distribution&lt;br /&gt;
# Use &#039;&#039;&#039;control-c&#039;&#039;&#039; (or equivalent for MX running as service) to stop your existing MX software&lt;br /&gt;
# Backup your existing installation&lt;br /&gt;
# Do the on-off actions identified (e.g. changing schema of database tables, adding new configuration &lt;br /&gt;
# Unzip the distribution over existing one (alternative installation options listed later)&lt;br /&gt;
# Restart MX, considering whether to use &#039;&#039;&#039;-debug&#039;&#039;&#039; parameter in case the new release does not work for you&lt;br /&gt;
# Check the latest file in the MXDiags folder after an hour, to see if there have been any problems with reading from station, real-time uploads, standard uploads, or hourly uploads. (You may wish to recheck after an End of Day action has been done).&lt;br /&gt;
&lt;br /&gt;
==Updating from a very old version==&lt;br /&gt;
&lt;br /&gt;
Many people believe if it works, it don&#039;t need fixing. So they install whatever MX version is available when they start using MX and ignore all the bug fixing and new functionality being added, and stick with their existing installation.&lt;br /&gt;
&lt;br /&gt;
Suddenly they realise that perhaps their version does lack functionality that would be useful to them. Maybe their version does not have an editor for correcting rogue extreme records and they realise correcting log files is something that is hard for them to do.&lt;br /&gt;
&lt;br /&gt;
This section is therefore included to give advice on why you should not jump from an old version to the latest directly, but how it can be safely done in stages.&lt;br /&gt;
&lt;br /&gt;
===Recommendations for staged updating===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;This section will need to be updated, new contributors are needed to keep this advice current.&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do read all release announcements, to see if the developer has made a major change since those described below that means you need to stage your updates if you are currently running an old release.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====If using a release up to 3.11.4 and want to use any later release====&lt;br /&gt;
&lt;br /&gt;
Upgrade exactly to release 3.12.0 (no later) by using zip at [https://github.com/cumulusmx/CumulusMX/releases/download/b3141/CumulusMXDist3141.zip download/b3141/CumulusMXDist3141.zip].&lt;br /&gt;
&lt;br /&gt;
Run that release, it will rename your [[Cumulus.ini]] file, and create a new file with same name, but different settings.&lt;br /&gt;
&lt;br /&gt;
You need to work through all the settings pages in the interface, and ensure all settings are correct, then close MX so it writes away the new settings according to your preferences.&lt;br /&gt;
&lt;br /&gt;
Now [[Software#Latest_build_distribution_download|download the latest release]], and copy in all the files from the zip, before restarting MX at the release that is supported by developer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Currently running 3.10.x or 3.11.y====&lt;br /&gt;
&lt;br /&gt;
Treat like any other major version upgrade as described above.&lt;br /&gt;
&lt;br /&gt;
The changes between any 3.10.x release and any 3.11.y release were minor, but &#039;&#039;you can&#039;t go from 3.10.x to the latest release&#039;&#039;, because you must use 3.12.0 to convert [[Cumulus.ini]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Currently using one of the 3.9.y releases ====&lt;br /&gt;
&lt;br /&gt;
If you are using any release in the 3.9.y series  (note release announcement 3.9.1 warning about Mono if you use that), and you are using web pages that were provided by MX...&lt;br /&gt;
&lt;br /&gt;
Then you need to be aware that 3.10.1 (3.10.0 was withdrawn) got rid of the HTML templates that you have been using, and introduced a lot of new settings.&lt;br /&gt;
&lt;br /&gt;
The good news is that you can now jump straight to 3.12.0 as that release will rename your existing [[Cumulus.ini]] and create a new file with all the new settings:&lt;br /&gt;
* Changes to settings&lt;br /&gt;
** You need to open the [[MX Administrative Interface]] and work through all pages in the &#039;&#039;&#039;Settings&#039;&#039;&#039; menu.&lt;br /&gt;
*Changes to web files included in two folders in distribution: &amp;lt;code&amp;gt;[[Web folder|CumulusMX/web]]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[[Webfiles folder|CumulusMX/webfiles]]&amp;lt;/code&amp;gt;&lt;br /&gt;
**If you used the provided templates to produce web pages in earlier releases, or you had directly customised provided [[Customised templates|web templates]], these will no longer work&lt;br /&gt;
**Please see [[New Default Web Site Information|New Default Web Site Information page]] for further advice&lt;br /&gt;
&lt;br /&gt;
Note:  The folder &amp;lt;code&amp;gt;CumulusMX/webfiles-legacy&amp;lt;/code&amp;gt; mentioned in the new default web site information page, with some alternative web pages that have no ongoing support, is only available from a 3.10.0 or 3.10.1 download (find from [https://github.com/cumulusmx/CumulusMX/releases this Github page]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====if using 3.7.0 release, any 3.8.x  release, or 3.9.y release====&lt;br /&gt;
&lt;br /&gt;
See sub-section directly above, that describes similar process,&lt;br /&gt;
* EITHER &#039;&#039;&#039;upgrade directly to 3.9.6, or any later build, within 3.9.x, without any major change,&#039;&#039;&#039; &lt;br /&gt;
* or to 3.12.0 with major change&lt;br /&gt;
*  (find either release from [https://github.com/cumulusmx/CumulusMX/releases this Github page]).&lt;br /&gt;
&lt;br /&gt;
If you are using  a release earlier that 3.7.0, you can note 3.7.0 was only build in 3.7.y series, but because 3.7.0 introduced a lot of changes these staged upgrades recommend that 3.7.0 is implemented, and run for a while, before continuing to upgrade.&lt;br /&gt;
&lt;br /&gt;
Be aware that 3.8.0 was a major release, as it introduced the ability to run Cumulus MX as a service, but there is no reason to install it as the ability to run either interactively, or as a service, continues to be available in all subsequent releases. &lt;br /&gt;
&lt;br /&gt;
It is optional to install release 3.9.6 build 3101, because that is a safe release to use while there were bugs in the builds in all 3.8.z versions, and in other 3.9.x releases, however please action the one-off changes noted as IMPORTANT here:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT&#039;&#039;&#039; one-off actions needed:&lt;br /&gt;
* There is a one-off change described in [https://cumulus.hosiene.co.uk/viewtopic.php?p=146957#p146957  v3.9.0 - b3095 release announcement] for those using RG-11 rain sensor. &lt;br /&gt;
* There is a further on-off change described in [https://cumulus.hosiene.co.uk/viewtopic.php?p=147329#p147329 release announcement for Patch release 3.9.1 - b3096] for those who use &#039;&#039;&#039;Mono&#039;&#039;&#039; to enable the executables to run.&lt;br /&gt;
&lt;br /&gt;
Be aware that 3.10.0 was withdrawn, but it was a major release that totally changed the files in [[Web folder]] and [[Webfiles folder]] within the release download. However, you can skip directly from 3.9.6 (if you have implemented that) to 3.12.0 as soon as you are happy to change your web server contents (if you are using web pages that MX provides), see sub-section above for further advice re web pages.   You should continue in stages because it is mandatory to install 3.12.0 as only that release can rewrite your [[Cumulus.ini]] file ready for subsequent release, so ensure that 3.12.0 is working before installing current release as instructed in sub-sections for those using subsequent releases.&lt;br /&gt;
&lt;br /&gt;
====If using a 3.5.x release ====&lt;br /&gt;
&lt;br /&gt;
My advice is to upgrade directly to 3.7.0 available at [https://github.com/cumulusmx/CumulusMX/releases Mark&#039;s Github repository].  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;You should skip the intermediate releases because several 3.6.y releases have bugs in them&#039;&#039;, and you want to avoid those problems (the bugs vary in severity between mistakes in calculations done by MX to particular functionality not working).&lt;br /&gt;
&lt;br /&gt;
But there may be additional actions you need to do when moving from 3.5.x to 3.7.y, depending on what features you use in MX:&lt;br /&gt;
*there are no additional actions if &#039;&#039;&#039;you use standard web pages and you do not use database tables&#039;&#039;&#039;, just enjoy the bug fixes and extra features after your update!&lt;br /&gt;
*&#039;&#039;&#039;If you use database tables&#039;&#039;&#039;, be aware that the &amp;lt;big&amp;gt;schema (Column names that must be in a table) varies&amp;lt;/big&amp;gt; between 3.5.x versions and 3.7.y versions.&lt;br /&gt;
**The &#039;&#039;&#039;updating database table features in MX will only work&#039;&#039;&#039; if all the columns named in each such upload update &#039;&#039;already exist&#039;&#039; in the database table it is trying to update.&lt;br /&gt;
**Look at individual release announcements for both 3.6.0 and 3.7.0, to see the SQL provided for adding the columns added at particular versions.&lt;br /&gt;
***At 3.6.0 the SQL was provided as a separate attachment to the release announcement (read [https://cumulus.hosiene.co.uk/viewtopic.php?p=142085#p142085 UpdateMYSQL-b3076.zip])&lt;br /&gt;
***At 3.7.0 the SQL was provided as part of the main zip (read [https://cumulus.hosiene.co.uk/viewtopic.php?p=145048#p145048 AlterSQLTables3098.sql])&lt;br /&gt;
***In both cases, the SQL provided assumes you are using the default names for database tables, it does not read [[Cumulus.ini]] to see whether you have selected different names for the tables (unlike ExportMySQL.exe which used to be provided in the MX release zip with standard CumulusMX.exe;  both of those (at MX release 3.7.0) check what tables names you have selected for updates).&lt;br /&gt;
*&#039;&#039;&#039;If you have your own customised web pages&#039;&#039;&#039;, then there are changes to web tags that might lead to you needing to edit your web pages.&lt;br /&gt;
*&#039;&#039;&#039;If you use commas to separate integer and decimal parts of real numbers&#039;&#039;&#039;, then various releases from 3.6.0 to 3.7.0 add &amp;quot;rc=y&amp;quot; to various web tags, that option will replace the decimal commas you use by decimal points that are required for some script languages (like the JavaScript used by HighCharts), and that makes it easier if you want to customise your web site.&lt;br /&gt;
&lt;br /&gt;
When you are happy with running 3.7.0, then you should continue to upgrade, but in steps (optionally try 3.9.6 because that will test some new features, then mandatory upgrade to exactly 3.12.0 which will rewrite your Cumulus.ini file, then you can continue your upgrade to latest) as described in earlier sub-sections for later releases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====If using either 3.1.x, 3.2.y, 3.3.z, or 3.4.w releases====&lt;br /&gt;
&lt;br /&gt;
First, upgrade to 3.5.1 by downloading it at [[https://github.com/cumulusmx/CumulusMX/releases/tag/b3072 Mark&#039;s Github respository]]. The actual installation is done using the instructions early in this Wiki page for simple next build upgrades. You can safely skip reading the intermediate release announcements, as there are no special one-off actions.  There are one-off actions at 3.5.1, see release announcement.  It does not involve any updates to the fields in the log files nor to the columns in any database tables you use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you are happy running 3.5.1, then you should continue to upgrade, initially follow instructions given for later releases&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====If using 3.0.0 (the MX original beta)====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Upgrade from the beta directly to 3.5.1 by downloading it at https://github.com/cumulusmx/CumulusMX/releases/tag/b3072.  There are one-off actions at 3.5.1, see release announcement. This skips you past the problems in 3.5.0. It gives you benefits introduced in 3.1.x, 3.2.y, 3.3.z, and 3.4.w releases.&lt;br /&gt;
&lt;br /&gt;
This gives you essential new functionality in the admin interface like editors for the log files and extreme records. But it also fixes multiple bugs in the beta you were using and adds some useful validation missing in the beta.&lt;br /&gt;
&lt;br /&gt;
It does not involve any updates to the fields in the log files nor to the columns in any database tables you use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now follow instructions in other sub-sections, to upgrade in stages to where there are significant actions to do, until you reach latest release and get support from developer.&lt;br /&gt;
&lt;br /&gt;
= Knowing when a new release is available =&lt;br /&gt;
&lt;br /&gt;
== CREDIT ==&lt;br /&gt;
&lt;br /&gt;
Thanks to &#039;&#039;Billy&#039;&#039; on support forum for suggesting text for this section.&lt;br /&gt;
&lt;br /&gt;
== Using forum notifications ==&lt;br /&gt;
&lt;br /&gt;
As new releases are announced in [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&amp;amp;t=17887 Cumulus MX Announcements and Download - PLEASE READ FIRST] topic, you can use the spanner tool to &#039;&#039;&#039;subscribe&#039;&#039;&#039; to this topic to receive notifications of a new post announcing a new release (or any other release-related announcement).&lt;br /&gt;
&lt;br /&gt;
== MX terminal message ==&lt;br /&gt;
&lt;br /&gt;
If ... &lt;br /&gt;
#...you have a monitor to see the terminal output from the Cumulus MX engine (Windows calls this either a command window, powershell window, or a terminal window depending on how you invoke it, for Unix-based implementations this is the output window when using the terminal functionality), AND&lt;br /&gt;
#...your device running MX is connected to internet, AND&lt;br /&gt;
#...your MONO (if not Windows) is not obsolete (SSL certificate out of date), AND&lt;br /&gt;
#...you restart MX&lt;br /&gt;
... then you will see a prompt when a new version of MX is available.&lt;br /&gt;
&lt;br /&gt;
It is worth stressing that if you leave MX running, then this feature will leave you blissfully unaware that an update is available; it only checks when MX is restarted.&lt;br /&gt;
&lt;br /&gt;
== MXDiags ==&lt;br /&gt;
&lt;br /&gt;
In addition ...&lt;br /&gt;
#...if you can view the MXdiags file for the current session of MX, AND&lt;br /&gt;
#... MX is running with connection to the internet, AND&lt;br /&gt;
#...you restart MX&lt;br /&gt;
... if a new version of MX is available, the MXDiags file will say so (the message is not easy to spot as there is a lot of output before it, and variation in what output appears before it). Anyway, here is one example, just one example as in my experience &#039;&#039;&#039;the message has appeared at different places for each of the recent upgrades&#039;&#039;&#039;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2020-05-27 04:18:48.326 Calculating sunrise and sunset times&lt;br /&gt;
2020-05-27 04:18:48.326 Sunrise: 04:58:11&lt;br /&gt;
2020-05-27 04:18:48.326 Sunset : 21:19:54&lt;br /&gt;
2020-05-27 04:18:48.326 Tomorrow sunrise: 04:57:08&lt;br /&gt;
2020-05-27 04:18:48.326 Tomorrow sunset : 21:21:11&lt;br /&gt;
2020-05-27 04:18:48.388 You are not running the latest version of CumulusMX, build 3080 is available.&lt;br /&gt;
2020-05-27 04:18:48.763 Station type:&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is no message in whatever place it can appear ...&lt;br /&gt;
*... if you are using latest version, OR&lt;br /&gt;
* ... if you are not connected to the internet, OR&lt;br /&gt;
*... if you keep MX running all the time!&lt;br /&gt;
&lt;br /&gt;
== Start/Stop script ==&lt;br /&gt;
&lt;br /&gt;
When the &#039;&#039;&#039;Status&#039;&#039;&#039; option of this script is used, whenever a new release of MX is available, it will output a message.&lt;br /&gt;
&lt;br /&gt;
== Dashboard in MX Admin Interface ==&lt;br /&gt;
&lt;br /&gt;
In recent releases, one of the alarm indicators shown at the bottom of the dashboard page of the administrative interface, will flash red when you are not running latest build, and glow green when there is no newer release compared to the one you are running.&lt;br /&gt;
&lt;br /&gt;
== Web Tags ==&lt;br /&gt;
&lt;br /&gt;
Since 3.7.0 release of MX, two relevant web tags have become available:&lt;br /&gt;
* &amp;lt;#NewBuildAvailable&amp;gt; Returns a boolean value&lt;br /&gt;
**  0 - MX running the latest build available&lt;br /&gt;
**  1 - MX is running an earlier build than the latest public release&lt;br /&gt;
* &amp;lt;#NewBuildNumber&amp;gt;  Displays the latest public release build number&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Recommended Actions when Updating =&lt;br /&gt;
&lt;br /&gt;
== Back-ups ==&lt;br /&gt;
&lt;br /&gt;
It is always best to take a backup of your existing MX installation before you do an upgrade, this allows you to regress back to the earlier version if either you mess up installing the new version, or the new version has a issue that prevents it working with the versions of other software (like MONO) that your installation uses.&lt;br /&gt;
&lt;br /&gt;
== The two approaches ==&lt;br /&gt;
&lt;br /&gt;
Contributors to this section are named in text.&lt;br /&gt;
&lt;br /&gt;
Some people upgrade by just copying in the files that the release announcement says have changed, others copy in all files from the downloaded zip. The first should only be used with caution, files like &#039;&#039;&#039;CumulusMX.exe.config&#039;&#039;&#039; can change between versions, but not be mentioned in a release announcement, and the developer will have been making edits to files since the previous release, and might forget exactly which files have been edited between releases. Also you may be upgrading from an earlier version and therefore be skipping several intermediate releases. &lt;br /&gt;
&lt;br /&gt;
You may be able to see the dates when files were changed within the zip and therefore be able to decide for yourself if you compare those dates with the previous release you were using if you have kept the download for the version you were using. However, do not assume that only files with later date are needed; in some releases the new build regresses one or more files and so a file with an older date is the correct one to retain.&lt;br /&gt;
&lt;br /&gt;
===The rename old approach===&lt;br /&gt;
&lt;br /&gt;
#The popular approach, recommended by many forum contributors, in many different posts (including at [https://cumulus.hosiene.co.uk/viewtopic.php?p=141763#p141763 this post by Mark Crossley for example] is to rename your current install directory, then unzip the new release, letting it create a new &#039;&#039;&#039;CumulusMX&#039;&#039;&#039; folder (or whatever name you prefer and specify in unzip options). &lt;br /&gt;
#However, you will find that this option is not being recommended any more, because it relies on you knowing which files (see next 2 points) you need to copy back.&lt;br /&gt;
#Copy across &#039;&#039;&#039;Cumulus.ini&#039;&#039;&#039; and (if you use it) &#039;&#039;&#039;string.ini&#039;&#039;&#039; into that new directory, and then copy the contents of the &#039;&#039;&#039;data&#039;&#039;&#039; and &#039;&#039;&#039;Reports&#039;&#039;&#039; directories from your &#039;&#039;current install&#039;&#039; to the new install.  &lt;br /&gt;
#Don&#039;t forget to copy any other set-up files across too. &lt;br /&gt;
#*The advantage (as Mark says) is that you ensure you do use all the files in the new release, and don&#039;t miss out any he may have forgotten to mention in his release announcement.&lt;br /&gt;
#* A key advantage is that you don&#039;t retain files that an old release migt have needed but the new release does not use.&lt;br /&gt;
#*Another advantage (as PaulMy says [https://cumulus.hosiene.co.uk/viewtopic.php?p=140262#p140262 here for example]) is that you retain your old set-up intact and can easily restore it should you have a problem with new release.&lt;br /&gt;
#Various people advise that you don&#039;t delete your old installation for a week or so; as you may notice something from the older version that you haven&#039;t copied across! &lt;br /&gt;
#Check again that you copied across (you may not have all of these files, but if you have them in old installation then you need them in new installation) &#039;&#039;&#039;strings.ini&#039;&#039;&#039;, &#039;&#039;&#039;twitter.txt&#039;&#039;&#039;, &#039;&#039;&#039;Cumulus.ini&#039;&#039;&#039;, and similar files in the same folder level as CumulusMX.exe, as well as all the files in the &#039;&#039;&#039;data&#039;&#039;&#039; and &#039;&#039;&#039;Reports&#039;&#039;&#039; sub-folders. Then, provided you are happy, you can delete the old release when you want to reduce clutter on your storage discs.&lt;br /&gt;
&lt;br /&gt;
===The overwrite approach===&lt;br /&gt;
&lt;br /&gt;
The general advice is that if you want custom pages for the administrative interface, or custom templates to process  to produce your web pages, then these custom files should be given different names (and ideally be placed in different folders) to the standard files included in the release distributions. If you follow this advice, the approach described in this sub-section is the best for you, if you don&#039;t follow this advice, see later section on dealing with customised files.&lt;br /&gt;
&lt;br /&gt;
#* if you have a lot of set-up files, or other custom files, (i.e. files with names that are not part of release), these won&#039;t be overwritten by files in the release distribution, but you do want to keep them; &lt;br /&gt;
#*or if you are downloading on a different computer, or on a different disc, to where you are running MX, it is easiest to keep your MX installation in the same place&lt;br /&gt;
#Note the forum administrator, David, [https://cumulus.hosiene.co.uk/viewtopic.php?p=140355#p140355 (see this post)] recommends this particular approach. &lt;br /&gt;
#After downloading a new release unzip it on the device/disc where you down load it. Next stop your existing Cumulus MX software and take a backup of your existing installation. After that, simply copy the files (optionally only those that have newer dates because they have changed) into the existing MX directory on the device where you run MX.  Then you know all your existing files are there, and your MX can be run as before.&lt;br /&gt;
#The great advantage of this approach, and the reason that it is widely recommended as best, is that you can&#039;t lose any data or configuration files (i.e. files that are not part of the release distribution).&lt;br /&gt;
#Provided you did the backup, &#039;&#039;&#039;the only problem with this approach is that in some releases files are removed from the distribution&#039;&#039;&#039;, yet unless you check carefully, this approach may &#039;&#039;leave files that are no longer required&#039;&#039; in your installation, and it is just possible you might continue to use the obsolete file instead of the intended alternative. Such a non-standard installation is difficult for others to support. So do check through file by file to ensure you only have files in the distribution you have just installed, not any from earlier distributions. The only files that you still want (that are not in distribution) will be those that either configure your system or contain your data in log files.&lt;br /&gt;
#*The updated files can be tracked by their modification date, some will be specified in the release notes (find them on [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&amp;amp;t=17887 this forum]). There is a list indicating what files vary in [[Cumulus_MX_formal_release_versions|this Wiki article]].&lt;br /&gt;
#*In general, especially if updating a major release, it is best to overwrite with all files in zip, whether they are listed as changed or not.  This ensures you have a consistent set of files, and avoids any issues when the developer does not correctly list all the files that have changed, or a file might be regressed to an earlier version and not have a newer date than the file in your previous installation.&lt;br /&gt;
&lt;br /&gt;
====Example: downloading on PC and installing on pi ====&lt;br /&gt;
&lt;br /&gt;
#On your pc: Download zip either from  [[Software]] for latest version or from https://github.com/cumulusmx/CumulusMX/releases for earlier versions.&lt;br /&gt;
#On your pc: Use Filezilla (or similar file transfer program, or it might even be a copy over network depending on way set up) to transfer zip to pi  (e.g. &amp;lt;tt&amp;gt;FileZilla CumulusMXDist3089.zip to /home/pi&amp;lt;/tt&amp;gt;), but remember you might want to install to a different location (perhaps on an external USB drive, or SSD)&lt;br /&gt;
#Control C on pi to stop MX&lt;br /&gt;
#On pi go to directory where zip now is, for example it might be &amp;lt;tt&amp;gt;cd /home/pi&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Unzip the installation over your existing installation, by running on your Raspberry Pi this instruction: &amp;lt;tt&amp;gt;unzip -o CumulusMXDist3089.zip&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Restart MX&lt;br /&gt;
# Remove any files that were needed by earlier releases but release announcement says are not needed by the release you are installing&lt;br /&gt;
&lt;br /&gt;
===The customised approach===&lt;br /&gt;
&lt;br /&gt;
If you edit a file that is included in the release distribution, you should give it a different name (e.g. I have placed an underline in front of original file name for some of the files I edited in the admin interface), and/or place it in a different folder (e.g. I place all the cumulus templates I have created in a folder called &#039;&#039;&#039;cumulus_Templates&#039;&#039;&#039;). If you follow this advice, then you won&#039;t lose your files by following the advice above, regardless of whether you overwrite or not.&lt;br /&gt;
&lt;br /&gt;
If you won&#039;t listen to best practice advice, and have decided to for example modify the provided Cumulus web templates without allocating new names, then installing the whole release distribution will overwrite your edited file(s) with the standard file content provided by the developer. Therefore you need to do a customised approach where you select which files from the distribution to copy into your installation. If you have changed one or more web templates, you might think it safe just to omit the relevant files in the zip within folder &#039;&#039;&#039;web&#039;&#039;&#039;, but some builds change the files in the &#039;&#039;&#039;webfiles&#039;&#039;&#039; folder too, and you need to retain consistency.&lt;br /&gt;
&lt;br /&gt;
==== Updating when files within release might overwrite your own edits ====&lt;br /&gt;
&lt;br /&gt;
To further explain the customised approach, here are some more examples.&lt;br /&gt;
&lt;br /&gt;
===== web site files =====&lt;br /&gt;
&lt;br /&gt;
If you have edited any files that sit on your &#039;&#039;&#039;web site&#039;&#039;&#039;, then these can remain on your web site. However, if those web pages are generated from templates that you expect MX to process and upload for you, you do need to take special action. Maybe you edited a template to give the look you desire, or the content you want (e.g. adding rain this month to this month page, or combining this month and this year page).&lt;br /&gt;
&lt;br /&gt;
The first step is to see if the release notice says that file has been revised, if it has not then it is easy to keep your edited file by not copying in the replacement file from within the zip.  If the release revises any file you previously edited, take a backup of your edited file, before you copy the new file into your folder. You can then use a file comparing tool to see what has changed in the release and what you changed and hopefully manage to merge to a new file that keeps any functionality change in a new release and keeps your customisation. Do think about changing name of the template file, or placing it in a different folder, and using the &#039;&#039;&#039;Extra Files&#039;&#039;&#039; settings. That will make it easier for you next time you do an upgrade to a new MX build.&lt;br /&gt;
&lt;br /&gt;
If you have done major customisation to the standard website then you probably have followed the guidance and stored your new web page templates in a different directory and you use &#039;&#039;&#039;Extra Files&#039;&#039;&#039; to specify where they are, so they cannot be overwritten, and the new MX will still find them. It might be that new web tags have been added since whatever build you were running before, and that you decide to edit your customised template file, but that can be done any time after you install the new MX build.&lt;br /&gt;
&lt;br /&gt;
===== admin interface files =====&lt;br /&gt;
&lt;br /&gt;
If you have done any customisation to the &#039;&#039;&#039;interface&#039;&#039;&#039; (perhaps you don&#039;t like seeing solar in the tables when you don&#039;t measure that) then again you can skip over these files when copying. Hopefully you will have copies of the files that you have customised of the &#039;&#039;interface folder&#039;&#039; so you have ability to copy them back into installation if you do overwrite with the release version.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You do have to be careful&#039;&#039;&#039;, as many releases change the interface in some way, even if the change is not in the file you have customised, it might be in an asociated file, and all the various components of the interface have to work together as a coherent unit. For instance when feels like was added to MX, the api used for sending data from the MX engine to the admin interface was updated. In some releases, a new web page is added to the admin interface, with the consequence that all the navigation menus were adjusted in all web pages. Any HTML page in the admin interface may be edited to refer to a different styling page (so it, and the .css file, must be updated together) or to a different script (so the .HTML, and the .js file, must be updated together).  The settings pages in the admin interface are dependent on the correct pair of json files to define the options or values that appear on that web page, so again all must be consistent.  &lt;br /&gt;
&lt;br /&gt;
To sum up, admin interface files are interdependent, and you cannot always update some, but not all, of the admin interface pages. &lt;br /&gt;
&lt;br /&gt;
Be prepared to go back to the standard file for whatever you customised if something it depends upon has changed, after all you must not lose any vital functionality.&lt;br /&gt;
&lt;br /&gt;
On my site, my own versions of interface files have a &amp;quot;_&amp;quot; (underline character) added to the start of the standard MX file name. This applies to both HTML pages, and JavaScript files that I have edited. I edit the menu items within my edited pages so those all go to my versions where I have a HTML customised page, leaving unchanged the menu items that can still go to a standard MX web page where I don&#039;t have my own version of the .HTML page.  This makes it easy for me to navigate between my pages, as all of them link to my other pages.  If I am on a standard MX page and want to go to one of my customised pages, I select the equivalent standard page, then edit the URL to add the underline and get easily to my page.  This naming means I can always use a standard page instead of my customised page when I need to, and I never miss out on any new features.&lt;br /&gt;
&lt;br /&gt;
== After an upgrade if you use the standard web template files ==&lt;br /&gt;
&lt;br /&gt;
If you do not use the example web template files, provided as standard, with a MX release, the remainder of this section can be ignored.&lt;br /&gt;
&lt;br /&gt;
If you use the third party [[CumulusMX and Cumulus1 UI style Multilingual Websites]] web pages, as maintained by BCJKiwi, follow any instructions in his package as to which of the files in this section are required and any announcements in his forum topic about when such files need to be upgraded.&lt;br /&gt;
&lt;br /&gt;
=== web folder from zip ===&lt;br /&gt;
&lt;br /&gt;
If you do use the example web templates to produce web pages for your web server, and you have copied all files from the release distribution ....&lt;br /&gt;
&lt;br /&gt;
....MX will find any new web template files in your &#039;&#039;&#039;web&#039;&#039;&#039; folder,  MX will process those template files, and upload the web pages produced, &#039;&#039;as before with no further action by you&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== webfiles folder from zip ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;PLEASE COULD SOMEONE USING LATEST MX RELEASE ENSURE THIS IS KEPT UP TO DATE&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do need a further action, if any files in this folder have been updated.  The updated files must be uploaded to your web site.&lt;br /&gt;
&lt;br /&gt;
This may be easy to forget if you use the standard web templates, because you thought that upload was a one-off and maybe you cannot remember what you did. &lt;br /&gt;
&lt;br /&gt;
Certain third-party web-pages still use files from that folder, if one of the files they use has been updated, then ensure you have a backup of your web site before you upload the updated file, it should work, but it might not, and you might need to regress.&lt;br /&gt;
&lt;br /&gt;
Let me go through the files currently in webfiles folder:&lt;br /&gt;
*&#039;&#039;&#039;weatherstyle.css&#039;&#039;&#039; has not been updated since its last update by Steve Loft in 2009.&lt;br /&gt;
*subfolder &#039;&#039;&#039;images&#039;&#039;&#039; contains 2 pictures that have stayed same since MX launch&lt;br /&gt;
*subfolder &#039;&#039;&#039;js&#039;&#039;&#039; contains one file or two files (depending on which MX release you are using: &lt;br /&gt;
**The standard web page &#039;&#039;&#039;trends.htm&#039;&#039;&#039; will only work if the correct version of any file here has been uploaded to your web site, and placed in a sub-folder &amp;quot;js&amp;quot; of where &amp;quot;trends.htm&amp;quot; is installed. .&lt;br /&gt;
*** BCJKiwi&#039;s user interface &#039;&#039;&#039;charts.php&#039;&#039;&#039; also requires the same JavaScript file (or files?), so upload the file(s0 anytime there is a change in a MX release. &lt;br /&gt;
** The file &#039;&#039;&#039;\CumulusMX\webfiles\js\cumuluscharts.js&#039;&#039;&#039; has changed in a lot of releases, it is updated whenever there is a change in the JSON files used for providing data to the charts, and you must use the right upgrade.&lt;br /&gt;
** The file &#039;&#039;&#039;historiccharts.js&#039;&#039; (it was introduced from release 3.8.7) is similar to previous script, but drives the historic chart functionality on your web server&lt;br /&gt;
*subfolder &#039;&#039;&#039;lib&#039;&#039;&#039; currently contains 3 folders:&lt;br /&gt;
**&#039;&#039;&#039;highstock&#039;&#039;&#039; - this folder is no longer needed on your web site (and the most recent MX releases have emptied it)&lt;br /&gt;
**&#039;&#039;&#039;jquery&#039;&#039;&#039; - this folder is needed for &amp;quot;trends,htm&amp;quot; to work, but it has not been updated since 2014. Both the files included are obsolete packages, no longer officially available, and there are no plans to replace them.&lt;br /&gt;
**&#039;&#039;&#039;steelseries&#039;&#039;&#039; - this folder has 3 sub-folders, I can only think of 2 MX releases when anything was changed here, and I don&#039;t anticipate any further changes.&lt;br /&gt;
&lt;br /&gt;
= After upgrade - checking for bugs in MX or mistakes in your installation =&lt;br /&gt;
&lt;br /&gt;
Start the new installation of MX and watch out for any errors - If the device you run MX on has a monitor, then look in the terminal/command window. In all cases look at the latest file in the [[MXdiags_folder|MXdiags folder]] to see if any errors are reported. &lt;br /&gt;
&lt;br /&gt;
In newer releases of MX, also see [[ServiceConsoleLog.txt]]&lt;br /&gt;
&lt;br /&gt;
Also keep an eye on the support forum for first few days, some releases do have bugs, as developer cannot test all possible configurations.&lt;br /&gt;
&lt;br /&gt;
== Updating if you use a virus Checker ==&lt;br /&gt;
You may find that virus checkers such as Windows Defender reject your new version of MX. They need to be told it is safe.&lt;/div&gt;</summary>
		<author><name>Relleray</name></author>
	</entry>
	<entry>
		<id>https://www.cumuluswiki.org/index.php?title=MX_on_Windows_OS&amp;diff=11158</id>
		<title>MX on Windows OS</title>
		<link rel="alternate" type="text/html" href="https://www.cumuluswiki.org/index.php?title=MX_on_Windows_OS&amp;diff=11158"/>
		<updated>2023-02-03T15:49:39Z</updated>

		<summary type="html">&lt;p&gt;Relleray: removed extraneous space after - on service creation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:WorkInProgressBanner}}{{Template:Version badge Mx}}&lt;br /&gt;
&lt;br /&gt;
The banner above has been included as, at the time of typing this, everything on this Wiki page has been typed by a single contributor, who no longer uses  Microsoft Windows to run MX.  Cumulus MX is evolving rapidly, and any documentation in any page of this Wiki tends to quickly become outdated.  It is therefore essential that at least one other contributor takes over updating this Wiki page.&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page is a simple summary for installing and running (non-beta) releases of MX on any computer running the Microsoft Windows Operating System (e.g. personal computer, notebook computer, laptop computer, Raspberry Pi with Windows instead of Linux, etc.).&lt;br /&gt;
&lt;br /&gt;
If you are not running MX using the Microsoft Windows Operating System, then please read [[MX on Linux]] page in this Wiki instead.&lt;br /&gt;
&lt;br /&gt;
There are various related pages to get more information:&lt;br /&gt;
*Go to [[:Category:Terminology]] for links to pages that explain terminology used by Cumulus (some of these need updating for MX)&lt;br /&gt;
*Go to [[:Category:Cumulus MX]] for links to all pages in this Cumulus Wiki that relate specifically to MX&lt;br /&gt;
*[[MX Administrative Interface|Admin interface]] provides information on configuration and web pages for viewing your weather data locally&lt;br /&gt;
*Go to [[:Category:Cumulus Files]] for links to all pages describing the sub-folders and files used by MX&lt;br /&gt;
*If you encounter a problem when running MX, see [[What to do when I have a problem with MX]]&lt;br /&gt;
*The [[Cumulus MX FAQ]] page was created with snippets from the forum, but nobody has yet sorted this out into a useful page or updated it for recent releases&lt;br /&gt;
*If you want to use a script language, you might want to read [[PHP|PHP Hypertext Preprocessor and JavaScript]] page&lt;br /&gt;
&lt;br /&gt;
= Requirements for running MX on Windows =&lt;br /&gt;
&lt;br /&gt;
MX can be run on most computers with a modern version of the Microsoft operating system, but this Wiki page is trying not to get too technical, so it will focus on just two aspects, the locale and .NET.&lt;br /&gt;
&lt;br /&gt;
==Locale==&lt;br /&gt;
&lt;br /&gt;
Cumulus MX is much more fussy than the legacy Cumulus 1 about items like [[Amending_dayfile#Correcting_date_separator_errors|date separators like hyphen or slash]] and  [[:Category:Ini_Files#File_content_differences_between_Cumulus_1_and_MX|decimal separators like comma or point]]. For example, Microsoft computers usually default to USA locale, that specifies date format as month, day of month, year.  Cumulus may default to GB format (day of month, month, year) or to  ISO 8601 format of &amp;quot;yyyy-MM-ddTHH:mm:ss&amp;quot;.   Note that as of 2020, there are plans for MX to standardise on slash for date separator,and decimal points, and increasingly MX is using UTC, so check release announcements.&lt;br /&gt;
&lt;br /&gt;
There is also the character set and [[Reports_folder#Encoding| File Encoding]], MX defaults to UTF-8 and it does not use &amp;quot;Byte Order Mark&amp;quot; that Microsoft traditionally has used by default.  Microsoft used to actively pursue an approach of being non-standard in everything to keep people from using rival products, so there may be other issues if you have previously used a different computer.&lt;br /&gt;
&lt;br /&gt;
Anyway it is vital that your Microsoft computer is set up correctly, if you have used Cumulus (1 or MX) before and wish to have access to existing data, reports and extreme records.  You can choose a locale within the &#039;&#039;&#039;Settings&#039;&#039;&#039; app (cogwheel icon) on your computer, but you will get on better working through individual settings using &#039;&#039;Control Panel --&amp;gt;&amp;gt; Region&#039;&#039;.  There you can choose between 24-hour clock, am/pm, or AM/PM, as well as between different date formats, and between different field separators (both decimal commas and field separator set to comma must be avoided!).&lt;br /&gt;
&lt;br /&gt;
Ask in support forum if you need more advice, the evidence in there is that MX on Windows raises lots of queries!&lt;br /&gt;
&lt;br /&gt;
==.NET==&lt;br /&gt;
&lt;br /&gt;
Microsoft originally created &#039;&#039;&#039;.NET&#039;&#039;&#039; for all operating systems, but Microsoft then decided to restrict it to just Windows (and that was the position while MX was being developed, and was still true in early 2020), mostly to encourage greater dominance by Microsoft software and hardware. &lt;br /&gt;
&lt;br /&gt;
Mono was then born based on .NET to work with all operating systems, Mono subsequently changed independently from .NET (although Microsoft still has a leading role). &lt;br /&gt;
&lt;br /&gt;
Later,  Microsoft launched an alternative called .NET Core that took out of .NET the parts that were Windows specific, and it ceased work on further development of .NET beyond version 4.x.x.&lt;br /&gt;
&lt;br /&gt;
The most recent change, in November 2020, involved a change around of names, and the multi-operating system .NET Core product took over the .NET name as version 5&lt;br /&gt;
&lt;br /&gt;
To run MX on Windows, you need .Net version of at least 4.5.2 installed. This is only available for the Vista SP2, Windows 7 SP1, Windows 8, and Windows 8.1 operating systems.&lt;br /&gt;
&lt;br /&gt;
For Windows 10 you use .NET version 5 (or its updates), as installed by your windows update feature.  (MX will also run on version 4.8; the .Net download for version 4.8 should be here https://dotnet.microsoft.com/download/dotnet-framework/net48).&lt;br /&gt;
&lt;br /&gt;
==Are you using elevated administrative rights?==&lt;br /&gt;
&lt;br /&gt;
For those who downloaded the first MX Beta in January 2015, the code was only experimental and that version had to be run by a Windows Administrative User, but Steve Loft soon improved the code and now none of the code requires any elevated rights and it can be run by a normal user (or  a user with administrative rights) without needing to be started by &#039;&#039;&#039;Run as administrator&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
However, Cumulus MX initiates a web server, which is what runs the [[MX_Administrative_Interface|Admin Interface]]. To access that, all users need to be given elevated rights to the port on which the web server runs. By default this is port 8998, so that is used in the example below of the one-off command needed to give all users access to the port. You can use a &#039;&#039;&#039;-port=nnnn&#039;&#039;&#039; parameter when starting MX to make it use another port, if you use that then the command below needs revising accordingly.&lt;br /&gt;
&lt;br /&gt;
To enter the command, first open a command window as administrator. One way to do this is to right click the windows symbol at the start of the windows task bar. The option to choose there is dependent on some settings which determine what appears when you right click:&lt;br /&gt;
*the normal default on Windows 10 is &#039;&#039;&#039;Windows PowerShell (admin)&#039;&#039;&#039;,&lt;br /&gt;
*the normal default on earlier versions of Windows is  &#039;&#039;&#039;Command Prompt (Administrator)&#039;&#039;&#039; &lt;br /&gt;
*an alternative is &#039;&#039;&#039;Windows Terminal&#039;&#039;&#039;&lt;br /&gt;
Whichever of these you can use, the result is it opens a new window on your monitor with a prompt for typing. In that window type the command:&lt;br /&gt;
:&amp;lt;code&amp;gt;netsh http add urlacl url=http://*:8998/ user=\users&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You only need to do that once. If you do not issue this command, administrative rights are needed every time to access the port so you can use the admin interface.&lt;br /&gt;
&lt;br /&gt;
Talking about command windows, if you want to check that the port is open for listening (i.e. able to access the admin interface) type &amp;lt;code&amp;gt;netstat -an | findstr 8998&amp;lt;/code&amp;gt; into the command window.&lt;br /&gt;
&lt;br /&gt;
=Cumulus Software=&lt;br /&gt;
&lt;br /&gt;
Note use of plural in section name above, the following subsections will install various packages produced by Developer Mark Crossley.&lt;br /&gt;
&lt;br /&gt;
==Packages to install==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;We shall install the Cumulus software listed on [[Software]] page&amp;lt;/big&amp;gt;:&lt;br /&gt;
# &#039;&#039;&#039;CumulusMX&#039;&#039;&#039;:&lt;br /&gt;
#* &#039;&#039;&#039;CumulusMX.exe&#039;&#039;&#039; is written in C#, that has been developed by Mark Crossley, some code is contributed by other developers, some is library code used when it can be, and there remains some code by Steve Loft&lt;br /&gt;
#* Download &#039;&#039;&#039;CumulusMX zip file’’’ from the link at[[Software#Latest_build_distribution_download]]&lt;br /&gt;
# [[Software#Create_Missing|&#039;&#039;&#039;Create Missing&#039;&#039;&#039;]]:&lt;br /&gt;
#* &#039;&#039;&#039;CreateMissing.exe&#039;&#039;&#039; is also written in C#, created, and developed, by Mark Crossley&lt;br /&gt;
#* Download &#039;&#039;&#039;Create Missing zip file&#039;&#039;&#039; from the link at [[Software#Create_Missing]]&lt;br /&gt;
#** This takes you to a github page with a &amp;quot;ReadMe&amp;quot; providing minimal instructions&lt;br /&gt;
#*  Using &#039;&#039;&#039;CreateMissing.exe&#039;&#039;&#039; is fully documented at [[Calculate_Missing_Values#CreateMissing.exe]] in this Wiki&lt;br /&gt;
#* (it will populate missing fields in [[standard log files]] and/or missing lines in [[dayfile.txt]]).&lt;br /&gt;
# &#039;&#039;&#039;ExportToMySQL&#039;&#039;&#039;&lt;br /&gt;
#*  &#039;&#039;&#039;ExportToMySQL.exe&#039;&#039;&#039; is also written in C# by Mark Crossley&lt;br /&gt;
#* Download &#039;&#039;&#039;Export To My SQL zip file&#039;&#039;&#039; from the link at [[Software#ExportToMySQL]]&lt;br /&gt;
#** This takes you to a github page with a &amp;quot;ReadMe&amp;quot; providing minimal instructions&lt;br /&gt;
#* &#039;&#039;&#039;ExportToMySQL.exe&#039;&#039;&#039; is not (at the time this was written) documented in this Wiki although [[MX_Administrative_Interface#MySQL_settings]] does describe a similar utility (written by Steve Loft) that was actually included within early CumulusMX zip downloads.&lt;br /&gt;
&lt;br /&gt;
As at 9 March 2020, another utility, &#039;&#039;&#039;CreateRecord&#039;&#039;&#039;, has been initialised in the Github areas managed by the developer where Cumulus is worked on, although it appears to be just a concept (any code on the developer&#039;s computer has not yet been included) on github.  This will, if my understanding is correct, read [[dayfile.txt]] and use that to update the various [[:Category:Ini Files|extreme record files]].&lt;br /&gt;
&lt;br /&gt;
== Where to store download ==&lt;br /&gt;
&lt;br /&gt;
There are no firm rules.&lt;br /&gt;
* Most browsers, if you don&#039;t change any options, will download to a sub-folder that is called &amp;quot;Download&amp;quot; within the Current User&#039;s folder  (or a location elsewhere that is associated with a link of that name)&lt;br /&gt;
** Some people change the default, so they can place all downloads onto a separate partition, or a separate disc, mostly because it helps to keep downloads safe in case your main computer disc fails.&lt;br /&gt;
* A beginner may find it easier to create a new folder specifically for storing MX download zips, so it is easy to find if your standard download location is used a lot.&lt;br /&gt;
* It probably is not sensible for a beginner to store the download zip in a &amp;quot;temp&amp;quot; folder, although that is sometimes suggested for downloads that do not need to be kept.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Earlier MX releases ==&lt;br /&gt;
&lt;br /&gt;
Check if posts in the [https://cumulus.hosiene.co.uk/viewforum.php?f=40 Cumulus Support Forum] tell you that the current release of MX has one or more bug(s) that affects one or more aspect(s) of MX functionality that you intend to use. &lt;br /&gt;
&lt;br /&gt;
Remember, it is impossible for the developer to check all the ways in which versatile MX can be used:&lt;br /&gt;
* Different weather station types (the developer only has a Davis),&lt;br /&gt;
* Different computer types (development is mostly on Microsoft Windows), &lt;br /&gt;
* Plus a whole host of optional features, and different external upload sites, (typically each of these optional features are only used by a sub-set of Cumulus users).&lt;br /&gt;
&lt;br /&gt;
Anyway, &#039;&#039;&#039;you can download any earlier build, without the bug&#039;&#039;&#039;, from [https://github.com/cumulusmx/CumulusMX/releases CumulusMX/releases].&lt;br /&gt;
&lt;br /&gt;
You need to ensure that you use the right version of &amp;quot;CreateMissing.exe&amp;quot; and &amp;quot;ExportToMySQL.exe&amp;quot; utilities for the MX release you do install, as some modules are shared. Therefore if you are using an old MX release, you will need to go directly to the [https://github.com/cumulusmx Cumulus MX github] page, and navigate to the utility of interest, to see if you need to download an older version of these utilities that matches to your older MX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Unzip the package, and install MX=&lt;br /&gt;
&lt;br /&gt;
Please note there are rules governing where you can install MX.&lt;br /&gt;
&lt;br /&gt;
==Have you already got Cumulus MX?==&lt;br /&gt;
&lt;br /&gt;
# It is good practice to backup your existing MX installation, (i.e. make a copy that is placed somewhere else, so it is easy to check what you had before; and if you find a bug in new release, or you make a mistake during the new installation, it is easy to regress to the earlier version)&lt;br /&gt;
# Now install the new MX over where the old MX was&lt;br /&gt;
#* This makes life simpler, as you know you will retain all files needed that are not included inthe new release&lt;br /&gt;
&lt;br /&gt;
If you already have MX installed, you should be following the [[Updating MX to new version|Upgrade]] page advice:&lt;br /&gt;
* It is not a good idea to skip too many in-between releases&lt;br /&gt;
* Read the relevant release announcement at [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&amp;amp;t=17887 Cumulus MX Announcements and Download - PLEASE READ FIRST], for all in-between releases just in case particular releases have one-off tasks associated with that release.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Where should you install MX if you have not used MX before?==&lt;br /&gt;
&lt;br /&gt;
# When download completes, use the mouse (those unable to use the mouse should do the equivalent keyboard action) to click on the download file name, this should ask if you want to extract (unzip) it. &lt;br /&gt;
# If there is an option as to whether to preserve folder structure, then select to preserve it, and be aware that this extracts into a folder with a name  &#039;&#039;&#039;CumulusMX3xyz&#039;&#039;&#039;  where the digits represented there by &amp;quot;xyz&amp;quot; identifies the build&lt;br /&gt;
# You should therefore extract to the download location (see earlier), and then copy, or file transfer all the files in sub-folder of that into appropriate place, following hierarchy in final location&lt;br /&gt;
# The final location has a small number of important rules, although there is some flexibility if you have multiple drives.&lt;br /&gt;
#* MX uses a number of different computer languages and multiple components. It is best to keep the path to where you install it short, to remove any possibility of path name being truncated as it is passed between components.&lt;br /&gt;
#* Best practice is to place MX files in the root directory of any disc or partition where you can have frequent updating, i.e. &#039;&#039;&#039;G:\CumulusMX&#039;&#039;&#039; (where G is the chosen drive, might be &#039;&#039;C:&#039;&#039; and &#039;&#039;&#039;CumulusMX&#039;&#039;&#039; is a short informative folder name that matches the top folder under the name  &#039;&#039;&#039;CumulusMX3xyz&#039;&#039;&#039; in the release download after extraction from zip.&lt;br /&gt;
#* There is one place, where you must not store MX, and that is &amp;quot;avoid the &#039;Program File&#039; hierarchy&amp;quot;.&lt;br /&gt;
#*# Let me explain that:&lt;br /&gt;
#*# Microsoft tell developers to put code in &#039;&#039;&#039;C:\Program Files&#039;&#039;&#039; or &#039;&#039;c:\Program Files (x86)&#039;&#039; as these are read only folders except when software is being installed, and Microsoft tells developers to put data files for that software in &#039;&#039;&#039;c:\ProgramData&#039;&#039;&#039;&lt;br /&gt;
#*# Cumulus MX has not been developed in accordance with those Microsoft specific rules&lt;br /&gt;
#*# Consequently, if you did wrongly install MX in the above hierarchy, the read-only rule would mean that Microsoft stores any files that MX updates in another place and MX would not find them, here are two examples:&lt;br /&gt;
#*#* When you use the Settings pages in MX, instead of creating/updating a [[Cumulus.ini]] file in the same folder as &amp;quot;CumulusMX.exe&amp;quot;, Microsoft would create/update the file in &#039;&#039;C:\Users\user_name\AppData\Local\VirtualStore\Program Files\CumulusMX\Cumulus.ini&#039;&#039;&lt;br /&gt;
#*#* As MX runs, instead of creating files in say the [[Data folder|data sub-folder]], Microsoft redirects any file changes, after the software installation, into &#039;&#039;C:\Users\user_name\AppData\Local\VirtualStore\Program Files\CumulusMX\data&#039;&#039; (and similar redirection for other sub-folders)&lt;br /&gt;
#*# The problem then is that your Microsoft Windows computer now has two &amp;quot;data&amp;quot; (and other) sub-folders, but MX cannot know which sub-folder to look in, (as any file not updated is in installation sub-folder, while any file that has been updated is in the redirection sub-folder).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=How to run MX=&lt;br /&gt;
&lt;br /&gt;
We need to run MX in order for it to generate a web server that will enable us to see the [[MX_Administrative_Interface|admin interface]] where we can change [[Cumulus.ini|settings]], view our weather data, or edit various [[:Category:Cumulus_Files|Cumulus files]] (extreme records or log files). &lt;br /&gt;
 &lt;br /&gt;
If this is your first run of MX, please see [[First_Run_of_MX|First Run of MX page]].&lt;br /&gt;
&lt;br /&gt;
There are two ways to run MX:&lt;br /&gt;
# either Interactively&lt;br /&gt;
# or As Service&lt;br /&gt;
&lt;br /&gt;
It is recommended that you run MX interactively to begin with, as this means you will see any messages it outputs, and can respond to those.  Once you are happy that MX is running smoothly, then run it as a service, as that will run in background, and you don&#039;t need to watch for messages.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:30px&amp;quot; | Step&lt;br /&gt;
!style=&amp;quot;width:600px&amp;quot; | Interactively&lt;br /&gt;
!style=&amp;quot;width:400px&amp;quot; | As Service&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; |Setting up&lt;br /&gt;
| To run Cumulus MX, Windows needs to know&lt;br /&gt;
# which &#039;&#039;&#039;.exe&#039;&#039;&#039; you want to run (ExportToMySQL.exe, CalculateMissing.exe, or CumulusMX.exe)&lt;br /&gt;
# the path where all the required &#039;&#039;&#039;.dll&#039;&#039;&#039; files are located&lt;br /&gt;
&lt;br /&gt;
Therefore it is best to always start MX using what Windows calls a &#039;&#039;&#039;shortcut&#039;&#039;&#039;, because when creating the shortcut you can enter all the required information into the properties.  &lt;br /&gt;
&lt;br /&gt;
There are 3 ways on Windows to create a shortcut to run the CumulusMX executable:&lt;br /&gt;
#Create a shortcut on your desktop (and/or the taskbar) for the &#039;&#039;&#039;CumulusMX.exe&#039;&#039;&#039; executable &amp;lt;code&amp;gt;cmd.exe /C start CumulusMX C:\CumulusMX\CumulusMX.exe -debug&amp;lt;/code&amp;gt;, the &amp;quot;-debug&amp;quot; is &#039;&#039;optional&#039;&#039;, it starts the logging in debugging mode so the log created in MXDiags folder has more information. There are other optional parameters all listed later.&lt;br /&gt;
#*In that shortcut define the path where the executable is located as the path to start in.&lt;br /&gt;
#* &#039;&#039;&#039;Remember, if you have not done the &amp;lt;code&amp;gt;&#039;&#039;netsh http add urlacl url=http://*:8998/ user=\users&#039;&#039;&amp;lt;/code&amp;gt; command mentioned above, you must run as administrator.&#039;&#039;&#039;&lt;br /&gt;
#* Add any of the parameters that can be used with the executable, as listed later, such as specifying a different port for the admin interface , or starting with debugging.&lt;br /&gt;
#* Choose whether to start as minimised or as a command window&lt;br /&gt;
#* You can also choose text colour (foreground) and background colour, you can choose where the window appears (so if you have two monitors you can choose which one it appears on), and how big that window is. There is a forum post by water01 about this.&lt;br /&gt;
#* Now you can click the shortcut to start the engine, it will open a Command window or Powershell window or Terminal window (default depends on release of Windows OS, but you can change which is used in Settings)&lt;br /&gt;
#* Please note: &#039;&#039;&#039;This window must be left open&#039;&#039;&#039;, closing it will stop MX.&lt;br /&gt;
# OR place the shortcut as defined here in the start up folder for the user account so MX automatically starts when you connect/log in (see a later section for how to find that start up folder).&lt;br /&gt;
#* If you want MX to automatically start whenever you log into your PC, then the place to store your shortcut is &amp;lt;code&amp;gt;C:\Users\...\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Run_CumulusMX&amp;lt;/code&amp;gt;.  Don&#039;t forget to put your Microsoft username where I have put ...&lt;br /&gt;
#* With this you might want to right click on that shortcut, select properties, then you can set the starting position for the command window, the colours and font it will use, and even choose to start minimised, amongst many other selections.&lt;br /&gt;
# OR declare a task in the scheduler to start MX; &lt;br /&gt;
#* in the &#039;&#039;&#039;Actions&#039;&#039;&#039; tab fill in fields as follows (the other tabs should be obvious):&lt;br /&gt;
#** &#039;&#039;&#039;Action&#039;&#039;&#039; &amp;lt;code&amp;gt;Start a program&amp;lt;/code&amp;gt; from drop-down&lt;br /&gt;
#** &#039;&#039;&#039;Program/script&#039;&#039;&#039; &amp;lt;code&amp;gt;cmd.exe&amp;lt;/code&amp;gt; (this is standard Windows environment to run something)&lt;br /&gt;
#** &#039;&#039;&#039;Add arguments&#039;&#039;&#039; &amp;lt;code&amp;gt;/C start Start_MX \CumulusMX\CumulusMX.exe -debug -port=nnnn&amp;lt;/code&amp;gt; (the &amp;quot;/C&amp;quot; means this task will close once it has started the task, the &amp;quot;Start_MX&amp;quot; is how the task will be labelled as it is running, the next argument &amp;quot;\CumulusMX\CumulusMX.exe&amp;quot; actually starts the executable and it does not need a drive prefix as that is in next box.&lt;br /&gt;
#** Note in this example I have included next two optional parameters that can be used after the .exe call in that same box, here &#039;&#039;&#039;-debug&#039;&#039;&#039; (only include if you want full debugging logging) and &#039;&#039;&#039;-port=nnnn&#039;&#039;&#039; where nnnn is the port to be used for admin interface (only include if want to change from default 8998),&lt;br /&gt;
#** all optional parameters are listed later&lt;br /&gt;
#**&#039;&#039;&#039;Start in&#039;&#039;&#039; &amp;lt;code&amp;gt;\CumulusMX&amp;lt;/code&amp;gt; (include a drive specifier if necessary)&lt;br /&gt;
|&lt;br /&gt;
# &#039;&#039;&#039;Navigate to the folder with your MX installation&#039;&#039;&#039;.&lt;br /&gt;
# &#039;&#039;&#039;Install MX service&#039;&#039;&#039; (as an administrative user) using &amp;lt;code&amp;gt;CumulusMX.exe -install&amp;lt;/code&amp;gt;&lt;br /&gt;
# &#039;&#039;&#039;MX is now set up as a service&#039;&#039;&#039;.&lt;br /&gt;
# There are other optional parameters (e.g. -port, -debug, -locale) you can add by editing registry&lt;br /&gt;
#* To add parameters to the service when it starts automatically you will have to edit the registry&lt;br /&gt;
#*# Right click the Windows button at left hand edge of taskbar (often at bottom of your screen)&lt;br /&gt;
#*# Choose &#039;&#039;&#039;Run&#039;&#039;&#039;&lt;br /&gt;
#*# Type &#039;&#039;&#039;regedit&#039;&#039;&#039; (and press ENTER)&lt;br /&gt;
#*# Navigate to &#039;&#039;&#039;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CumulusMX&#039;&#039;&#039;&lt;br /&gt;
#*#* Hint, you can expand at any level by clicking the &#039;&#039;&#039;&amp;gt;&#039;&#039;&#039; in the navigation panel&lt;br /&gt;
#*#* Similarly, contract by clicking on &#039;&#039;&#039;&amp;amp;or;&#039;&#039;&#039; in the navigation panel&lt;br /&gt;
#*# Right Click on &#039;&#039;&#039;ImagePath&#039;&#039;&#039;&lt;br /&gt;
#*# Select &#039;&#039;&#039;Modify&#039;&#039;&#039;&lt;br /&gt;
#*# You should see &#039;&#039;&#039;&amp;quot;C:\CumulusMX\CumulusMX.exe&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
#*#* This assumes that you have installed your MX in that system partition path, adjust the &#039;&#039;&#039;C:&#039;&#039;&#039; if you have installed your MX in another partition, in above and in examples below&lt;br /&gt;
#*# Now you can add parameters as per [[#Optional_parameters_to_add_to_the_instruction_to_run_the_MX_engine]]&lt;br /&gt;
#*#* For example modify to &#039;&#039;&#039; &amp;quot;C:\CumulusMX\CumulusMX.exe&amp;quot; -port 9000&#039;&#039;&#039; to add port&lt;br /&gt;
#*#* For example modify to &#039;&#039;&#039; &amp;quot;C:\CumulusMX\CumulusMX.exe&amp;quot; -debug&#039;&#039;&#039; to add full debugging&lt;br /&gt;
# The service will stop itself if it detects that the computer is going into standby:&lt;br /&gt;
# In your MX release distribution, navigate to &#039;&#039;&#039;CumulusMX\MXutils\windows&#039;&#039;&#039;.&lt;br /&gt;
# Find file &#039;&#039;&#039;CreateCmxResumeFromStandbyTask.ps1&#039;&#039;&#039; for resuming MX after Microsoft Windows has gone into standby.&lt;br /&gt;
#  The script MUST be run with Administrator privileges.&lt;br /&gt;
# Type &amp;lt;code&amp;gt;CreateCmxResumeFromStandbyTask&amp;lt;/code&amp;gt;, and press &#039;&#039;&#039;Enter&#039;&#039;&#039;, this will create a Scheduled Task. &lt;br /&gt;
#* The scheduled task will exist from now on, and will automatically restart the service (on resume from standby/hibernate).&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | (Re-)Starting MX&lt;br /&gt;
|  # First &#039;&#039;&#039;start the MX engine&#039;&#039;&#039; using your shortcut (created in one of the 3 ways as above), if it has not started when you started your computer&lt;br /&gt;
# Next &#039;&#039;&#039;start the admin interface&#039;&#039;&#039;, it does not need to run all the time, but only when you need it , it normally runs on port 8998 (to vary that there is a &#039;&#039;&#039;-port&#039;&#039;&#039; parameter that is followed by required port and that port parameter has to be entered every time you start MX if you are not using the default port). More information on admin interface [[MX Administrative Interface|in separate article]].&lt;br /&gt;
&lt;br /&gt;
Try &#039;&#039;&#039;start /min C:\Cumulus\CumulusMX&#039;&#039;&#039; to run MX as a minimised package (although in Windows you can change the properties of the shortcut you use to start minimised).&lt;br /&gt;
&lt;br /&gt;
Note that you may sometimes want to use one or more of the optional parameters when starting MX.&lt;br /&gt;
| There are two ways to start MX service:&lt;br /&gt;
* Either, use the Services applet:- services.msc (You can pass parameters using this tool, but they are not saved for future use)&lt;br /&gt;
* Or, use the service command line tool:- &amp;lt;code&amp;gt;sc start CumulusMX&amp;lt;/code&amp;gt; using Command window or Powershell window or Terminal window (one of these will be offered when you right click the Windows/Start symbol) and type &#039;&#039;&#039;exit&#039;&#039;&#039; to leave that window.&lt;br /&gt;
&lt;br /&gt;
Note that you may sometimes want to use one or more of the optional parameters when starting MX, as per previous row.&lt;br /&gt;
|- &lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Checking MX is still running&lt;br /&gt;
| Simply look in the Command window or Powershell window or Terminal window you used to start MX and left open.&lt;br /&gt;
| You can use &amp;lt;code&amp;gt;sc query CumulusMX&amp;lt;/code&amp;gt; at any time to check that the service is running.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Deleting shortcut/service&lt;br /&gt;
| If you have set up your short-cut in the &#039;&#039;&#039;Startup&#039;&#039;&#039; folder, you need to delete that short-cut (or move it to a sub-folder), to stop MX automatically starting when you restart your computer&lt;br /&gt;
| To remove the Cumulus system service:&lt;br /&gt;
* Either run &amp;lt;code&amp;gt;CumulusMX.exe - uninstall&amp;lt;/code&amp;gt; as an Administrator using Command window or Powershell window or Terminal window (one of these will be offered when you right click the Windows/Start symbol) and type &#039;&#039;&#039;exit&#039;&#039;&#039; to leave that window.&lt;br /&gt;
* Or select &#039;&#039;&#039;Services&#039;&#039;&#039; from &amp;quot;Start&amp;quot;, as an administrator, in the &#039;&#039;services applet&#039;&#039; that loads navigate to the one labelled Cumulus, and delete that.&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
! scope=&amp;quot;row&amp;quot;| Stopping MX&lt;br /&gt;
| The recommended way is to click into the command window in which MX is running, &#039;&#039;hold down Control key&#039;&#039; and press &#039;&#039;&#039;C&#039;&#039;&#039;. It is normal for there to be a short wait, then a message &amp;quot;Cumulus Terminating&amp;quot; and then after another short wait, it will say &amp;quot;Cumulus Stopped&amp;quot; and immediately after that the command window  will be closed by MX.&lt;br /&gt;
&lt;br /&gt;
Some people, click in the task bar and select close, or click the &#039;&#039;&#039;X&#039;&#039;&#039; button on top right of command window. Although these are not official advice, they do seem to work.&lt;br /&gt;
&lt;br /&gt;
There are packages that can be programmed to send a control C to a running task, and to not continue until the task window has closed. Remember to also program in a subsequent delay in that package, to make sure the package waits for MX to close, or do a check that MX has released all the files it might need to update.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;You should not&#039;&#039; issue a &#039;&#039;&#039;TASKKILL&#039;&#039;&#039; instruction, as that will prevent MX correctly writing out to all the files it should update on exit. Consequently, it will not restart correctly and may actually lose settings and data.&lt;br /&gt;
| There are two ways to stop MX service:&lt;br /&gt;
* Either, use the Services applet:- services.msc&lt;br /&gt;
* Or, use the service command line tool:- &amp;lt;code&amp;gt;sc stop CumulusMX&amp;lt;/code&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Optional parameters to add to the instruction to run the MX engine =&lt;br /&gt;
&lt;br /&gt;
As seen above, in Microsoft Windows, we leave off the file extension when we want to run one of the Cumulus executables, but we might need to add a parameter (starts with a minus symbol), and that parameter might need to be followed with a value.&lt;br /&gt;
&lt;br /&gt;
== -install parameter for installing as Windows Service==&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;CumulusMX -install&#039;&#039;&#039; to install MX as a Windows service.&lt;br /&gt;
&lt;br /&gt;
By default, MX&#039;s Microsoft Windows service is installed to run under the System account. &lt;br /&gt;
&lt;br /&gt;
System does not have permissions for network access, that it turn means that any batch file that MX initiates as an external program will be restricted to actions that a System account can do, that excludes actions that a network access account can do.&lt;br /&gt;
&lt;br /&gt;
== -uninstall parameter for uninstalling the Windows Service==&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;CumulusMX -uninstall&#039;&#039;&#039; to uninstall the service that runs MX.&lt;br /&gt;
&lt;br /&gt;
== -Port parameter for changing HTTP Port ==&lt;br /&gt;
&lt;br /&gt;
When Cumulus starts, it will display the URL of the user interface. &lt;br /&gt;
&lt;br /&gt;
It runs on port 8998 by default; if this is not suitable for some reason you can over-ride it using the &#039;-port&#039; parameter on the command line, e.g. to use port 9999 instead:&lt;br /&gt;
:&amp;lt;code&amp;gt;CumulusMX -port 9999&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== -debug parameter for adding debugging ==&lt;br /&gt;
&lt;br /&gt;
This is only available for [https://cumulus.hosiene.co.uk/viewtopic.php?p=138839#p138839 release 3.4.4 - Build 3068] onwards. This switches on debug and data logging from the start-up of Cumulus MX by adding a parameter: &lt;br /&gt;
:&amp;lt;code&amp;gt;CumulusMX -debug&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MX has a default level of logging that stores in the [[MXdiags_folder]] folder a log file that shows some of the interaction with the weather station and some of the output actions done as MX runs. A new log is started each time MX is restarted.&lt;br /&gt;
&lt;br /&gt;
If there is a problem, then there is a great benefit in actually increasing the level of detail in these logs; and that is done either within the settings (on recent MX releases this is on &#039;&#039;&#039;Program Settings&#039;&#039;&#039; page of admin interface - please see [[:Category:Diagnostics]] page for details) or the above command.&lt;br /&gt;
&lt;br /&gt;
== Beta builds of MX ==&lt;br /&gt;
&lt;br /&gt;
The following two parameters are not available since MX came out of 3.0.0 beta.&lt;br /&gt;
&lt;br /&gt;
=== -wsport parameter for web sockets ===&lt;br /&gt;
&lt;br /&gt;
Beta builds in MX version 3.0.0 had an optional parameter &amp;lt;code&amp;gt;CumulusMX -wsport nnnn&amp;lt;/code&amp;gt; that determined which port (represented by a 4 digit number &#039;&#039;nnnn&#039;&#039;) was used for &#039;&#039;&#039;Web Sockets&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Note use of this parameter is now deprecated, as it has been incorporated into &#039;&#039;&#039;-port&#039;&#039;&#039; parameter described earlier.  The reason is that [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&amp;amp;t=17887&amp;amp;p=138815&amp;amp;hilit=sockets#p138815 Web Sockets in all builds since 3045] use the same port for web sockets as for the HTTP port of the [[MX_Administrative_Interface#The_API_interface|Admin Interface]].  &lt;br /&gt;
&lt;br /&gt;
=== -Logging parameter for debugging of data flow between station and MX===&lt;br /&gt;
&lt;br /&gt;
Use &#039;&#039;&#039;CumulusMX -Logging=1&#039;&#039;&#039; (for the station to MX transfers to have increased debugging logging).&lt;br /&gt;
&lt;br /&gt;
Note use of this parameter is now deprecated, as it has been incorporated into &#039;&#039;&#039;-debug&#039;&#039;&#039;, see above.&lt;br /&gt;
&lt;br /&gt;
=Access to admin interface=&lt;br /&gt;
&lt;br /&gt;
The admin interface URL &#039;&#039;&#039;http://*:8998/&#039;&#039;&#039; needs to have that wildcard &amp;quot;*&amp;quot; replaced by a precise location if we are to access the [[MX_Administrative_Interface|admin interface]] to change [[Cumulus.ini|settings]], view our weather data, or edit various [[:Category:Cumulus_Files|Cumulus files]] (extreme records or log files).  &lt;br /&gt;
&lt;br /&gt;
The missing part of the URL depends on how your local network is set up.  &lt;br /&gt;
&lt;br /&gt;
*If you are accessing the admin interface on the same device as that running MX then the &amp;quot;*&amp;quot; can be replaced by &amp;quot;localhost&amp;quot;, i.e. &#039;&#039;&#039;http://localhost:8998/&#039;&#039;&#039; will be used to load the admin interface into your browser. &lt;br /&gt;
** (Note &amp;quot;localhost&amp;quot; will work even if you host your own database server or own web server, each of these uses a different port number to ensure the correct server is loaded)&lt;br /&gt;
*In the more general case when you want to access the admin interface from anywhere on your local wired and wireless interface, then the &amp;quot;*&amp;quot; needs to be replaced by a string of 4 numbers representing what is called a IPv4 address (w.x.y.z) of the device you have installed MX on.&lt;br /&gt;
&lt;br /&gt;
==How to find out which Internet Protocol address to use==&lt;br /&gt;
&lt;br /&gt;
# Look at your hub or router (this should have come with instructions on how to access its settings in your browser) and on one screen it should show what devices are connected to your LAN and wifi. &lt;br /&gt;
# Look for the IPv4 address, for example 192.168.1.64, it has assigned to the device where MX is running. That is what should replace the &amp;quot;*&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
However, there is one more complication, either the Windows networking settings may change, or else your hub or router may reconfigure, both can happen at any time, and both can assign a different IPv4 address to the device running MX.&lt;br /&gt;
&lt;br /&gt;
To give your Computer a fixed address for the MX admin interface, &lt;br /&gt;
#first find the network card via Network and Sharing Centre (Control Panel), &lt;br /&gt;
#then click on Change Adapter Settings, &lt;br /&gt;
#then Right click on Ethernet or WiFi Adapter, &lt;br /&gt;
#next select Properties&lt;br /&gt;
# In the window that opens, right click on Internet Protocol Version 4 (TCP/IP 4), &lt;br /&gt;
#Next select properties&lt;br /&gt;
# Onn that pop up screen tell the computer to &amp;quot;use the following IP address&amp;quot;&lt;br /&gt;
#Fill out the form with&lt;br /&gt;
#* a subnet mask of 255.255.255.0 and &lt;br /&gt;
#*gateway address between 192.168.1.1 and 192.168.1.254 (depending on the address of your hub/router).&lt;br /&gt;
&lt;br /&gt;
=One-off essential settings=&lt;br /&gt;
&lt;br /&gt;
If this is your first time using MX, the release distribution does not contain a [[Cumulus.ini|configuration file]], and you need to [[MX_Administrative_Interface#Changing_Settings| set various settings]] to create this file.&lt;br /&gt;
&lt;br /&gt;
If you are running MX interactively (explained above), you will see [[File:MX first start.PNG]].&lt;br /&gt;
&lt;br /&gt;
So when you first use MX you will need it to access the settings where you tell MX what type of station you have and what units you want to use, and set various timing options.  The settings you see may vary, depending on which MX release you have installed, so are not described here.  It is best to work through all the settings listed, as although some have defaults, you might want to vary them from default.&lt;br /&gt;
&lt;br /&gt;
=One-off optional uploads=&lt;br /&gt;
&lt;br /&gt;
If you have a web server, then navigate to the [[Webfiles_folder|CumulusMX\webfiles]] sub-folder, and upload everything in that folder onto your web server.&lt;br /&gt;
&lt;br /&gt;
You don&#039;t create a folder called webfiles on your web server, but you put the files and sub-folders into position at the root for your weather pages.&lt;br /&gt;
&lt;br /&gt;
To do this, you will must invoke a FTP process outside of Cumulus, MX does not include any functionality to do this one-off upload for you. The filezilla client is a popular choice as it has a very friendly graphical user interface, although other software to do this is also available. You may prefer a tool that lets you do the uploads from a command line without requiring working with a graphical interface.&lt;br /&gt;
&lt;br /&gt;
The contents of that sub-folder may change when you upgrade MX, so this task might need to be repeated.&lt;br /&gt;
&lt;br /&gt;
== webfiles sub-folder in releases from 3.10.1 onwards ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m not going to list all the files and sub-folders within &#039;&#039;&#039;CumulusMX\webfiles&#039;&#039;&#039; as the contents may change. &lt;br /&gt;
*However, it can be said that you will find some .htm files (basic web pages) in the main folder,&lt;br /&gt;
* and some sub-folders for&lt;br /&gt;
**  .css files (styling) in \css&lt;br /&gt;
** .js files (scripts) in \js&lt;br /&gt;
**  .png and .jpg files in \images&lt;br /&gt;
** two further sub-folders in \lib&lt;br /&gt;
**# steelseries&lt;br /&gt;
**# jquery (makes scripts independent of browser selection)&lt;br /&gt;
&lt;br /&gt;
== webfiles subfolder in releases 3.0.x to 3.9.y ==&lt;br /&gt;
&lt;br /&gt;
#The static files to be uploaded include the standard styling file &#039;&#039;&#039;\CumulusMX\webfiles\weatherstyle.css&#039;&#039;&#039; which you place in the directory specified for the uploads.&lt;br /&gt;
#Next you have three sub-folders, each of those sub-folders need to be replicated &#039;&#039;&#039;within&#039;&#039;&#039; the directory specified for the uploads. &lt;br /&gt;
#*For example &#039;&#039;&#039;\CumulusMX\webfiles\images\picture.jpg&#039;&#039;&#039; will be stored in a &amp;quot;images&amp;quot; sub-directory of the upload directory and is used as the background image for web pages. &lt;br /&gt;
#**There is nothing to stop you creating your own &amp;quot;picture.jpg&amp;quot; (instead of uploading the supplied one) and then Cumulus web pages will use that for the background image on each page. &lt;br /&gt;
#*Similarly &#039;&#039;&#039;\CumulusMX\webfiles\js\cumuluscharts.js&#039;&#039;&#039; needs to be stored in a &amp;quot;js&amp;quot; sub-directory of your upload directory (this is the script that allows you to change the chart shown on the trends page and uses the appropriate json file to populate it with data).&lt;br /&gt;
# The &amp;quot;lib&amp;quot; sub-folder contains further levels of sub-folders all to be replicated on your web site.&lt;br /&gt;
# The &#039;&#039;&#039;trends.htm&#039;&#039;&#039; web page also loads some library software from an internet Content Delivery Network (cdn) to invoke the JavaScript based Highstocks library.&lt;br /&gt;
&lt;br /&gt;
=Already have Cumulus?=&lt;br /&gt;
&lt;br /&gt;
== Report and data files to copy across from any previous Cumulus location ==&lt;br /&gt;
&lt;br /&gt;
All the (optional) files in the [[Reports folder]] can be copied across from a previous installation. It should not matter which MX release created past files, although ideally you need to ensure that the report naming and encoding described on that linked page remain the same.  If you previously used the legacy Cumulus 1, on the same computer, the same requirement for settings compatibility applies. If however you previously used the legacy Cumulus 1 on a different computer, then you may have some difficulty in accessing the old files because of differences in the default settings, please see [[Migrating from Cumulus 1 to MX]] page and read about why it is often more complex.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Whilst you should copy &#039;&#039;nearly&#039;&#039; ALL the files in the [[data folder]], from any old installation into the new installation, there are several extra considerations:&lt;br /&gt;
* MX cannot understand the Cumulus 1 [[Log.xml|log file]] (aka [[Weather Diary]]), so there is no point in copying that from the legacy Cumulus to a MX folder&lt;br /&gt;
* If your previous Cumulus installation was of the legacy software, version 1.9.4, or earlier, then you need to do a lot of reading:&lt;br /&gt;
** [[Amending dayfile]] tells you about how MX is far more fussy about the content in [[dayfile.txt]]&lt;br /&gt;
** [[:Category:Ini Files|.ini files]] explains how time-stamps are formatted differently in the extreme tracking files&lt;br /&gt;
** [[Migrating from Cumulus 1 to MX]] gives some advice about differences in settings, but be aware that the way MX handles settings varies by release, and information on the linked page may be out of date&lt;br /&gt;
* When copying [[Standard log files|MMMYYlog.txt]] files and [[Extra Sensor Files|ExtraLogyyyymm.txt]] files, be aware that &#039;&#039;&#039;your new MX installation will ignore any entries prior to the MX Start Date&#039;&#039;&#039;  when it reads those files:&lt;br /&gt;
**  See [[Cumulus.ini#Data_Logging|&#039;&#039;&#039;StartDate=xxxxx&#039;&#039;&#039;]] parameter, edit using &#039;&#039;Station Settings → Common Options → Advanced Options → Records Began date&#039;&#039;&lt;br /&gt;
* Some releases of MX are very fussy, some are less fussy, about all lines in all [[:Category:Files_with_Comma_Separated_Values]] being totally consistent in all &amp;quot;locale&amp;quot; settings.&lt;br /&gt;
* If your old MX installation, is on a different operating system to the Microsoft Windows for your new installation, remember that Microsoft Windows uses different line terminators to all other operating systems, although MX should cope with mixed line terminators, any third party routines reading your data files will probably not accept a line terminator change.&lt;br /&gt;
&lt;br /&gt;
==Configuration Files to copy across from any previous Cumulus installation==&lt;br /&gt;
&lt;br /&gt;
There are two configuration files that are not included in any MX release:&lt;br /&gt;
*[[strings.ini]] – optional file to customise output (MX content significantly different to legacy Cumulus content)&lt;br /&gt;
*[[Cumulus.ini]] – main configuration file (Substantial changes to content at release 3.12.0, some changes at other releases)&lt;br /&gt;
&lt;br /&gt;
Just copy the existing files from old to new installation, if&lt;br /&gt;
# Your locale (Language settings in the Settings app, Regional Settings in the Windows Control Panel (use that not &amp;quot;Settings&amp;quot; even on Windows 10/11) is still the same&lt;br /&gt;
# All files on your new install are in same paths as on your old install (some settings involve specifying paths)&lt;br /&gt;
# Your old installation has a relatively recent MX release (compare the &amp;quot;y&amp;quot; in 3.y.z,between old and new installation,  a difference of more than 1 means you do not have a recent release)&lt;br /&gt;
# Your old installation was on computer running Microsoft Windows Operating System,  (not a Linux computer)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you are upgrading from an older release, please read the table for advice.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;width:450px; color:blue&amp;quot; | Cumulus.ini !! scope=&amp;quot;col&amp;quot; style=&amp;quot;width:450px; color:navy&amp;quot; | strings.ini&lt;br /&gt;
|-&lt;br /&gt;
| Your old installation will have this file. In general, &#039;&#039;if your old installation was any release before 3.8.0&#039;&#039;, the advice is give  the old file a different name when you copy it across to the new installation, and let MX create the file as you work through all the settings.&lt;br /&gt;
| &#039;&#039;&#039;This is an optional file&#039;&#039;&#039;.  Its [[strings.ini|purpose]] is to allow customisation of some of the outputs from Cumulus. You might want to use customisation to abbreviate (or extend) some outputs, or to change those outputs into another language.&lt;br /&gt;
|-&lt;br /&gt;
| When you work through the Settings pages, MX will create this file if it does not exist.&lt;br /&gt;
* If your old installation was of the legacy software then do consult [[Migrating from Cumulus 1 to MX]]&lt;br /&gt;
* As MX evolves, the former &amp;quot;read-only&amp;quot; settings in this file are becoming &amp;quot;advanced&amp;quot; settings in the interface.&lt;br /&gt;
| You create a “strings.ini” file by &#039;&#039;&#039;selecting some of the parameter&#039;&#039;&#039;s from the [[Samplestring.ini]] file that is included in each MX release, and &#039;&#039;modifying the value for the listed attributes&#039;&#039; as you type just those you selected (under the same group titles - these are enclosed in [ ] as before).&lt;br /&gt;
&lt;br /&gt;
The sections that appear in &#039;&#039;&#039;samplestring.ini&#039;&#039;&#039;, and the parameters that appear within a section, depend upon which release you are using.  So be cautious if you try to reuse a &amp;quot;strings.ini&amp;quot; file originally created by the legacy software, you may find you need to specify your customisation using different parameters in the latest &amp;quot;samplestring.ini&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|  The content of &amp;quot;Cumulus.ini&amp;quot; is changing as MX is developed, the [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&amp;amp;t=17887 Release Announcements] normally list any new parameters as they appear in the file, without always mentioning those that have become redundant. The announcements tend to avoid any detail, so you have to guess &#039;&#039;from the attribute&#039;&#039; what values it might take, and generally have no idea of where to make any change.&lt;br /&gt;
&lt;br /&gt;
To remove any parameters no longer used in this file, see [[Cumulus.ini#How_to_Remove_Redundant_parameters_from_file|remove redundant parameters]]&lt;br /&gt;
&lt;br /&gt;
If your old file contains any [[Cumulus.ini (Cumulus 1)|legacy read-only]] parameters not yet converted into advanced settings, or any [[Cumulus.ini (MX 3.0.0 to 3.7.0)|MX read-only parameters not yet converted into advanced settings]], you may need to manually add such missing parameters back into new file by stopping MX (after finishing all the settings you can configure in the interface), doing an external file edit, and then restarting MX&lt;br /&gt;
| The content of &amp;quot;samplestring.ini&amp;quot; is changing as MX is developed:&lt;br /&gt;
* Therefore, your existing “strings.ini” might need to be modified. &lt;br /&gt;
* There is no automatic way to check your “strings.ini” file, if MX does not understand any parameter in this file, it ignores it. &lt;br /&gt;
* Instead, you need to manually check each parameter you have in your “strings.ini” file to see if that parameter is still in the “samplestring.ini” included in the release you have installed. &lt;br /&gt;
* You may also find new parameters in “samplestring.ini” that you wish to add to your “strings.ini” file to tailor new functionality to your preferences.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you previously used an older release of Cumulus, but in this new installation will be using the latest release (latest is what is normally best, unless it has bugs), you may want to read up on all the changes between your old release and the current release, not just changes that affect the configuration file.&lt;br /&gt;
&lt;br /&gt;
= Operating a web site with uploads from MX engine =&lt;br /&gt;
&lt;br /&gt;
== The standard web pages ==&lt;br /&gt;
&lt;br /&gt;
=== From release 3.10.1 ===&lt;br /&gt;
&lt;br /&gt;
As mentioned above, the web pages are a one-off upload from &#039;&#039;&#039;CumulusMX\webfiles&#039;&#039;&#039;.  The data to be shown on these web pages are uploaded from [[:Category:JSON_Files|.json]] files in the [[web_folder]].&lt;br /&gt;
&lt;br /&gt;
Please read [[New_Default_Web_Site_Information|this page]] for more information about styling options and other details.&lt;br /&gt;
&lt;br /&gt;
=== Until release 3.9.7 ===&lt;br /&gt;
&lt;br /&gt;
As mentioned above, the styling and library files are a one-off upload from &#039;&#039;&#039;CumulusMX\webfiles&#039;&#039;&#039;. These release use [[Cumulus_template_file|template files]], these are [[Customised_templates#What_is_meant_by_.27Cumulus_processes_templates.27|processed by MX to add the variable data]], and this will create web pages that are uploaded to your web site.&lt;br /&gt;
&lt;br /&gt;
Please read [[Customised_templates]] for further information about the various pages provided, and how you can customise them to suit you. &lt;br /&gt;
 &lt;br /&gt;
=== Comparison with legacy Cumulus 1 web pages ===&lt;br /&gt;
&lt;br /&gt;
* Note that the MX web files are not the same as the ones for Cumulus 1, &lt;br /&gt;
** so if moving from Cumulus 1 to MX, delete all your Cumulus 1 files from the &amp;quot;web&amp;quot; and &amp;quot;webfiles&amp;quot; sub-folders, and all files from your web server; then upload files from the new &amp;quot;webfiles&amp;quot; folder. &lt;br /&gt;
* The standard gauges are now the SteelSeries gauges. The default gauges page does not display a graph when you hover over a gauge (as happened when you added the stand-alone Steel Series gauges to Cumulus 1).&lt;br /&gt;
* The trends web page in Cumulus 1 relied on that software generating graphs as images. &lt;br /&gt;
** In MX, the software generates files with time and value pairs, these are stored in json format, the trends page then uses a library package (Highstocks) to draw graphs from those data pairs.&lt;br /&gt;
&lt;br /&gt;
== Alternative ways to obtain web pages ==&lt;br /&gt;
&lt;br /&gt;
You can choose to use some of the alternative web pages available from third parties and described [[:Category:User Contributions|on User Contributions page]].&lt;br /&gt;
&lt;br /&gt;
== Using your own web pages ==&lt;br /&gt;
&lt;br /&gt;
* Of course you can use your own web pages, instead of the standard ones. Assuming they need to include figures that are available as web tags, there are three alternative ways to implement this:&lt;br /&gt;
*# MX can process template files with a HTML structure and those web tags in the structure where values are required just as it does with the standard templates, and MX can upload the resulting web pages  at either the real-time interval, the standard interval, or after end of day. All of this is covered on the [[Customised_templates|Customised templates]] page in this Wiki.&lt;br /&gt;
*# MX can process a file with a string of web tags mirroring the realtime.txt option in MX, and upload the resulting file so your web pages can use JavaScript for a one-off insert of the values or an Ajax routine to update the web page at a fixed interval.&lt;br /&gt;
*# Alternatively, you can use template scripts processed locally by MX that don&#039;t create web pages, but are uploaded by MX at either the real-time interval, the standard interval, or after end of day. These scripts simply initialise script variables with values obtained from web tags. You then independently have a set of web pages resident only on your web server (they don&#039;t exist where you run MX) using a combination of HTML and script content that bring in the script(s) with the variables by the appropriate syntax. All of this is covered on the [[Php_webtags|PHP web tags]] page in this wiki. As it suggests there, you might therefore have several files processed by Cumulus MX at these different intervals, converting the web tags into script variables, and then use AJAX (JavaScript that may use json format to bring in the variables) or PHP (using &amp;lt;tt&amp;gt;&#039;require_once &#039;filename&#039;;&amp;lt;/tt&amp;gt; syntax) to put those variables into a web page.&lt;br /&gt;
&lt;br /&gt;
You may find [[PHP|this wiki page]] useful for understanding more about the different script languages.&lt;/div&gt;</summary>
		<author><name>Relleray</name></author>
	</entry>
</feed>