Update mqtt_sub.sh

pull/1681/head
Huang jinlong 2024-12-11 06:04:50 +08:00 committed by GitHub
parent 016e205f22
commit 8bcd5a915a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

View File

@ -20,4 +20,23 @@ mosquitto_sub -h "$host" \
echo "收到触发消息,执行脚本!"
/usr/sbin/channels.sh 8 2000 # 在此处替换为实际要执行的脚本
fi
if [[ "$message" == "1080" ]]; then
echo "收到触发消息,执行脚本!"
/root/1080.sh # 在此处替换为实际要执行的脚本
fi
if [[ "$message" == "3k" ]]; then
echo "收到触发消息,执行脚本!"
/root/3K.sh # 在此处替换为实际要执行的脚本
fi
if [[ "$message" == "720" ]]; then
echo "收到触发消息,执行脚本!"
/root/720.sh # 在此处替换为实际要执行的脚本
fi
if [[ "$message" == "4k" ]]; then
echo "收到触发消息,执行脚本!"
/root/4K.sh # 在此处替换为实际要执行的脚本
fi
done