Web Commands from BI4 Alerts.

Apr 22, 2019
10
0
usa
Hello People,

I'm trying to get BI4 to change profiles by using the Alert/Web and commands like :

xx.0.0.99:81/admin?profile= 2&user=admin&pw=xxxxxxxx

This seems to be accepted with a reply and how many bytes it received (14965). But does not change the profile.

Is there a list of these commands that can be sent by this method? Even better a way to do this via the RS232 commands. Is there a list of RS232 commands?

I am using an Arduino with USB and can receive and send inputs and outputs.

I've emailed BI a few times but it looks like a black hole!

Peter
 
Tried your string on my system and worked fine. I noticed that you have a space in your command between the profile= 2, which might be causing problems depending on your browser.

Try removing the space or add a %20 in the http command (see below):
xx.0.0.99:81/admin?profile=%202&user=admin&pw=xxxxxxxx

You should see the following returned from BI if successful.

signal=green
profile=2
lock=1
 
Thanks oldman

The space was a typo in entering it in the post, was not in the original.

I'll try it again. Where do you see the return data?
 
I just used the chrome browser to test the http command.
The data should be returned in the body section of the browser.
 
Does it work when passed via a browser? I always test in a browser first to see if the http command is working.
 
Ok, tried your command in the "Post to a web address,,,) in the alert section for the camera and I am getting an error back.
Looking the log it shows "Web: error: no stream"

I use the alert section "Post..." for setting camera ptz and setting the profile for a particular camera and haven't run into this error.

I use the geofence to set the global profile, so haven't tried just using the http command (POST) for setting the profile for everything.

If I get some time I might play with it to see if I can get it working. All my other http requests I use in the alert section "Post to web address..." all work fine.
 
I used IE and Chrome to test. When I enter the command I reach the login page. If i login manually and send the command it works.
It does not seem to be accepting the username and password.
 
Mine is working ok. I had put http:// in front of the command, duh.

You might check your web server settings under advanced. See if you can use the limit IP addresses ^ character to select local addresses that don't require login.

For example: entering ^192.168.1.* would exclude all ip addresses of 192.168.1.xxx from having to log in.