视频演示:点我观看

配置如下:
configuration.yaml

  1. input_text:
  2. text1:
  3. name: Text 1
  4. pattern: '[a-fA-F0-9]*'

scripts.yaml

  1. effacetodolist:
  2. alias: Efface ToDo Miroir
  3. sequence:
  4. - alias: Efface la ToDo List sur le miroir
  5. service: shell_command.todoclear
  6. addtodolist:
  7. alias: Add ToDo Miroir
  8. sequence:
  9. - alias: Add la ToDo List sur le miroir
  10. service: shell_command.todoadd
  11. effacetodolistid:
  12. alias: Efface ToDo Miroir id
  13. sequence:
  14. - alias: Efface un element de la ToDo List
  15. service: shell_command.todoclearid

shell_command.yaml

  1. todoadd: /usr/bin/curl -G -v http://[IP_MIROIR]:[PORT]/AddMemo?memoTitle=ToDo --data-urlencode "item={{states.input_text.text1.state}}"
  2. todoclear: /usr/bin/curl -G -v http://[IP_MIROIR]:[PORT]/RemoveMemo?memoTitle=ToDo --data-urlencode "item=ALL"
  3. 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