视频演示:点我观看
配置如下:
configuration.yaml
input_text:
text1:
name: Text 1
pattern: '[a-fA-F0-9]*'
scripts.yaml
effacetodolist:
alias: Efface ToDo Miroir
sequence:
- alias: Efface la ToDo List sur le miroir
service: shell_command.todoclear
addtodolist:
alias: Add ToDo Miroir
sequence:
- alias: Add la ToDo List sur le miroir
service: shell_command.todoadd
effacetodolistid:
alias: Efface ToDo Miroir id
sequence:
- alias: Efface un element de la ToDo List
service: shell_command.todoclearid
shell_command.yaml
todoadd: /usr/bin/curl -G -v http://[IP_MIROIR]:[PORT]/AddMemo?memoTitle=ToDo --data-urlencode "item={{states.input_text.text1.state}}"
todoclear: /usr/bin/curl -G -v http://[IP_MIROIR]:[PORT]/RemoveMemo?memoTitle=ToDo --data-urlencode "item=ALL"
todoclearid: /usr/bin/curl -G -v http://[IP_MIROIR]:[PORT]/RemoveMemo?memoTitle=ToDo --data-urlencode "item={{states.input_text.text1.state}}"
文档更新时间: 2017-09-10 04:04 作者:Tristan