xtools-at / AssistantPi

Bring both Google Assistant and Alexa to your Raspberry Pi
MIT License
490 stars 50 forks source link

Add additional subprocess python #24

Closed Mcgurk125 closed 6 years ago

Mcgurk125 commented 7 years ago

Where would be the best place to call a python script just before the audio outs? I have an infared blaster and a python script I use to set the audio input on a surround system. I would need to run this script just before the audio out and another after finishing (to change audio input back)

xtools-at commented 7 years ago

check the config.yaml for the event_commands section. you can add shell commands here, which get executed at certain events (e.g. pre_interaction or post_ interaction). if you already installed AssistantPi, this file lives in /etc/opt/AlexaPi/config.yaml

check main.py for where and how those events are triggered.