Giter Site home page Giter Site logo

Comments (8)

adn77 avatar adn77 commented on August 14, 2024

It's basically a wrapper around alexa_remote_control.sh.
That way you can set all configuration via environment variables and don't have to touch the original script.

The line you posted will pass all command line arguments to alexa_rmote_control.sh and redirect Stdout and StdError into a file (while forking into the background at the same time).
The backgrounding and output redirection is really a left-over from my specific use-case (FHEM home automation). I'll modify the post in order to make it less complex.

from alexa-remote-control.

dcaccount avatar dcaccount commented on August 14, 2024

It's basically a wrapper around alexa_remote_control.sh. That way you can set all configuration via environment variables and don't have to touch the original script.

The line you posted will pass all command line arguments to alexa_rmote_control.sh and redirect Stdout and StdError into a file (while forking into the background at the same time). The backgrounding and output redirection is really a left-over from my specific use-case (FHEM home automation). I'll modify the post in order to make it less complex.

Thanks for your reply.

It is exactly what I need, I.e. to be able to make different Echos speak at different volumes for Home Automation purposes, obviously without modifying the original script.

I would be grateful if you could make it a bit easier for not prof like me.

Thanks,
Dan

from alexa-remote-control.

adn77 avatar adn77 commented on August 14, 2024

you would just call the wrapper (in my case alexa.sh) with the options you would otherwise give to alexa_remote_control.sh
e.g. alexa.sh -d Everywhere -e speak:'say something'
The example shows how to populate the different volume variables: DEVICEVOLNAME, DEVICEVOLSPEAK, DEVICEVOLNORMAL
Based on the current time of day the latter two are a little lower during night time.

from alexa-remote-control.

dcaccount avatar dcaccount commented on August 14, 2024

you would just call the wrapper (in my case alexa.sh) with the options you would otherwise give to alexa_remote_control.sh
e.g. alexa.sh -d Everywhere -e speak:'say something'
The example shows how to populate the different volume variables: DEVICEVOLNAME, DEVICEVOLSPEAK, DEVICEVOLNORMAL
Based on the current time of day the latter two are a little lower during night time.

Thanks for replying. The wrapper script is clear to me.

What is not clear is when a device in the DEVICEVOLNAME list speaks at DEVICEVOLSPEAK and on the contrary, when it speaks at DEVICEVOLNORMAL.

In other worlds, I have a standard volume set in the Alexa app but in the case of an alarm (for instance over consumption in the house) I would like to make some Echos speak at 100% to go back immediately afterwards to their standard volume.

How can I achieve this? Please clarify.

Thanks for your great help!
Dan

from alexa-remote-control.

adn77 avatar adn77 commented on August 14, 2024

DEVICEVOLSPEAK is the volume used for most SEQUENCECMDs (weather,traffic,flashbriefing,goodmorning,singasong,tellstory,speak).

The script tries to determine the previously set volume and uses DEVICEVOLNORMAL if that fails.

from alexa-remote-control.

dcaccount avatar dcaccount commented on August 14, 2024

Clear, thanks !

from alexa-remote-control.

dcaccount avatar dcaccount commented on August 14, 2024

DEVICEVOLSPEAK is the volume used for most SEQUENCECMDs (weather,traffic,flashbriefing,goodmorning,singasong,tellstory,speak).

The script tries to determine the previously set volume and uses DEVICEVOLNORMAL if that fails.

Hello,
sorry, I have one last question.

What command shall I give to set the volume of a given Echo, as I were in the Alexa app?

Thanks,
Dan

from alexa-remote-control.

adn77 avatar adn77 commented on August 14, 2024

-e volume:x where x is the 0-100

from alexa-remote-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.