Text overlay colors.

jkthomas3480

Young grasshopper
Joined
Jun 8, 2016
Messages
35
Reaction score
6
Is it possible to use profiles to have a different text overlay for day time and night time? I would like to use a white font during night hours and black during the day. I've tried doing this but I'm not sure text overlay is something that can be set independently in seperate profiles.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,701
Reaction score
38,867
Location
Alabama
Is it possible to use profiles to have a different text overlay for day time and night time? I would like to use a white font during night hours and black during the day. I've tried doing this but I'm not sure text overlay is something that can be set independently in seperate profiles.
I'm not aware of a way but perhaps someone who knows for sure will comment..

In the meantime, to address this (I use BI's time overlay and BIT's weather info overlays) I have made each overlay background a very light or white background and the text very dark or black and this addresses the legibility, even though not very aesthetic I admit.

Of course, the opposite would provide the same effect: dark/black background with light/white text.
 

jkthomas3480

Young grasshopper
Joined
Jun 8, 2016
Messages
35
Reaction score
6
I'm not aware of a way but perhaps someone who knows for sure will comment..

In the meantime, to address this (I use BI's time overlay and BIT's weather info overlays) I have made each overlay background a very light or white background and the text very dark or black and this addresses the legibility, even though not very aesthetic I admit.

Of course, the opposite would provide the same effect: dark/black background with light/white text.
Thank you. It's not a major issue. Just something I was wondering about :)
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,132
Reaction score
1,240
Location
SF Bay Area
Try this...

I haven't yet installed Blue Iris 5, but I've noted that it now lets you issue HTTP commands and run scripts when a profile changes. See the 'On change'' button in the 'Profiles' dialog. This approach should allow you to exploit this capability.

This approach also makes use of the following Blue Iris HTTP Interface command to assign and clear macros up to %99 (Note: the Blue Iris Macros dialog allows you assign only macros %1 to %9).
Code:
/admin?macro=x&text={text}
{text} can also be a *.txt file assignment.
Code:
/admin?macro=x&text=file://{filespec}
(NOTE: A limitation I discovered in Blue Iris 4 that that you cannot assign files to macros above %31. When I notified Ken of this, he said he would remove this limitation in Blue Iris 5, but as previously noted I've not yet installed BI5, so I cannot confirm this.)

APPROACH:
Let's say you have 3 profiles... day, evening, night.
We will assign a different macro to each profile... say %21, %22, %23.
And to each macro, assign a string (or a file, e.g., %21 => C:/macro21.txt, %22 => C:/macro22.txt, %23 => C:/macro22.txt).
The string can contain any URL-legal characters (be sure to use %20 for spaces). File contents are not subject to these limitations.

Instructions:
1. Via the Video Overlay dialog (Image 1), create 3 macros %21, %22, %23 with the text color & background opacity/colors you prefer. To make it easier while tweaking, start with them not on top of each other; you can overlay them when your are done testing.

2. Issue the following Blue Iris HTTP Interface commands to dynamically assign/un-assign text (or files) to the macros when the profile changes...

To 'day'
Code:
http://{yourIPandPort}/admin?macro=21&text=file://C:\macro21.txt&session=session
http://{yourIPandPort}/admin?macro=22&text=&session=session
http://{yourIPandPort}/admin?macro=23&text=&session=session
To 'evening'
Code:
http://{yourIPandPort}/admin?macro=21&text=&session=session
http://{yourIPandPort}/admin?macro=22&text=file://C:\macro22.txt&session=session
http://{yourIPandPort}/admin?macro=23&text=&session=session
To 'night'
Code:
http://{yourIPandPort}/admin?macro=21&text=&session=session
http://{yourIPandPort}/admin?macro=22&text=&session=session
http://{yourIPandPort}/admin?macro=23&text=file://C:\macro23.txt&session=session
NOTES:
1. In the Video Overlay dialog, zero-length (blank) macros display as %nn. See this post.
2. About the '&session=session ' HTTP query parameter, see this post. (This parameter may not be necessary, but it probably cannot hurt to include it.)

Image 1
Blue Iris Video Overlay dialog... before assigning a string (or file) using the HTTP Interface commands above.
overlay1.png
 
Last edited:

jkthomas3480

Young grasshopper
Joined
Jun 8, 2016
Messages
35
Reaction score
6
Try this...

I haven't yet installed Blue Iris 5, but I've noted that it now lets you issue HTTP commands and run scripts when a profile changes. See the 'On change'' button in the 'Profiles' dialog. This approach should allow you to exploit this capability.

This approach also makes use of the following HTTP Blue Iris HTTP Interface command to assign and clear macros up to 99 (Note: the Blue Iris Macros dialog allows you assign only macros %1 to %9).
Code:
/admin?macro=x&text={text}
{text} can also be a *.txt file assignment.
Code:
/admin?macro=x&text=file://{filespec}
(NOTE: A limitation I discovered in Blue Iris 4 that that you cannot assign files to macros above %31. When I notified Ken of this, he said he would remove this limitation in Blue Iris 5, but as previously noted I've not yet installed BI5, so I cannot confirm this.)

APPROACH:
Let's say you have 3 profiles... day, evening, night.
We will assign a different macro to each profile... say %21, %22, %23.
And to each macro, assign a string (or a file, e.g., %21 => C:/macro21.txt, %22 => C:/macro22.txt, %23 => C:/macro22.txt).
The string can contain any URL-legal characters (be sure to use %20 for spaces).

Instructions:
1. Via the Video Overlay dialog (Image 1), create 3 macros %21, %22, %23 with the text color & background opacity/colors you prefer. To make it easier while tweaking, start with them not on top of each other; you can overlay them when your are done testing.

2. Issue the following Blue Iris HTTP Interface commands to dynamically assign/un-assign text (or files) to the macros when the profile changes...

To 'day'
Code:
http://{yourIPandPort}/admin?macro=21&text=file://C:\macro21.txt&session=session
http://{yourIPandPort}/admin?macro=22&text=&session=session
http://{yourIPandPort}/admin?macro=23&text=&session=session
To 'evening'
Code:
http://{yourIPandPort}/admin?macro=21&text=&session=session
http://{yourIPandPort}/admin?macro=22&text=file://C:\macro22.txt&session=session
http://{yourIPandPort}/admin?macro=23&text=&session=session
To 'night'
Code:
http://{yourIPandPort}/admin?macro=21&text=&session=session
http://{yourIPandPort}/admin?macro=22&text=&session=session
http://{yourIPandPort}/admin?macro=23&text=file://C:\macro23.txt&session=session
NOTES:
1. In the Video Overlay dialog, zero-length (blank) macros display as %nn. See this post.
2. About the '&session=session ' HTTP query parameter, see this post.

Image 1
Blue Iris Video Overlay dialog before assigning a string (or file) using the HTTP Interface commands above.
View attachment 43387
Thanks for the info. I have not messed with using macros in BI before. I may give this a try when I get a moment.
 
Top