
随便弄了个
#Android #脚本 #热点机 #热点机相关 #固定热点机IP
设置触发器 连上 Wi-Fi 时, 发送 Bark 通知
# name
name="Redmi%20Note%209%20Pro%205G"
# Bark token
bark="xxxxxxxxxxxxxxxxxxxxxx"
ip=`ip addr show wlan0 | grep 'inet ' | cut -d ' ' -f 6 | cut -d / -f 1`
if [[ ${ip} ]]; then
curl --location --request POST "https://api.day.app/${bark}/${name}/${ip}" \
--header 'Content-Type: application/json' \
--data-raw "{
\"autoCopy\": 1,
\"isArchive\":1,
\"icon\": \"https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/SSID_Alt.png\",
\"sound\": \"shake\",
\"level\": \"timeSensitive\",
\"url\": \"${url}\"
}"
fi

相关内容:

在热点开启的情况下发送 Bark 通知 方便在连接的设备上远程控制热点机的 Clash(非固定热点机 IP 的时候有点用):
https://t.me/zhetengsha/78
固定热点机 IP:
https://github.com/XhyEax/SoftApHelper
查看热点机电量:
https://t.me/zhetengsha/156