Page 1 of 1

Sun Hrs issue.

Posted: Thu 08 Sep 2016 3:22 pm
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

Re: Sun Hrs issue.

Posted: Thu 08 Sep 2016 3:31 pm
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");">

Re: Sun Hrs issue.

Posted: Thu 08 Sep 2016 3:31 pm
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;