Yahoo weather doesn`t show always time of sunrise

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

Mots-clés : 

Ce sujet a 1 réponse, 2 participants et a été mis à jour par Mika Mika, il y a 1 an et 7 mois.

2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #3132

    djandib
    Participant

    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
    Mika
    Mika
    Admin bbPress

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

2 sujets de 1 à 2 (sur un total de 2)

Vous devez être connecté pour répondre à ce sujet.