diff --git a/bot.sh b/bot.sh index 9b9cf04..cbba69f 100755 --- a/bot.sh +++ b/bot.sh @@ -5,6 +5,7 @@ date=$(date "+%Y%m%d_%H%M%S") image=data/image_$date.png speedtest_result=data/speedtest_$date.txt weather_file=data/weather_$date.json +edited_image=data/edited_image_$date.png ################################################################################# # 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 \ -F chat_id=$TG_CHANNEL_ID \