Page 1 of 1

Add additional Text to "time stamp" per image capt

Posted: Sun Feb 06, 2005 4:06 am
by Computerdude256
I like the "time stamp" on each image that I capture. As a seperate hobby I record outdoor / indoor temperature into a database. I was wondering I could read a value out of the db (or text file for that matter) and insert it as text into the time stamp field on each pic? Keep in mind the temp would change, as the time does...

:idea: I would like to add the outdoor temperature to the outdoor camera's timestamp field....

Thanks

Posted: Sun Feb 06, 2005 11:23 am
by zoneminder
This is an interesting idea. How would you propose it would work best? Either that ZM pulls the temperature from an external location or that something puts it into an area where ZM can read it? Does your temperature come in over a simple serial interface or some other method?

Phil

Gathering temperature data

Posted: Sun Feb 06, 2005 5:09 pm
by Computerdude256
I am currently getting temperature data from a DS1820 sensor (1-wire temperature sensor). I have it interfaced to my serial port via a 1-wire converter. There is an open source application called digitemp that I use to get the data. (It grabs it and converts it to c and f) When I call the application I get the temperature back in decimal format. I could write this value to a file, every 5 min or so. Zoneminder could grab whatever is in the file and append it to the timestamp text?

I think you might have a better way to do this... I don't think there is currently a perl module for the digitemp sensors. I also think that grabbing the temperature off the sensor for each frame (especially in alarm mode) would cause things to slow down, because it does take a second to come back with the data)