Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

Solar block hide

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
oldeflyer
Posts: 68
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Solar block hide

Post by oldeflyer »

Hello,
I have CMX 3.27.1 b3263 and a Davis VP2. I do not have any solar or UV sensors. I wanted to get the solar/UV section off the default web page.
I did some searching and I found some information but I think the references were for a much older version, some were dated 2015.

Is it possible to easily remove the UV/solar sections from the default web page?

I am running CMX on a Raspberry Pi and the Geany editor comes up when I looked at the index.htm file.

Thanks for any information.
Wayne
User avatar
PaulMy
Posts: 3870
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Solar block hide

Post by PaulMy »

Hi,
The original Cumulus website indexT.htm had

Code: Select all

  <!-- Solar data. If you don't have a solar sensor, you may wish to delete everything from here to the next comment -->
  <tr class="td_temperature_data">
    <td>Solar Radiation</td>
    <td><#SolarRad>&nbsp;W/m&sup2;</td>
    <td>Evapotranspiration Today</td>
    <td><#ET>&nbsp;<#rainunit></td>
  </tr>
  <!-- End of solar data -->
I am no coder but assume for the current CMX template you would need to edit/remove:
in index.htm

Code: Select all

										<tr class="w3-theme-l6 w3-hide" data-cmx-solar>
											<td>Solar Radiation</td>
											<td><span data-cmxdata="SolarRad"></span>&nbsp;W/m&sup2;</td>
											<td>Evapotranspiration Today</td>
											<td><span data-cmxdata="ET"></span>&nbsp;<span data-cmxdata="rainunit"></span></td>
										</tr>
										<tr class="w3-theme-l6 w3-hide" data-cmx-uv>
											<td>UV Index</td>
											<td><span data-cmxdata="UV"></span></td>
											<td></td>
											<td></td>
										</tr>
and similar in today.htm and yesterday.htm

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 12836
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Solar block hide

Post by mcrossley »

Just disabling them in Settings > Display Options > Data Visibility > Solar Data should do it.
oldeflyer
Posts: 68
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Solar block hide

Post by oldeflyer »

Mark,
I had already found those settings and out of the three choices they say 'Hidden' but still show up. I have restarted CMX several times since I set them and still no change.

They do NOT show up on the default web page, just the dashboard. I may have been misleading in the original post as I stated default web page but meant the default dashboard page.

Wayne
oldeflyer
Posts: 68
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Solar block hide

Post by oldeflyer »

I have tried each of the settings (Visible, Hidden, Dashboard only) under display for solar. There is no change before or after restarting CMX on the dashboard page or the default web page.
User avatar
PaulMy
Posts: 3870
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Solar block hide

Post by PaulMy »

Hi,
I had already found those settings and out of the three choices they say 'Hidden' but still show up. I have restarted CMX several times since I set them and still no change.

They do NOT show up on the default web page, just the dashboard. I may have been misleading in the original post as I stated default web page but meant the default dashboard page.
Have you tried the Display Options > General Options and untick Display Solar and Display UV-I data. There is nothing here re "Hidden", that is in the Data Visibility section.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
oldeflyer
Posts: 68
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Solar block hide

Post by oldeflyer »

Paul,
The General options were the first I looked at. They were already un-checked. I did try to check/uncheck them to see if there was an option missing that would be added if those items were manipulated.

I normally use Firefox for a browser. I have also tried the Chrome browser.
BTW, I am running the latest Pi OS 'Bookworm' with all patches up to date.

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

Re: Solar block hide

Post by mcrossley »

The dashboard display is (generally) fixed, only the web site is dynamic. The only way of changing the dashboard layout is by editing the files - but then you'd have to take great care at every MX release to either re-edit or do careful file contents compares.

There is the Alternative Interface of course.
oldeflyer
Posts: 68
Joined: Sat 02 Nov 2019 12:32 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4 Bookworm Linux
Location: NE Ohio, USA

Re: Solar block hide

Post by oldeflyer »

Thanks Mark,
It is not that important that I would go check files at every update. It just didn't seem that the check boxes were chaging anything.

This is a home use only station so I'm good with what I have.

Wayne
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: Solar block hide

Post by Ned »

I don't have a website these days so only rely on the dashboard. I miss the lunar image that Cumulus 1 provided, and not having any solar data from my ancient Fine Offset station, the solar block was an irritation.
It was easy to replace the solar block in index.html with one that displays a lunar phase image, albeit one that needs to be frequently manually updated from the 'net. Plus remembering to tweak index.html when updating CMX.
If anyone has an automated method, let's hear it.
cheers!
(attached lunar phase is not current as it's now blank with a new moon)
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12836
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Solar block hide

Post by mcrossley »

You could use the MX generated Moon image, and set the copy option to the interface/img folder.
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: Solar block hide

Post by Ned »

I found moon.png in the webfiles folder, but it seems it won't update without running a website?
User avatar
PaulMy
Posts: 3870
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Solar block hide

Post by PaulMy »

Hi,
I found moon.png in the webfiles folder, but it seems it won't update without running a website?
Have you tried: In Internet Settings > Moon Image > [Tick] Generate Moon image > Copy File - [tick] Copy Moon image file, and fill in Copy destination folder.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: Solar block hide

Post by Ned »

Great, thanks Paul. I hadn't looked into the Internet settings until now, so was unaware of that facility.
Cheers!
Post Reply