Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #將全部內容複製後,另存為ea.sh,之後在地牛wake up中選擇此檔案執行,
- #需要先安裝curl指令:sudo apt install curl
- #修改成自己HA的IP:PORT,注意等號左右不能有空格唷!!
- DST=http://192.168.xxx.xxx:8123
- curl -X POST \
- -H "Content-Type: application/json" \
- -d "{ \"level\": \"$1\" , \"seconds\": \"$2\" }" \
- $DST/api/webhook/trigger_ea_command
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement