# Erstellt von http://heupel.family # http://heupel.family/smarthome-active-notifications-mit-homematic-und-alexa/ from bottle import route, run, template import subprocess @route ('/speak/') def index(textstring): speakstring = '/root/alexa/alexa_remote_control_plain.sh -d Esszimer -e speak:\''; speakstring = speakstring + textstring; speakstring = speakstring + '\''; subprocess.call(speakstring, shell=True) return template('{{textstring}}!', textstring=textstring) run(host='0.0.0.0', port=8080, debug=True)