experimental support for editing image with caption

This commit is contained in:
Shihaam Abdul Rahman 2023-11-11 23:45:57 +05:00
parent 31e961529a
commit 28610bce4c
Signed by untrusted user: shihaam
GPG Key ID: 6DA2E87EBC227636

10
bot.sh
View File

@ -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 \