Arduino and BI... again.

jasong127

Young grasshopper
Joined
Dec 5, 2014
Messages
64
Reaction score
6
So to recap, the original question I had was how to make my security system change the traffic light in BI to green when the system was armed. The keypad as a built in dry relay that closes when the alarm is active, and opens when disarmed.

I was told to get an Arduino as it would be my best option. So I bought a Arduino UNO R3.

The problem is, there's not really any help available for what I want to do. Is there ANYONE that's already done something like this? The threads I've seen are open ended with no solutions to any of the questions. I'd rather not have to learn an entire programming language to make 1 toggle do 1 operation.

Please... HELP!!! :)
 

RedP

n3wb
Joined
Sep 11, 2017
Messages
5
Reaction score
0
I would start with the keypad, when you got that working next is implementing the request to blue iris. Blue iris has http requests::

(xxxx is your blue iris server)

http://xxx.xx.xx.x:xx/admin?signal=x (try this)
http://xxx.xx.xx.x:xx/admin?signal=x&user=admin&pw=password (maybe this)

Changes the traffic signal state and returns the current state. x=0 for red, x=1 for green, x=2 for yellow. This requires admin authentication. (turn off login and session keys within blue iris software to ease the process, else it start getting a tad more complex.)

Arduino has Http librarys
Arduino - HttpClient
Arduino - WebClient
Have a read see what you can come up with, arduino needs to be connected to network

something like this

Http client;
if(pin1 = 1) //switch on and armed
{
client.get("http://xxx.xx.xx.x:xx/admin?signal=1")
}
else if (pin1 = 0) //switch off and unarmed
{
client.get("http://xxx.xx.xx.x:xx/admin?signal=0")
}
So essentially you want the keypad to trigger a pin on the arduino which then sends the requests above and thats it to the blue iris server to change the traffic signal.

Hopefully that maybe helps you out a bit if you still need it
 
Top