The Alternative Interface (ai.cmx)

An Alternative (additional) Interface

Overview

Following the release of the responsive default website for CumulusMX, I am now looking at the development of the main CumulusMX Interface.

Although the main focus of the Interface is to manage your weather station, it also provides your initial view of the data that you are collecting. As such I feel that it should also use the same up-to-date features as the supplied public default website.

Like the public website supplied with CumulusMX, the AI uses colour themes and, wherever possible, is fully responsive. This should make it easier to use on tablets and phones as well as the more traditional desktop/laptop screen.

Like the supplied Interface, the AI includes all the required pages to manage your weather station but also provides some additional information, especially on the dashboard page. It also provides 30+ themes that can be applied to it and the default public website, it required.

How it fits with the existing inteface

The AI has been developed as an alternative to the existing Interface - it is not a replacement. The existing Interface should always be retained as it is this that will be updated by Mark as and when required.

As said above, the AI includes all the same resources needed to view the data being generated by your website; to configure your station and to edit data should errors occur.

However, some changes to layout have been made:

  • The Header and Footer are both fixed by default. This can be changed by you if required.
  • The Menu has been adapted to take less space but includes a button to return to the default Interface pages.
  • The header area is now better at being responsive on small screens - reducing in size to give you more space for your data.
Viewing generated data
  • The Dashboard page
    • Shows the alarm LEDs at the top of the page.
      (These can be hidden/re-displayed using the button provided with the page title).
    • The Sun and Moon rise & setting times are displayed in a popup; again using the button in the page title bar.
    • The Temperature, Pressure, Winds & Rain panels will flash when a new record is set
    • For those users with Davis weather stations, you can see Packets data, CRC errors and the percentage failure rate.
      I have found that this last piece of info is a good indicator for when the battery needs changing. This option toggles across sessions so if you hide them they stay hidden until you choose to view them again.
  • The Charts pages
    • All charts can be zoomed, i.e., you can swipe the mouse over parts of the chart to view readings in detail.
    • The recent and historic charts use buttons that always span a complete line (or lines).
    • The Select-a-Chart groups the buttons in two groups of three pairs, as in the default Interface.
  • The NOAA pages
    • Both pages have been amended so that the required report loads when a date is selected.
  • Extra Sensors - No significant cosmetic changes
Management and Setup Menus
  • The Data Logs Menu
    • All pages automatically load data when the pages open.
    • The Readings Logs and Extra Data Logs pages display the last 7 days of entries but this can be changed using the popup calendar.
      These tables also display metric units for all appropriate data. If you use other units then you will need to edit the three html files. (Details are in the 'readme' file included in the download).
  • The Settings Menu
    This menu provides access to the same pages as in the default system although some have been redesigned
    • The MySQL Settings page has been made into two columns.
    • The Alarm Settings page has simply been tidied up.
  • The Edit... Menu
    • The rain editor is now much narrower and the shading on read-only entries made more obvious.
    • Weather Conditions Editor
      • This is a new page that combines the old Current Conditions & Weather Diary pages.
        The original pages are still available but not in the menu. This can be edited to display the original pages if preferred.
  • The four Edit Records... pages
    • These are esentially the same except that editing is done using a popup box rather than in-line.
      This simply avoids the tables becoming confusing on small screens.
  • The AI Settings... menu
    • Gives you access to the various theme colour styles available.
      Selecting a theme makes it active for the current page only.
      To make it permanent you need to click the Use for all pages button.
    • Enables you to change the status of the header and footer from static to scrolling - either or both.
    • You can now also adjust the gap between the body of the page and the header and footer.

Screen Shots

Below are a number of screenshots of various pages.

All the above are taken from my current Version 2 of the Interface except the last two.


Technical Changes

Generally, this has been limited to ensuring that all JavaScript files use the correct URL for API calls to both read and update settings / data. All modified JavaScript files are included in the AI package and do not over-write existing files.

The following JavaScript files were (January 2022) additions for the AI.

  • AI-Charts-Plus.js: This script handles all buttons on the Readings and Historic charts pages.
  • AI-Page-Manager.js: This script is a utility used by all pages to control the layout, obtain the CumulusMX Version data, handle the selected theme and various other utilities.
    If you have hidden the 'Davis Stats Panel' on the Dashboard then this script makes sure it is hidden the next time you open the page.
  • AI-Configure.js: This script is only used to configure the AI: Static or scrolling header/footer and gapes between them and the main body. You can also change the colour theme for the site.

Those users not using Microsoft Windows OS should note case inconsistencies; e.g. "ai-config.html" (December 2021) has become "AI-Config.html" now.

This package also includes:

  • the gauges.js file in the steelseries library - it has been modified to make to make the tooltips use the theme,
  • and the "datatables editor" library - again modified to make use of the themes.

Things you can change easily

As already mentioned, the Header and Footer area of the site is static by default - i.e. they are always on page. To change this use the AI-Config.html page. It can also be used to make the header and/or footer scroll and change the gap between the body of the page and the header/footer.

Download the latest version

Download the latest current version: the latest ai.cmx (Updated 25th August 2022 @ 11:14)

This update accommodates the latest update from Mark - build 3202. Please do not use with previous versions of CumulusMX as it will generate errors due to the changes to the main interface.

For full history of changes to the zip see File:Ai.cmx.zip.

Installation

Once you have downloaded the zip file, extract it somewhere other than your CumulusMX installation. This will avoid accidentally overwriting your existing Interface contents.

The Extracted package should consist of a single folder - ai.cmx, which can then be copied into the existing Interface folder so it shows as a sub-folder.

You are then ready to start using it. If you use the url: http://localhost:8998/ to run your normal interface, you can simply add the folder name to the end like so: http://localhost:8998/ai.cmx/. (Note the trailing backslash)

Of course localhost can be replaced with the IP address of the machine running CumulusMX. Using the IP address of your CumulusMX computer, you can also brows to it from another computer on your local network.

You still have access to the default interface if you want.

PLEASE read the included 'ReadMe' file as this shows how you can change the UNITS in the DayFile and Data Logs pages.