Page 1 of 1

HTTP Get for Blue Iris Status

Posted: Sun Jul 23, 2023 3:12 pm
by uis234
Hello all-

I am trying to use a 3rd party object to send an HTTP get to the server periodically to check that the server is up and running. I am new to HTTP requests but I took a small course. Is something like this available on BlueIris? I dont need any video stream, just a response of some sort. Thank you!

Re: HTTP Get for Blue Iris Status

Posted: Mon Jul 24, 2023 1:39 am
by louyo
crude, but you could use curl:

lou@W10test:~$ curl -I -u lou:xxxxxx 192.168.50.105:8181
HTTP/1.0 503 Service Unavailable
Server: BlueServer/5.7.6.8
Date: Mon, 24 Jul 2023 01:34:33 GMT
P3P: CP="CAO COR CURa ADMa DEVa OUR IND ONL COM DEM PRE"
Access-Control-Allow-Origin: *
Set-Cookie: path=/
Connection: close
Content-Length: 0

If I stop the service:

lou@W10test:~$ curl -I -u lou:xxxxxx 192.168.50.105:8181
curl: (7) Failed to connect to 192.168.50.105 port 8181: Connection refused

if the BI computer itself is down, it will time out. Probably use curl in a Python script and set a timeout value. You could set up the script to send you a SMS.