Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Password Protect settings pages

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Password Protect settings pages

Post by dan_mcclurg »

Hi there,


Don't mind if this is pushed to the side for the mean time whilst MX is still in beta, however could I request a password protect function for settings on the web interface, the main reason for this is that I would quite like the MX dashboard as my main weather website, however I don't wish for the settings pages to be accessed by anyone except me.


Hope that all makes sense.

Thanks
water01
Posts: 3244
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Password Protect settings pages

Post by water01 »

Don't think that is a good idea because it would mean opening a port through your firewall in order to allow access to your server, and once they are there I am sure there all sorts of ways they could bounce into your shared file system and cause mayhem.

Best to stick with the web interface that Steve supplies for that reason.
David
Image
Palmyweather
Posts: 52
Joined: Sat 28 Nov 2009 9:57 am
Weather Station: W1081
Operating System: Windows 7
Location: New Zealand
Contact:

Re: Password Protect settings pages

Post by Palmyweather »

I had been thinking of asking a similar question about password protecting the settings tab. Cumulus MX has potential to be used across a local network and could be accessed by many people, some of whom you would not want to have access to the settings screen.

EG: Mum, Dad and the kids could all check out the weather data from all their different PC and mobile devices but you may only want family weather enthusiast to be able to change the settings. This example could even expand out to a business.

Just my thoughts
Matt


EDIT: Then again having thought some more about it, the settings menu could simply be removed from the dashboard through the HTML Code. Then the Admin simply needs to remember the URL to enter.
Check my Palmerston North, New Zealand weather station out at https://palmyweather.co.nz .

Image
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Password Protect settings pages

Post by mcrossley »

Palmyweather wrote: EDIT: Then again having thought some more about it, the settings menu could simply be removed from the dashboard through the HTML Code. Then the Admin simply needs to remember the URL to enter.
That may be OK for your intranet, but still not a solution for the internet. The settings page will be well known and you would still have to open up your firewall. Best to not expose the system interface to the web at all, reproduce it as a web site if you like the format. I known people are already either doing that or working on it.
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Password Protect settings pages

Post by steve »

I looked into doing password protection for the settings pages, but it is not easy, if possible at all. It is not just a case of removing or protecting the html pages, and the web server built into MX is very basic and does not support .htaccess or similar.
Steve
dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Re: Password Protect settings pages

Post by dan_mcclurg »

Hi, thanks for all the replies, that's completely understandable what everyone has said.

Steve, is it possible to convert the MX pages into ones processed by cumulus with webtags ETC, but still maintain the look of the MX dashboard?
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Password Protect settings pages

Post by steve »

You could do that, but it would be much better to keep the pages as they are, and change the associated javascript to load the data from a URL on your web site instead of directly from Cumulus. This is presumably what the people Mark referred to are doing. At some point I could look at making the interface a properly supported alternative to the basic standard web pages. I can understand why people would want to have the data pages from the interface as a web site.
Steve
dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Re: Password Protect settings pages

Post by dan_mcclurg »

Hi Steve, thanks for the reply, how exactly would I go about doing that? im reasonably techie but have little knowledge of JS.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Password Protect settings pages

Post by mcrossley »

You could also lock down the interface pages/ports to specific client IP adresses (or subnets) using the local host firewall. Mainly useful if you have an intranet you want to restrict, but you could use that method to enable remote admin access for yourself - you could also use the router firewall - maybe add your work proxy server address(s) so you can keep an eye on it from work ;) (assuming your work proxy also allows the ports through).
dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Re: Password Protect settings pages

Post by dan_mcclurg »

hi mark, that would work however I access the MX interface from a range of devices that normally use DHCP so specific IP's wouldn't be feasible, I think I will probably go down the route of updating the JS, I just need to find out what bits, im not great with JS;)
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Password Protect settings pages

Post by steve »

All of the UI pages are fed by JSON, generated by MX on the fly. At the moment, with the exception of the graphs and gauges, there is no way to get MX to put that data into a file automatically so that you could upload it to a web site, so you would have to devise a way to do that. I do intend to provide documentation of the API at some point (and extend it) but for now you would have to look at the javascript and the traffic between it and MX, so that you can see what format the JSON needs to have. For example, the temperature data for the 'Today/yesterday' page looks like this:

Code: Select all

{
  "data": [
    [
      "High Temperature",
      "11.5 °C",
      "11:20",
      "12.3 °C",
      "13:31"
    ],
    [
      "Low Temperature",
      "9.8 °C",
      "10:03",
      "7.3 °C",
      "05:33"
    ],
    [
      "Temperature Range",
      "1.7 °C",
      " ",
      "5.0 °C",
      " "
    ],
    [
      "High Apparent Temperature",
      "4.3 °C",
      "11:20",
      "9.2 °C",
      "13:32"
    ],
    [
      "Low Apparent Temperature",
      "2.2 °C",
      "10:04",
      "0.2 °C",
      "05:20"
    ],
    [
      "High Dew Point",
      "8.5 °C",
      "11:20",
      "7.7 °C",
      "14:17"
    ],
    [
      "Low Dew Point",
      "6.9 °C",
      "10:03",
      "4.3 °C",
      "04:42"
    ],
    [
      "Low Wind Chill",
      "6.0 °C",
      "10:04",
      "3.2 °C",
      "05:33"
    ],
    [
      "High Heat Index",
      "11.5 °C",
      "11:20",
      "12.3 °C",
      "13:31"
    ]
  ]
}
All of the actual data in there has a web tag, so you could create a template using the above, substituting web tags for the values, and then get MX to process and upload that file to your web site. You then replace the URL in the todayyest.js file to load that instead. The dashboard and 'now' pages have the added complication that they use websockets, so you would probably want to change that to use Ajax instead.

There's quite a bit of work involved in all of this, it would be much easier if MX had support for it built in. You may find it easier to do as you originally asked, and just put web tags in the pages! You would have to restructure some of the HTML because some of it is automatically created/modified by the javascript.
Steve
dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Re: Password Protect settings pages

Post by dan_mcclurg »

thanks for all the replies, I have started editing the HTML to use webtags. I will post the results once they are done if that's okay steve?
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Password Protect settings pages

Post by steve »

Yes, that's fine, I'm sure people will find it useful. I may have a look at doing a version using JSON with proper support from MX - it will be an interesting diversion.
Steve
dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Re: Password Protect settings pages

Post by dan_mcclurg »

Steve I cant seem to get MX to process the dashboard index file. no obvious errors anywhere, it just wont process
dan_mcclurg
Posts: 37
Joined: Wed 31 Jul 2013 11:06 pm
Weather Station: wh1080
Operating System: Windows Server 2008R2
Location: United Kingdom
Contact:

Re: Password Protect settings pages

Post by dan_mcclurg »

never mind, all sorted, I had forgotten to set the file as a HTM as opposed to HTML. all working
Locked