High & low temperatures
-
Hi tuxlog,
I finally figured out that PayPal only allows guest checkouts if you have a business or premium account, so I set up a PayPal account so as to send you a donation. Thank you again for this plugin.
I added a couple of lines in file wp-forecast-show so as to display high & low temperature for the current day:
`if (substr($dispconfig, 3, 1) == “1”)
{
$out.= $w[“temperature”] . “<br>\n”;
$out.= “High ” . $w[‘fc_dt_htemp_0’] . “F / Low “. $w[‘fc_dt_ltemp_0’] . “F <br>\n”;
}`
but the results are off.Currently the site is displaying “High -16.26F / Low -18.33F” but when I check the weather for Fairbanks on DarkSky itself, the high & low temps are -21 and -39.
The Weather Channel is showing H -24° / L -31°.
Any idea how to fix this? In file func_darksky.php I set:
$w['fc_dt_htemp_'.$i] = $weather_array['daily']['data'][$i]['temperatureHigh']; $w['fc_dt_ltemp_'.$i] = $weather_array['daily']['data'][$i]['temperatureLow'];
as otherwise the high & low temps were set to be the same. I figured that index 0 is for the current day.
The page I need help with: [log in to see the link]
- The topic ‘High & low temperatures’ is closed to new replies.