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