Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Sun Hrs issue.

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

Locked
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Sun Hrs issue.

Post by ConligWX »

Hi

I have a new Vantage Pro2 Plus with UV and Solar sensor. now when I goto the local dashboard and goto charts, both Solar and UV charts are shown when I click on the individual button so I know the data works correctly.

On my website however I have the same chart shown but when I click on "Sun Hrs." button, nothing is shown. could someone help diagnose this issue. I'm not sure on where to look.

attached is my wxgraphs.php
wxgraphs.zip
You do not have the required permissions to view the files attached to this post.
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Sun Hrs issue.

Post by ConligWX »

Haha

Spoken too soon.

check the trends.htm and the wxgraphs there was a slight difference in text.

Code: Select all

<input name="btnSunHrs" class="button" tabindex="10" type="button" value="Sun Hrs." onclick="changeGraph("sunhrs");">

<input name="btnSunHours" class="button" tabindex="10" type="button" value="Sun Hours" onclick="changeGraph("sunhours");">
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sun Hrs issue.

Post by steve »

Your sun hours button calls changeGraph() with a parameter of 'sunhrs':

Code: Select all

<input name="btnSunHrs" class="button" tabindex="10" type="button" value="Sun Hrs." onclick="changeGraph("sunhrs");">
Your changeGraph() expects 'sunhours':

Code: Select all

case 'sunhours':
             doSunHours();
             break;
Steve
Locked