Author Topic: WebcamXP overlay temperature on image  (Read 5752 times)

0 Members and 1 Guest are viewing this topic.

Offline capeweather

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 1309
    • http://www.capeweather.com
WebcamXP overlay temperature on image
« on: January 06, 2008, 08:25:58 PM »
Ok, I was just playing around in the WebcamXP forums and found a cool little write up. This may be helpful to some of the users running WebcamXP who would like to display the temperature on your webcam image. I may give this a shot when I have some time. Forum link below.

http://www.darkwet.net/darkboard2/topic.asp?TOPIC_ID=8136&SearchTerms=overlay

Chris
Cape Coral, Florida
Website: http://www.capeweather.com
Website: http://www.fortmyersweather.net

Offline racenet

  • Forecaster
  • *****
  • Posts: 1306
    • NH Weather Data
Re: WebcamXP overlay temperature on image
« Reply #1 on: January 06, 2008, 08:39:29 PM »
Chris,

Please let me know if you get this to work. I've tried it and didn't have much success.



Bob
www.theamericanflagstore.com - The American Flag Store



www.nhweatherdata.com - NH Weather Data

Offline Jiles111

  • Member
  • *
  • Posts: 38
    • MyCams
Re: WebcamXP overlay temperature on image
« Reply #2 on: January 21, 2008, 09:58:34 PM »
I have used Snagit to "Copy" a section of a screen and make it a jpg. Then make Wxp put in that image on with a refresh. But when you factor in the cost of Snagit, you can buy another webcam software like Active Webcam that has that feature built in. I currently use both Active Webcam and WebcamXP for work and home.

Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: WebcamXP overlay temperature on image
« Reply #3 on: January 21, 2008, 10:50:26 PM »
I'll bet you could use Imagemagick to create that jpeg... and it's free...

I use imagemagick to take the hi-res jpeg from a point and shoot cam and add to the bottom some weather data... can't offer much more than that, as I just played with it a bit using an example in their documentation...

<edit>
Ok, curiosity got the best of me... here's how to create a gif image (or you could make it jpeg) with weather data, using imagemagick.

By using a *.htx file processed by Weatherlink (or whatever method you'd use to get the current data), I grab current data:
(Weatherlink has a string length limit for processing, which I exceeded, so I broke it up into pieces)

set stationdate=<!--stationDate-->
set stationtime=<!--stationTime-->
set outsidetemp=<!--outsideTemp-->
set hioutsidetemp=<!--hiOutsideTemp-->
set hioutsidetemptime=<!--hiOutsideTempTime-->
set lowoutsidetemp=<!--lowOutsideTemp-->
set lowoutsidetemptime=<!--lowOutsideTempTime-->
set humidity=<!--outsideHumidity-->

That will give me:

set stationdate=01/21/08
set stationtime=10:42p
set outsidetemp=33.8
set hioutsidetemp=39.8
set hioutsidetemptime= 3:38p
set lowoutsidetemp=21.6
set lowoutsidetemptime= 7:01a
set humidity=55

The *.htx file in essence ends up as a *.bat file, with the following added:

convert -background Yellow -pointsize 18 label:"%stationdate% %stationtime% Currently %outsidetemp%F Hi
%hioutsidetemp%F at %hioutsidetemptime%  Lo %lowoutsidetemp%F at %lowoutsidetemptime%  %humidity%%% Humidity" ribbon.gif

which will produce:
« Last Edit: January 21, 2008, 11:26:06 PM by ncpilot »
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink

Offline Jiles111

  • Member
  • *
  • Posts: 38
    • MyCams
Re: WebcamXP overlay temperature on image
« Reply #4 on: January 22, 2008, 08:26:34 PM »
That works to  =D&gt;

Nice one.

Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: WebcamXP overlay temperature on image
« Reply #5 on: January 22, 2008, 10:47:36 PM »
Well... I tell myself it's an educational exercise... because I don't really want to buy more software, so I use free stuff...

Finally figured out how to use autoit to start my Canon camera control software, so my hi-res image capture and upload is all automated now... it only involves using about 3-5 different steps, scheduling, and software! :) But all free!  :lol:
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink