forked from shihaam/starlink_status
loop the whole thing
This commit is contained in:
parent
07e74e6d07
commit
b6b0f55b82
7
bot.sh
7
bot.sh
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source .env
|
source .env
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
|
||||||
date=$(date "+%Y%m%d_%H%M%S")
|
date=$(date "+%Y%m%d_%H%M%S")
|
||||||
image=data/image_$date.png
|
image=data/image_$date.png
|
||||||
speedtest_result=data/speedtest_$date.txt
|
speedtest_result=data/speedtest_$date.txt
|
||||||
@ -67,3 +70,7 @@ curl -X POST https://api.telegram.org/bot$TG_BOT_API_KEY/sendPhoto \
|
|||||||
-F caption="$caption" \
|
-F caption="$caption" \
|
||||||
-F parse_mode=Markdown
|
-F parse_mode=Markdown
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
|
sleep $DELAY
|
||||||
|
|
||||||
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user