customize scale and location of meter

This commit is contained in:
Shihaam Abdul Rahman 2023-11-21 10:19:40 +05:00
parent 0c81f7a1fe
commit c11d561bba
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 13 additions and 2 deletions

10
bot.sh
View File

@ -175,9 +175,15 @@ convert $upload_meter \
$speedtest_upload_meter $speedtest_upload_meter
convert $camera_image \ convert $camera_image \
\( $speedtest_download_meter -gravity southwest -geometry +10+0 \) \ \( $speedtest_download_meter \
-resize $METER_SCALE% \
-gravity southwest \
-geometry +10+0 \) \
-composite \ -composite \
\( $speedtest_upload_meter -gravity southwest -geometry +510+0 \) \ \( $speedtest_upload_meter \
-resize $METER_SCALE% \
-gravity southwest \
-geometry +$UPLOAD_METER_LOCATION+0 \) \
-composite \ -composite \
$speedtest_meter_image $speedtest_meter_image
################################################################################# #################################################################################

View File

@ -15,3 +15,8 @@ RTSP_URL=rtsp://
# Use some maps service to fetch this, this is used to fetch weather from API. (Default is Male', Maldives) # Use some maps service to fetch this, this is used to fetch weather from API. (Default is Male', Maldives)
LATITUDE="4.1752" LATITUDE="4.1752"
LONGITUDE="73.5092" LONGITUDE="73.5092"
# Change these as you see fit based on RTSP image resolution
UPLOAD_METER_LOCATION=510
METER_SCALE=100