Category:Cumulus MX: Difference between revisions

663 bytes added ,  17:16, 10 April 2020
m
Line 194: Line 194:


== Editing the User Interface ==
== Editing the User Interface ==
You need some understanding of Hyper-Text Markup Language to do this correctly, but here are simple examples.
The general advice is do not change any files that are part of the MX package, they are a package and therefore there are interdependencies. Also updating to a newer release is more complicated if you have edited any files. The files as provided in the MX package are a compromise, for example they include reporting on solar measurements but not all weather stations include such measurements. Given that the user interface is not shared with anyone else, it could be argued its look and content is not that important. In particular this interface is the only way to change settings, so do not change anything that stops those setting screens from working!


Remember, if you decide to download a new release to not overwrite any file(s) that you have edited, or your edit will be lost. It is  less likely that a new release will change the interface files than other files, but each release zip contains all MX files, even those not changed since previous release. The release notice will usually give some idea of whether interface files have changed.
Remember, if you decide to download a new release to not overwrite any file(s) that you have edited, or your edit will be lost. It is  less likely that a new release will change the interface files than other files, but some releases do change these files. Remember, each release zip contains all MX files, even those not changed since previous release. The release notice will usually give some idea of whether interface files have changed, but it may not list which interface files have been added, modified, or removed.
 
If you do decide to change any file, I suggest you maintain a back-up copy of the original elsewhere (so it can be gone back to) and you save the edited file under a new name (so you can't lose my edited file by installing a new release).


=== Changing the look ===
=== Changing the look ===
Line 203: Line 205:


=== Removing Solar Figures ===
=== Removing Solar Figures ===
If your weather station does not have solar instrumentation you might wish to remove some of the display elements that relate to that.
If your weather station does not have solar instrumentation you might wish to remove some of the display elements that relate to that. You need some understanding of Hyper-Text Markup Language to do this correctly, but here are simple examples.
# Navigate to '''\CumulusMX\interface''' folder.
# Navigate to '''\CumulusMX\interface''' folder.
# Open the file '''now.html''' in an editor designed for code (e.g. Notepad++ for Windows, Notetab Lite)
# Open the file '''now.html''' in an editor designed for code (e.g. Notepad++ for Windows, Notetab Lite)
Line 234: Line 236:
</table> </pre>
</table> </pre>
IMPORTANT NOTES:  
IMPORTANT NOTES:  
#This works on "now.html", but does not work on other pages where table rows are dynamically created by an external script, so the existing rows in the table body are dummies whose content is ignored. An alternative technique is to delete the whole table and any "&lt;div> .. &lt;/div>" that surrounds only that table, that will work on all the HTML pages.
#The above approach works on "now.html", but it does not work on other pages where table rows are dynamically created by an external script, so the existing rows in the table body are dummies whose content is ignored.  
#In general it is not a good idea to vary any code provided as part of the package as it will be overwritten if you install a new release distribution over it. What I do, and suggest you do is to maintain a back-up copy of the original elsewhere (so it can be gone back to) and I also save my edited file under a new name (so I can't lose my edited file by installing a new release).
*An alternative technique is to delete the whole table and any "&lt;div> .. &lt;/div>" that surrounds only that table, that will work on all the HTML pages.  


=== Adding derivatives not shown on the existing interface page ===
=== Adding derivatives not shown on the existing interface page ===
5,838

edits