Switching profile through an http commande

StanParis

n3wb
Joined
Apr 7, 2017
Messages
2
Reaction score
0
Hi everyone,

I'm trying to change BI profile when my alarm is set. My Fibaro box receives a message when my alarm is set and from Fibaro I should be able to send an http command.

Before doing so I'm trying from a simple browser but fail....

here is the command I paste in my browser
http://192.168.1.xx:81/admin?profile=6?user=user&pw=password where user & password are my admin account in BI
in BI, the secure only in unchecked

when I set authentification for Non-Lan only, i can access the web server from a browser without authenticating but when I paste this profile command, i receive immediately the message "Authorisation required"
When I set authentification for all connection, be it with Safari or Chrome, there is a pop up window asking me to capture my user & password. i.e. as if ?user=user&pw=password was ignored.

Any idea?

many thanks for your help
 

vwsplitty

Young grasshopper
Joined
Oct 21, 2015
Messages
78
Reaction score
20
Bump.... I tried again but can't make it work.... anyone?

did you get this working?

i only got this working by putting the ipadress of my pc sensing the http in the approved ip list with a "^" in front of it eg ^192.168.1.1 the ^ mean no authentication required- also has the secure only unchecked also
 

BPet

Young grasshopper
Joined
Oct 8, 2017
Messages
39
Reaction score
7
I set up something like this a few years back and it works perfectly, but I don't recall all the details of why I did it the way that I did...I can tell you that I run a program called AutoHotKey and so I created a simple batch file and then turned it into an executable with a .ahk (auto hot key) extension. Then my external program runs the .ahk file and it magically changes the profile on Blue Iris. This is the contents of my .ahk file:


http://127.0.0.1:Port of Blue Iris/admin?profile=1&user=yourusername&pw=yourpassword
URLDownloadToFile,%poststring%, response.htm


I guess I'm using the loopback IP for local host, maybe that's the difference?

Hope this helps!
 
Top