I did some more research and figured out one way to do it.

   - created a skin with a minimal 'current.html.tmpl' file with the string 
   I want overlaid on the image
   - I already have a webcam taking a snapshot every few minutes ('motion' 
   running on a raspi with a usb cam)
   - created a quick script to overlay the data on the image


Script contents:

# 
https://stackoverflow.com/questions/40880237/how-to-add-bottom-box-and-text-to-a-picture-in-linux
MSG=`cat /mnt/ramdisk/current.html`
convert /mnt/ramdisk/motion/image.jpg -alpha on                             
       \
  \( +clone -scale x5% -threshold 101% -channel A -fx "0.5" \) \
  -gravity north -composite                                     \
  -fill white -pointsize 18 -annotate 0,0 "${MSG}" 
/mnt/ramdisk/motion/image-overlaid.jpg

Template file 'current.html.tmpl' contents:

current=$current.outTemp.raw F, max=$day.outTemp.max.raw F, 
min=$day.outTemp.min.raw F

Example output:

[image: image-overlaid.jpg]


-- 
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/411ffe61-cd2d-4229-bd03-6aa6e650f4cen%40googlegroups.com.

Reply via email to