alexa-pi / AlexaPi

Alexa client for all your devices! # No active development. PRs welcome # consider https://github.com/respeaker/avs instead
MIT License
1.33k stars 396 forks source link

How can i make Alexa to trigger/execute a script .sh file i have in my Pi with a custom trigger word please? #378

Closed jabulonboaz closed 6 years ago

jabulonboaz commented 6 years ago

How can i make Alexa to trigger/execute a script .sh file i have in my Pi with a custom trigger word ? E.g "Alexa trigger wifi on" and then a wifi_on.sh script is executed from within my Pi. Or say “Alexa turn on projector” and then a script I have called say ‘projector_on.sh’ is executed in the Pi locally?

jabulonboaz commented 6 years ago

Anyone pls?

renekliment commented 6 years ago

Since this is pretty frequently asked, it's now in the F.A.Q.: https://github.com/alexa-pi/AlexaPi/wiki/Q&A-(FAQ)#how-do-i-run-a-local-command--script-when-i-say-x

renekliment commented 6 years ago

@jabulonboaz The link works. Make sure you click it so you don't miss something in the URL. You can also get there from local wiki. Post a screenshot if your issue persists.

jabulonboaz commented 6 years ago

@renekliment thank u i found it now but the answer is very disappointing as i lack the skills to do number 2 and even though i know how to write my own skill and have done so in the past to do option 1 that won't work for my original ask which is local integration as in everything is triggered from the Pi HW behind the same LAN.