djandib

Toutes mes réponses sur les forums

15 sujets de 1 à 15 (sur un total de 117)
  • Auteur
    Messages
  • en réponse à : Yahoo weather doesn`work anymore #12041
    Avatar
    djandib
    Participant

    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

    en réponse à : Yahoo weather doesn`work anymore #12036
    Avatar
    djandib
    Participant

    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

    en réponse à : Yahoo weather doesn`work anymore #12034
    Avatar
    djandib
    Participant

    What about this?
    https://openweathermap.org/api/weather-map-2

    Maybe it`s possible to build a new service like PushOver with every users own API-Key etc..

    en réponse à : DSM 6.2 #11949
    Avatar
    djandib
    Participant

    Sorry, still work on DSM 6.1
    (And you know: Never touch a sunning system 😉

    Andi

    en réponse à : launch a scene with ifttt triger #11948
    Avatar
    djandib
    Participant

    Sorry, was away for some month from this topic…
    Just have a look in the log of the core:

    PulseStation/services/log.txt

    en réponse à : launch a scene with ifttt triger #11909
    Avatar
    djandib
    Participant

    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

    en réponse à : Roller shutter 2 #11866
    Avatar
    djandib
    Participant

    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

    en réponse à : ZWave Log does not stop… #11865
    Avatar
    djandib
    Participant

    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 verified

    en réponse à : Event with Fibaro Mension Sensor #11841
    Avatar
    djandib
    Participant

    Hi Michael,
    i solved it with simply blocky rules:
    blocky

    Yes, I know: in worst case you have to wait 59 seconds…
    Does this help you?

    Andi

    en réponse à : Lamella Angle with Fibaro Roller Shutter #11831
    Avatar
    djandib
    Participant

    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 slats

    Andi

    en réponse à : Connect to Zigbee #11830
    Avatar
    djandib
    Participant

    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

    en réponse à : steer a WLAN Power plug via IFTTT #11819
    Avatar
    djandib
    Participant

    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
    https://www.screencast.com/t/Og2h7tAe
    4) steer it simple via blockly

    Greeting from Munich
    Andi

    en réponse à : Amazon Echo support: voice control: Using DDNS #11817
    Avatar
    djandib
    Participant

    I don`t know if someone is interested in this topic anymore…

    The same way work with Google assistant, too 😉

    en réponse à : Imperihome with Aeotec Multi-Sensor 6 ZW100-C #11797
    Avatar
    djandib
    Participant

    Hi Koen,
    please give me a sign of you need a laboratory rat 😉
    My system is runnging perfect since some weeks.
    Time to change..
    Andi

    en réponse à : Amazon Echo support: voice control: Using DDNS #11783
    Avatar
    djandib
    Participant

    Hi 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

15 sujets de 1 à 15 (sur un total de 117)