Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Running external script - TTS Alexa


Question

Posted

So, dont shoot the newbie :)

 

What i want:  Let alexa speak out some actions, from a QA. Like when i open the shades, i can add a QA with a variable that inserts the words in a syntax that will run in a script on a external system.

 

What i acomplished: Shell script, that i run locally. Thats sends a TTS command to my Echo show. Alexa speaks! Works perfect.

 

So, i have a virtualbox running with ubuntu, i can start a syntax that sends out command to my echo show, and it speaks.

The plan is to have a rpi running this script. (or anything else, i'd like some suggestions"

 

Would this be possible with a QA ?

 

 

 

 

5 answers to this question

Recommended Posts

  • 0
Posted

Hi, is it possible to post how you do htis?

Please login or register to see this code.

Thanks in advance,

//Sjakie

  • 0
  • Inquirer
  • Posted
    8 hours ago, Sjakie said:

    Hi, is it possible to post how you do htis?

    Please login or register to see this code.

    Thanks in advance,

    //Sjakie

     

    Ofcourse, i assume you have some linux machine you can run this on:

     

    Please login or register to see this link.

     

    There you have the script, you only need to edit it with your credentials. And amzon.DE or .COM

    The cookie part, and MFA (i dont use) is important. Otherwise you will get login errors.

    Also i needed an extra pacakage install. JQ - For filtering the JSON data.

     

    If you have multiple Echo devices, be sure to select the one you want to play with.

     

    Please login or register to see this code.

    This will send the TTS to the selected Echo device

     

    Please login or register to see this code.

     

    This will send the TTS to the first in the decive list on amazon.com/de 

     

    More about this:

     

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted (edited)

    Oke, my knowledge is minimal. I hope someone can help me out.

     

    I am testing the setup. I need a LUA code, that can do a SSH login and execute.

    What do i do ? This is what i have.

     

    ssh running on: 192.168.1.21

    script location: //home/peter/Downloads$

    script filename: alexa_remote_control.sh

    string to execute: ./alexa_remote_control.sh -e speak:'Welcome back buddy!'

     

    If all works, i would like to make a variable for entry "Welcome back.....

     

     

     

     

     

     

     

    Edited by ppeterr
    • 0
  • Inquirer
  • Posted

    Oke, this seems to be much to complex for me :) My head explodes. I am not 

    the expert i would like to be, so i cant achive at the moment what i would like to do with the HC3.

     

    Anyway i found @SebastianD his topic. And well that worked out a little bit better.

    Please login or register to see this link.

     

    Only thing is that he made it with a vritual device, and i cant use that.

     

    Maybe someone else already got this up and running at the HC3 ?

     

     

     

     

    • 0
  • Inquirer
  • Posted (edited)

    Big brain /me worked it out :)

     

    I now have a quickapp, where i can add a variable "what to say". That variable gets inserted in a small php code that opens on a LAMP server and executes the TTS on my echo show.

     

    To be continued....

     

     

    Edited by ppeterr

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...