You can also decide between white and black image dependig on background
with this code
MEAN=$(identify -format "%[fx:mean>0.60?1:0]\n"
/home/pi/partwhereclockshouldgoto.png)
if [ $MEAN -lt 1 ]; then
# White
clock_img=/home/pi/Clock/V4/$(printf CHDK_Uhr_%04d.png $minutes)
else
# Black
clock_img=/home/pi/Clock/V2/$(printf CHDK_Uhr_%04d.png $minutes)
fi
Am Donnerstag, 19. März 2020 07:43:14 UTC+1 schrieb Mikael Fredriksson:
>
> Great! Thank you!
>
> Mikael
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/a74c4639-3c3d-4847-93ff-e686c5436707%40googlegroups.com.