Author Topic: Temperature Widget Display As Image  (Read 804 times)

SouthForkWeb

  • Jr. Member
  • **
  • Posts: 50
  • Web Coding Master
    • South Fork Web Services
Temperature Widget Display As Image
« on: November 22, 2009, 04:39:43 PM »
I'm working on a project to somehow overlay a temperature reading from my iobridge module onto a live webcam picture. The software I'm using is webcamxp, but i'm open to any suggestions. Webcamxp can overlay a remote image (from a website).

My feature suggestion would be to have the temperature outputs be generated into an image. Similar to the Google-O-Meter, but just display the tempurature only. I know this could turn into a rather tedious task because users would want to customize the text color and background if they were to use images on their websites. But maybe a simple black image with transparent background for now.

Hopefully this is a feasible feature request, and if anyone else has any ideas on how to overlay the live temp on my webcam please PM me and we can start another thread discussing it.
http://SouthForkWeb.com - Professional Web Design and Hosting Services

zero*gx

  • Full Member
  • ***
  • Posts: 116
    • zero*gx
Re: Temperature Widget Display As Image
« Reply #1 on: November 22, 2009, 05:27:50 PM »
for the google-o-meter display style, it already renders into an image, albeit with a solid white background... i believe the graphs are part of a google render, so iobridge probably would have to remake that part of the system on the iobridge servers.

zero*gx | imagineering solutions

jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • ioBridge.com
Re: Temperature Widget Display As Image
« Reply #2 on: November 22, 2009, 05:53:23 PM »
Quote
it already renders into an image, albeit with a solid white background

I think webcamXP has an option to making a color in the image transparent.  So I think the white background might actually be a good thing.

Back in the old days, before ioBridge, I had a temperature sensor that output ASCII to a serial port.  I was able to make a Visual Basic program that read the temperature data, create an image out of the text and saved it on the hard-drive.  Then I had WebcamXP insert the image into the video stream from the image file.  It worked pretty well and updated live.

Since the Google-o-meter is really just a image anyway, I'm sure you could run a script that grabs the temperature data from the ioBridge widget, renders a google-o-meter and then saves the image locally.  Then you can overlay the image into the video stream. 
Jason Winters
ioBridge Developer

zero*gx

  • Full Member
  • ***
  • Posts: 116
    • zero*gx
Re: Temperature Widget Display As Image
« Reply #3 on: November 22, 2009, 09:31:39 PM »
ive never personally used webcamXP, so i have no clue about the options. It might also be possible to have your server take care of making a dynamic image. There was an old web stats tracking widget i used when i first started web design stuff. They took the url to make an image... so for example,

example.com/fff/000/BADA55/temp.png would be the url. It would look at the first level folder (fff) and use that to create the background, followed with the 2nd level folder (000) to render the text, followed by the 3rd level for a logo tint, followed finally by the file name, which was the database variable id for your website.

If webcamxp has the option, that would be easiest.
zero*gx | imagineering solutions

zero*gx

  • Full Member
  • ***
  • Posts: 116
    • zero*gx
Re: Temperature Widget Display As Image
« Reply #4 on: November 22, 2009, 09:32:27 PM »

If webcamxp has the option, that would be easiest.

i mean to use Jason's idea. my idea most definitely not be the easiest.
zero*gx | imagineering solutions