Yahoo weather doesn`t show always time of sunrise

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

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Mika Mika 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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
    Keymaster

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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.