Newline in Timestamp and %Q
Posted: Thu Mar 05, 2020 8:57 pm
In my system I am using ZMTrigger and the %Q option for Timestamp and would like to insert a newline before the external data provided by %Q.
Using a Timestamp string of:
This shows the name, date, time, and external data [testingOSD] on one line.
There have been some references to using \n for a newline in the Timestamp for Zoneminder. Specifically in release notes;
Has anyone else noticed this behavior and found a workaround for it?
Using a Timestamp string of:
Then using telnet:%N - %d/%m/%y %H:%M:%S %Q
for example.1|show||||testingOSD
This shows the name, date, time, and external data [testingOSD] on one line.
There have been some references to using \n for a newline in the Timestamp for Zoneminder. Specifically in release notes;
For me, using %n works instead of \n to insert a newline in the display and text following the newline works; however, the %Q does not anymore. In fact; it appears that since getting a newline to work, %Q no longer works at all, on any monitor. After restarting Zoneminder without any %n in the Timestamp string, the %Q functionality returns.Release 1.22.3 - 2006/11/23 FEATURE : The timestamp displayed on images can now contain newlines. Use the \n (a ‘slash’ followed by an ‘n’) to represent that.
Has anyone else noticed this behavior and found a workaround for it?