Add additional Text to "time stamp" per image capt

Support and queries relating to all previous versions of ZoneMinder
Locked
Computerdude256
Posts: 3
Joined: Sat Jan 29, 2005 1:37 am

Add additional Text to "time stamp" per image capt

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
Computerdude256
Posts: 3
Joined: Sat Jan 29, 2005 1:37 am

Gathering temperature data

Post 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)
Locked