Calling a specific ptz preset from BI app?

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
821
Reaction score
1,330
Location
USofA
Is it possible to call a specific ptz preset from within the BI Android app? For example, I want to call preset 69 or 70 to adjust my cams IR spot light.
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
821
Reaction score
1,330
Location
USofA
The presets do not go numerically high enough. They only go to number 19. There are bunch after that listed as "undefined", and I can rename those to the numbers I want, but does renaming actually change the preset # that is sent to the camera?
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
Gotcha... ‘69’ is a preset defined on the camera.

You can assign 69 to any Blue Iris slot up to 40 via the UI. See the next screenshot. Here I’ve assigned camera preset name ‘5’ to BI preset slot 40. (I’ve just re-tested it and it works for me). In your case, change the Name/value field to ‘69’ and the Description field to ‘Preset 69’ and it should appear in your app’s preset dropdown list.

1604591097778.jpeg
 
Last edited:

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
Perhaps also of interest...
If you don’t have access to the app, the following HHTP command can be used by any browser.
1604592116022.jpeg

Furthermore, while the Blue Iris UI and apps only show 40 presets, the web server will accept presets up 99. For BI presets >40, you need to define the preset in the registry, e.g.,
1604592233716.jpeg

These easjest way to create a new camera preset in the registry is to
1. Export an existing preset (select it on the left panel, then click File > Export)
2. Open the exported *.reg file in a text editor like Notepad++
3. Edit the registry keys as desired
1604592927403.jpeg
4. Save the file
5. Double-click the file and allow Windows to update the registry.
 
Last edited:

sebastiantombs

Known around here
Joined
Dec 28, 2019
Messages
11,511
Reaction score
27,690
Location
New Jersey
I gotta ask, how the hell can you remember more than even 10 presets or do you carry a cheat sheet? :)
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
821
Reaction score
1,330
Location
USofA
I gotta ask, how the hell can you remember more than even 10 presets or do you carry a cheat sheet?
lol.. true... I only have about 4 real presets, but there are certain perm presets on the camera that are commands, not actual presets. And those preset #'s are the ones in the 60's or 70's.
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
821
Reaction score
1,330
Location
USofA
Any way to control the iris on a ptz through BI app? Now that I can send preset #70, in order to control the brightness of the hi-beam IR, i use the + or - of the iris control in the native ptz cam web interface.
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,126
Reaction score
1,237
Location
SF Bay Area
Any way to control the iris on a ptz through BI app?
Your best bet may be to find a HTTP command for your camera and assign as a web request action using the ‘On call...’ feature in the preset edit dialog (see screenshots).
1604643766351.jpeg '1604643804458.jpeg

If it’s a Dahua ptz cam, this command syntax might work...
http://<ip>/cgi-bin/ptz.cgi?action=[action]&channel=[ch]&code=[code]&arg1=[argstr]& arg2=[argstr]&arg3=[argstr]

Comments: This URL is used to start/stop PTZ control command.
action is PTZ control command, it can be start or stop.
ch is PTZ channel range is [0 - n-1],
code is PTZ operation, and
arg1, arg2, arg3 is the arguments of operation.
Code and argstr values are listed in below table.

1604643241161.jpeg
 

OICU2

BIT Beta Team
Joined
Jan 12, 2016
Messages
821
Reaction score
1,330
Location
USofA
Thanks, its not Dahua, its a junk Chinese generic ebay special 20x ptz. I'd probably have to sniff packets to see what commands are being sent.
 
Top