Blue iris and triggering from outside

Pete_Repeat

Young grasshopper
Joined
May 2, 2017
Messages
83
Reaction score
4
So I'm creating an esp8266 project where I have created laser trip wires connected to a nodemcu (esp8266 device) that I hope to trigger camera recording and turn lights on. The best way is through the internet so I can integrate the device with Blue Iris and also my automation android box running tasker.

So I hoped to work out the coding which appears possible to use a GET request (please correct me if Im not addressing it properly).

I have created the code but it's not working properly with triggering.

I then tried the following url but this seems to ask for a login screen when entered. Once I enter the details it shows two lines "single green" and "profiles = -1"

http://admin:mypassword@192.168.1.100:818/admin?camera=Carport& where this is my local ip and the camera is called Carport.

I thought that url should provide the user name and password and trigger the camera. I also tried another one I found but that had the same result.

http://110.146.%%%.%%:818/admin?camera=Car&trigger&user=admin&pw=mypassword
Where this used my external ip. Same result.

I guess I need to get this working before bothering with my arduino ide code.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,771
Reaction score
39,033
Location
Alabama
Both url end here after the login request (which I didn't think I'd need to do with the url that contains the login details already)

http://192.168.1.100:818/admin?camera=Car

As you can see, I'm new to this concept so have a lot to learn.
@Pete_Repeat, this worked on my Blue Iris:

1) Opened Internet Explorer and went to my BI server locally at http://192.168.1.239:81, logged in with username and password, them minimized (not closed) my browser.
2) Opened up another browser window and for URL I entered "http://192.168.1.239:81/admin?camera=Cam30&manrec=1" (less quotes) and hit <Enter>.
Opened BI and Cam30 (short name of my cam) was recording!
3) Went back to browser, changed the '1' at the end to a '0', hit <Enter?> and Cam30 quit recording. The clip shows up when 'All Clips' (the green triangle) is selected at top of clip browser.

Check your syntax, too. You stated in your text that the camera is called 'Carport' but in the argument you furnished above it is 'Car'. As you know, that can make the difference.
 

actran

Getting comfortable
Joined
May 8, 2016
Messages
806
Reaction score
731
@Pete_Repeat The Blue Iris login page may still block your HTTP GET trigger even if you include user/password with URL. It depends on how you configured Blue Iris authentication.

In my case, I have "Secure Only" enabled, but if curl/HTTP GET was coming from 192.168.11.215 (my Vera) or 192.168.11.17 (my Mac), no authentication is required. See screenshot #2 below:

Screen Shot 2017-09-21 at 7.40.59 PM.png
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,771
Reaction score
39,033
Location
Alabama
Understood. This is my simple BI web server tab, as I'm not trying to accomplish what you are; I was just offering some input on the URL to trigger a cam on BI to record.

BI_stunnel.jpg
 

Pete_Repeat

Young grasshopper
Joined
May 2, 2017
Messages
83
Reaction score
4
Check your syntax, too. You stated in your text that the camera is called 'Carport' but in the argument you furnished above it is 'Car'. As you know, that can make the difference.
Thanks for the response. One is the long and the other is the short name. I was just experimenting. Good job noticing that
 

Pete_Repeat

Young grasshopper
Joined
May 2, 2017
Messages
83
Reaction score
4
@Pete_Repeat The Blue Iris login page may still block your HTTP GET trigger even if you include user/password with URL. It depends on how you configured Blue Iris authentication.

In my case, I have "Secure Only" enabled, but if curl/HTTP GET was coming from 192.168.11.215 (my Vera) or 192.168.11.17 (my Mac), no authentication is required. See screenshot #2 below:

View attachment 22117
OK this looks promising. I'll try this in the next day. Thanks.
 

Pete_Repeat

Young grasshopper
Joined
May 2, 2017
Messages
83
Reaction score
4
That worked for my mobile browser so should be good to move onto assigning a fixed ip for my esp8266 and sorting my code out in arduino ide now.

That advice has likely saved me loads of headaches as I haven't seen that advice anywhere else... Although I admit I should have probably consulted the help file more thoroughly but was away from the server pc at the time.
 

Pete_Repeat

Young grasshopper
Joined
May 2, 2017
Messages
83
Reaction score
4
Concept working. Can trigger Blue Iris cameras with the esp8266 due to a laser trip wire, so final polishing and installation to go.
 
Top