Author Topic: No UV forecast on Ajax dashboard  (Read 592 times)

0 Members and 1 Guest are viewing this topic.

Offline kplew

  • Member
  • *
  • Posts: 31
    • Plew Farm Weather
No UV forecast on Ajax dashboard
« on: January 13, 2019, 04:35:46 PM »
The UV forecast on my dashboard never updates and I can't sort it. If I look at the page source get-UV-forecast-inc looks to be working but the dashboard doesn't change from -1.0.
snip from dashboard source. All template pages up to date. Thanks
Code: [Select]
<!-- get-UV-forecast-inc.php V1.08 - 11-Nov-2017 -->
<!-- UV forecast courtesy of and Copyright &copy; KNMI/ESA (http://www.temis.nl/). Used with permission. -->
<!-- UV data load from from cache ./cache/uv-forecast.txt -->
<!-- Date='13-Jan-2019', UV='1.1' DOW='Sunday' YMD='20190113' -->
<!-- Date='14-Jan-2019', UV='1.2' DOW='Monday' YMD='20190114' -->
<!-- Date='15-Jan-2019', UV='1.2' DOW='Tuesday' YMD='20190115' -->
<!-- Date='16-Jan-2019', UV='1.2' DOW='Wednesday' YMD='20190116' -->
<!-- Date='17-Jan-2019', UV='1.3' DOW='Thursday' YMD='20190117' -->
<!-- Date='18-Jan-2019', UV='1.3' DOW='Friday' YMD='20190118' -->
        <tr>
          <td class="datahead" style="text-align:center">UV Index</td>
          <td class="datahead" style="text-align:center">Solar Radiation</td>
        </tr>
        <tr>
          <td align="center">
    <table width="180" border="0" cellpadding="2" cellspacing="0">
              <tr>
                <td class="data1" nowrap="nowrap" style="text-align: center; ">&nbsp;&nbsp;
  <span class="ajax" id="ajaxuv">
    0.0   </span>&nbsp;&nbsp;
  <span class="ajax" id="ajaxuvword">
    None   </span>
</td>
              </tr>
                            <tr>
                <td class="data1" nowrap="nowrap" style="text-align:center; font-size: 8pt;">
  High: -1.0 @&nbsp;7:00pm
</td>
              </tr>
                          </table>


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: No UV forecast on Ajax dashboard
« Reply #1 on: January 13, 2019, 04:59:15 PM »
Your dashboard is showing
Quote
UV Index
   0.0   None
High: -1.0 @ 7:00pm
   
Solar Radiation
0 W/m2 (0%)
High: -1 @  7:00pm

In your Settings-weather.php you have
Code: [Select]
$SITE['UV']                = true;  // set to false if no UV sensor
$SITE['SOLAR']            = true;  // set to false if no Solar sensor
indicating you have both a UV and a Solar sensor on your station.  If you do not have the sensors, set those values to
Code: [Select]
$SITE['UV']                = false;  // set to false if no UV sensor
$SITE['SOLAR']            = false;  // set to false if no Solar sensor
and the dashboard will display today's and tomorrow's UV forecast from temis.nl.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline kplew

  • Member
  • *
  • Posts: 31
    • Plew Farm Weather
Re: No UV forecast on Ajax dashboard
« Reply #2 on: January 13, 2019, 05:12:28 PM »
Perfect thanks. User error is a terrible thing.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: No UV forecast on Ajax dashboard
« Reply #3 on: January 13, 2019, 05:17:44 PM »
You're very welcome :)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP