forked from shihaam/starlink_status
experimental support for editing image with caption
This commit is contained in:
parent
31e961529a
commit
28610bce4c
10
bot.sh
10
bot.sh
@ -5,6 +5,7 @@ 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
|
||||||
weather_file=data/weather_$date.json
|
weather_file=data/weather_$date.json
|
||||||
|
edited_image=data/edited_image_$date.png
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
# Capture a frame from RTSP stream
|
# Capture a frame from RTSP stream
|
||||||
@ -50,6 +51,15 @@ $current_weather
|
|||||||
"
|
"
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
#convert "$image" \
|
||||||
|
# -gravity South \
|
||||||
|
# -font $PWD/JoyPixels.ttf \
|
||||||
|
# -pointsize 20 \
|
||||||
|
# -annotate +0+10 "$caption" \
|
||||||
|
# $edited_image
|
||||||
|
#################################################################################
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
curl -X POST https://api.telegram.org/bot$TG_BOT_API_KEY/sendPhoto \
|
curl -X POST https://api.telegram.org/bot$TG_BOT_API_KEY/sendPhoto \
|
||||||
-F chat_id=$TG_CHANNEL_ID \
|
-F chat_id=$TG_CHANNEL_ID \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user