Yay!  Finally got this working, here's what I did..

motion.conf:

############################################################
# Control options
############################################################

# To protect HTTP Control by username and password, use this option for HTTP
# 1.1 Basic authentication. The string is specified as username:password. Do
# not specify this option for no authentication. This option must be placed in
# motion.conf and not in a thread config file.
control_authentication username:password

# Limits the http (html) control to the localhost. This option must be placed
# in motion.conf and not in a thread config file.
control_localhost on

# Enable HTML in the answer sent back to a browser connecting to the control_port.
# This option must be placed in motion.conf and not in a thread config file.

control_html_output on

# Sets the port number for the http (html using browser) based remote control.
# This option must be placed in motion.conf and not in a thread config file.
control_port 9080

Then wrote a very simple script which utilizes pymetar to fetch weather data (http://www.schwarzvogel.de/software-pymetar.shtml) and since I have two cameras I have to update both instances

weather.sh:

#!/bin/sh
WEATHER=`/usr/bin/weather.py cyul | grep Temperature`
/usr/bin/wget --delete-after "http://username:password@localhost:9080/1/config/set?text_left=http://webcam.northco.net/\nCamera 1 - Montreal, Quebec - $WEATHER"
/usr/bin/wget --delete-after "http://username:password@localhost:9080/2/config/set?text_left=http://webcam.northco.net/\nCamera 2 - Montreal, Quebec - $WEATHER"

And there you go, just stick this in a crontab once an hour and you have weather text updating on your webcam image!

Thanks for all the help!

On Tue, Dec 30, 2008 at 8:27 AM, Bogdan Lucaciu <bogdan.lucaciu@gmail.com> wrote:
On Tue, Dec 30, 2008 at 3:22 AM, Jeff Groves <jgroves@krenim.org> wrote:
> In the past, I have used ppmlabel to add text to images.
>
> >From my limited understanding, you have to convert the image to .pnm format
> before adding the text and then convert it back to .jpg when you're done.
>
> Here's a script snippet of how I added the date to images before I used
> started using motion:
>
> #!/bin/bash
>
> ## retrieve the JPEG image from the camera
> wget --http-user=user --http-passwd=pass -t 1 --timeout=8 -O next.jpg
> http://192.168.0.1/IMAGE.JPG
> ## check whether the retrieval was successful or not
> RETVAL=$?
> if [ "$RETVAL" = "0" ]
> then
>    ## convert image to .pnm format
>    jpegtopnm next.jpg > next.pnm
>    ## add date string to image and convert it back to .jpg
>    ppmlabel -x 245 -y 472 -angle 0 -background black -color white  -size 8
> -text "| `date +"%d-%b-%Y %H:%M:%S"` |" next.pnm | pnmtojpeg > webcam.jpg
>    ## create a thumbnail image of the same image
>    pnmscale -reduce 3 next.pnm | pnmtojpeg > webcam-thumb.jpg
> fi
>
>
> The utilities jpegtopnm, ppmlabel, pnmtojpeg, and pnmscale are all provide
> by "netpbm" package of utilities that are available on sourceforge and most
> OS distributions.

hmm, if you're going this route you may find imagemagick's annotate
feature useful (use the mogrify command to alter an image , with the
annotate param)

http://www.imagemagick.org/Usage/annotating/

--
Bogdan Lucaciu

------------------------------------------------------------------------------
_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome