Renaming events in database

Support and queries relating to all previous versions of ZoneMinder
Locked
rchurch
Posts: 31
Joined: Thu Feb 16, 2006 3:55 pm

Renaming events in database

Post by rchurch »

I want to run a script to change Event names at regular intervals. To something such as CameraX_YYYYMMDD_HHMM-HHMM. Will doing so directly have an effect on the behaviour of the other scripts, such as video generation etc?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if you rename a file without telling zm you have then zm will not be able to retrieve images. If you need this then i suggest you rename a copy of the data and move it elsewhere as i cannot see how you could tell zm that event 5334656 is realy cammxxxOn12/12/2006 etc etc
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
rchurch
Posts: 31
Joined: Thu Feb 16, 2006 3:55 pm

Post by rchurch »

if you rename a file without telling zm you have then zm will not be able to retrieve images. If you need this then i suggest you rename a copy of the data and move it elsewhere as i cannot see how you could tell zm that event 5334656 is realy cammxxxOn12/12/2006 etc etc
I am referring to the Name column in the Events table, I have no intention of changing the file system.
ZM has an option to rename an event which changes the Name in the Events column, and I wonder that rename is a simple column update in the Events table with no other changes made anywhere else.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

oh i see, i have no idea sorry
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can rename events directly in the database with no knock-on effects elsewhere. They are really just labels and not used for anything else. The same does not apply for the monitor names, which need to be done through the GUI.
Phil
Locked