Toutes mes réponses sur les forums
-
AuteurMessages
-
Hi there!
I found a solution for using a weather API.1) register at https://openweathermap.org/
2) you will get a API-key
3) look for your loacal ID (e.g. Munich=2867714)
4) use this code in a PHP-Blockly:
$url = ‘http://api.openweathermap.org/data/2.5/weather?id=2867714&appid=YOUR_API-KEY&units=metric&lang=de’;
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Accept json/html’, ‘Content-Type text/html’
));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 90);
$output = curl_exec($ch);
curl_close($ch);
$filename = ‘OpenWeather.json’;
file_put_contents(“./”.$filename, $output);
5) you will get a file OpenWeather.jason
6) Use use this code in a PHP-Blockly for using the weather-datas:
$filename = ‘OpenWeather.json’;
$weather_json = file_get_contents(“./”.$filename);
$weather = json_decode($weather_json);$weatherID = $weather->weather[0]->id;
$weatherMain= $weather->weather[0]->main;
$weatherDescription=$weather->weather[0]->description;//Umwandeln von Zeitstempel zu Stunden Minuten Sekunden
$sunrise = date(‘H:i:s’, $weather->sys->sunrise);Good luck.
If you can have any questions feel free to ask
Andi
Workaround (at least for “Sunset” & “Sunrise”)
1) New Scene “sunset”: IF manually startet, THEN PHP-Block: file_put_contents(‘sunset’,date(“H:i”));
2) Add in Prescene “_Variables”:
$sunset = file_get_contents(‘sunset’, FILE_USE_INCLUDE_PATH);3) In all other scenes you can now work just with the variable $sunset
4) IFTTT: IF WeatherUndergrund = Sunset, THEN make Webhook to Pulse-Station start Scene “sunset.xml”If you need more infos, give me a hint
Andi
What about this?
https://openweathermap.org/api/weather-map-2Maybe it`s possible to build a new service like PushOver with every users own API-Key etc..
Sorry, still work on DSM 6.1
(And you know: Never touch a sunning system 😉Andi
Sorry, was away for some month from this topic…
Just have a look in the log of the core:PulseStation/services/log.txt
Hi Mac,
I wrote an article about connecting Alexa with Pulsestation.
You can do the same way with an IFTTT trigger.
Does this help you?
Andi
Hi Michael,
I have 22 devices working with a Synology DS213j with 512 MB.
The restart of the system is always like a walk on eggs.
To speed up the reboot of the poulse-station I first stop the Scene-Service complete.
Even unplug the zwave plugs during reboot process can speed up.
My biggest problem are the Door-/Window sensors…Andi
Hi,
@Koen: I can confirm what Michael says: The template “logs delete” has a problem with zwave.
My scene “Log delete” runs every night at 3:00.Here is the actual output:
���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������2018-03-09 03:03:02.684 Detail, Node041, Received: 0x01, 0x0c, 0x00, 0x04, 0x00, 0x29, 0x06, 0x31, 0x05, 0x04, 0x22, 0x00, 0x00, 0xca
2018-03-09 03:03:02.684 Detail,
2018-03-09 03:03:02.684 Info, Node041, Received SensorMultiLevel report from node 41, instance 1, Power: value=0.0W
2018-03-09 03:03:02.684 Detail, Node041, Refreshed Value: old value=0.0, new value=0.0, type=decimal
2018-03-09 03:03:02.684 Detail, Node041, Changes to this value are not verifiedHi Michael,
i solved it with simply blocky rules:
Yes, I know: in worst case you have to wait 59 seconds…
Does this help you?Andi
Hi Michael,
as I understand Mika isn`t here for a long time.
I try to understand your problem:
You want to steer the position of the lamella angels. so Shutter is DOWN (Dark) and just turn the slats a little bit for getting more light.The parameter open/close I think is only for complete open or close.
I have 6 of the ShutterControls, but work only with the “level”.I cannot test my suggestions, but I would say:
Parameter 10: 2 Venetian Blind Mode, with positioning
Parameter 12: Default 150 -> In Venetian Blind mode (parameter 10 set to 2) the parameter determines time of full turn of the slatsAndi
Why even not start with a small national standard?
Maybe just for a prototype…Are here any developers in the forum who can take a look at this implementation?
Andi
Solution found by myself:
Almost like written in https://www.pulse-station.com/ifttt-service/
1) If THIS (Service is called: WEBHOOKS)
2) for using a power-switch you need 2 trigger: power-1-on & power-2-off
3) make 2 devices in Pulse-Station
4) steer it simple via blocklyGreeting from Munich
AndiI don`t know if someone is interested in this topic anymore…
The same way work with Google assistant, too 😉
Hi Koen,
please give me a sign of you need a laboratory rat 😉
My system is runnging perfect since some weeks.
Time to change..
AndiHi Raven,
actually I make some experiments with a Pulsestation Skill and I can confirm: It works even without user/password if you use a external IP.With DynDNS I don`t get any result.
In the Core log is only written a “Core : Security True…1”Andi
-
AuteurMessages