Yes, several changes have to be made to ajax-dashboard6.php V6.95 to support DarkSky forecasts.
Change
if ($fcstby == 'WU') {
$SITE['fcstscript'] = 'WU-forecast.php'; // Non-USA, Non-Canada Wunderground Forecast Script
$SITE['fcstorg'] = 'WU'; // set to 'WU' for WeatherUnderground
$fcstorg = $fcstby;
$fcstscript = $SITE['fcstscript'];
}
to
if ($fcstby == 'WU') {
$SITE['fcstscript'] = 'WU-forecast.php'; // Non-USA, Non-Canada Wunderground Forecast Script
$SITE['fcstorg'] = 'WU'; // set to 'WU' for WeatherUnderground
$fcstorg = $fcstby;
$fcstscript = $SITE['fcstscript'];
}
if ($fcstby == 'DarkSky') {
$SITE['fcstscript'] = 'DS-forecast.php'; // DarkSky forecast
$SITE['fcstorg'] = 'DarkSky'; // set to 'DarkSky' for DarkSky forecast
$fcstorg = $fcstby;
$fcstscript = $SITE['fcstscript'];
}
Then change
include_once($WXtags); // for the bulk of our data
$doPrintNWS = false; // suppress printing of forecast by advforecast2.php
$doPrint = false; // suppress printing of ec-forecast.php
$doPrintWU = false; // suppress printing of WU-forecast.php
include_once($fcstscript); // for the forecast icon stuff
to
include_once($WXtags); // for the bulk of our data
$doPrintNWS = false; // suppress printing of forecast by advforecast2.php
$doPrint = false; // suppress printing of ec-forecast.php
$doPrintWU = false; // suppress printing of WU-forecast.php
$doPrintDS = false; // suppress printing of DarkSky DS-forecast.php
include_once($fcstscript); // for the forecast icon stuff
and lastly, change
if ($fcstorg == 'WU') {
$forecasticons = $WUforecasticons;
$forecasttemp = $WUforecasttemp;
$forecasttitles = $WUforecasttitles;
$forecasttext = $WUforecasttext;
} else if ($fcstorg == 'EC') {
to
if ($fcstorg == 'WU') {
$forecasticons = $WUforecasticons;
$forecasttemp = $WUforecasttemp;
$forecasttitles = $WUforecasttitles;
$forecasttext = $WUforecasttext;
} else if ($fcstorg == 'DarkSky') {
$forecasticons = $DSforecasticons;
$forecasttemp = $DSforecasttemp;
$forecasttitles = $DSforecasttitles;
$forecasttext = $DSforecasttext;
} else if ($fcstorg == 'EC') {
and that should let DarkSky be your forecast.
I've updated the
Legacy scripts area with 695a version with these mods.