Yahoo weather doesn`t show always time of sunrise

Gratis domotica Forums How can I …? Synology NAS Yahoo weather doesn`t show always time of sunrise

2 berichten aan het bekijken - 1 tot 2 (van in totaal 2)
  • Auteur
    Berichten
  • #3132
    Avatardjandib
    Bijdrager

    Here`s my small workaround for….

    PROBLEM:
    Yahoo weather doesn`t show always time of sunrise
    -> maybe in the morning my shutters stay down 🙁
    ***
    SOLUTION:
    Workaround with persistant variable instead of using Yahoo Service directly!
    ***
    Blockly:
    IF Comparator “WEATHER” weather.sunrise <> TIME 01:00
    DO PHP Block:
    $file = ‘sunrise’;
    $current = file_get_contents($file);
    $current = getValue(“yweather”,”yweather-1″,”7″);
    file_put_contents($file, $current);
    PHP Block:
    $sunrise = file_get_contents(‘sunrise’, FILE_USE_INCLUDE_PATH);
    ***
    In the scene for opening the shutter I refer to the Varable sunrise:
    IF TIME=sunrise
    DO…

    That`s it!

    Greeting
    Andi

    #3229
    MikaMika
    Sleutelbeheerder

    I also have some times this problem. I think it’s linked to the yahoo API itself.
    For the moment everything seems good.

2 berichten aan het bekijken - 1 tot 2 (van in totaal 2)
  • Je moet ingelogd zijn om een reactie op dit onderwerp te kunnen geven.