Comments (8)
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.
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.
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.
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.
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.
Clear, thanks !
from alexa-remote-control.
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.
-e volume:x where x is the 0-100
from alexa-remote-control.
Related Issues (20)
- Two issues Cannot find jq and cannot refresh token HOT 2
- how to use "sound:<soundeffect_name>" HOT 4
- Tunein Jingle HOT 8
- "Phantom" device, how to remove?
- Seems answer from "-lastalexa" is changed by Amazon HOT 2
- 20220617 - "Strange" REFRESH_TOKEN generated by alexa-cookie-cli HOT 2
- Trouble Installing HOT 1
- setting default device to: ERROR: unknown device dev: HOT 10
- <InternalFailure/> from Play & Pause // parse error from jq? HOT 6
- Multiple errors "date: invalid date" HOT 14
- Can't get the script to speak HOT 5
- Old Linux Distri with jq 1.4 and curl 7.38 script error with solution ;-)
- Initial login page has changed HOT 2
- Failed writing body HOT 2
- ERROR: cookie retrieval with refresh_token didn't work HOT 2
- Error -lastalexa and -last command HOT 20
- Login procedure does not work anymore (even with new uri) HOT 2
- alexa_remote_control.sh dosn't recieve a cookie anymore... HOT 2
- Return code for commands given to alexa-remote-control HOT 1
- no idea how to use it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexa-remote-control.