Amazon Echo support: voice control: Using DDNS

Domotica gratuit Forums How can I …? Synology NAS Amazon Echo support: voice control: Using DDNS

Ce sujet a 2 réponses, 2 participants et a été mis à jour par  djandib, il y a 5 mois et 3 semaines.

3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #4071

    djandib
    Participant

    According to Lisas article:

    Actually Pulse-Station doesn`t accept Web requests via DDNS.
    So if you don`t have a steady internet IP you need a little Workaround!

    Here we go:
    1) create a new alexa.php in the mainfolder of Pulsestation:

    <?php
    if($_GET[‘secret’]==”123456″ && $_GET[‘action’]==1){
    $temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|true”);
    elseif($_GET[‘secret’]==”123456″ && $_GET[‘action’]==2){
    $temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|false”);
    }

    secret=phrase; LocalIP=your IP, where PulseStation is installed

    2) at IFTTT.com you make a webrequest with this parameter:
    http://DDNS/PulseStation/alexa.php?secret=best&action=1
    OR
    http://DDNS/PulseStation/alexa.php?secret=best&action=2

    DDNS=e.g. “xy.selfhost.eu”

    Thats`s all.
    A lot of thanx to Koen for his patience to create this workaround.

    Andi

    #4124

    bambuz
    Participant

    I have no clue about php so could you please explain this a little bit more?
    Which ports do i need to open in the firewall? 4020 for all tasks?
    Are there only 2 actions possible?
    Can I use the script without a secret phrase?
    What means best&action?

    Thanks a lot.

    #4126

    djandib
    Participant

    Hi bambuz,
    4020 must be open (But this should already be opened to control PulseStation from outside home)
    As afar as I know there are no limits of numbers of actions.
    I took only 2 in this example to explain the howto.
    Im not sure abaout the secret phrase. Maybe you dont need it, but think of security.

    best&action:
    Thank you for hint. Was an error in copy and paste. Before I took “123456” I had “bestsecretoftheworld” 😉

    Maybe this should work, too:
    ****
    <?php
    if($_GET[‘action’]==1){
    $temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|true”);
    elseif($_GET[‘action’]==2){
    $temp = file_get_contents(“http://LocalIP:4020/message=1|HUB|vdevices|UPDATEPROPERTY|vdevices-26|1|false”);
    }
    ?>
    ****
    http://DDNS/PulseStation/alexa.php?action=1
    OR
    http://DDNS/PulseStation/alexa.php?action=2
    ****
    Unless IFTTT doesn`t understand another languages, you have to make the call in englisch.
    Or mix e.g. Englisch/German: “Alexa, trigger daheim”.
    In this point you have to look for the right “combination” 😉

    Greetings from Munich
    Andi

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

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