• 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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Hi DarthTater,

    thank you very much for your donation.

    On first look this should be working. I will try it myself to find what’s wrong and give you feedback during the next days.

    Plugin Author tuxlog

    (@tuxlog)

    Hi DarthTater,

    I tried your patch today and your patch looks okay to me.
    I am not sure where the difference you reported comes from.

    First of all we should check if the API from DarkSky gives the same values.
    You can enter the URL in any browser and you get an JSON result displaying all the weather conditions wp-forecast uses.

    https://api.darksky.net/forecast/<your api key>/<lat>,<lon>/?exclude=minutely,hourly&units=si&lang=en

    Please replace the values in <…>. Can you try this please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘High & low temperatures’ is closed to new replies.