TCassio said:
Just curious, why Window senors on the
second floor? Are there alot of cat burglars in the area. Â
I'm not really just going to use it for burglars. I don't know if what I'm thinking though is possible. Here it is. I always want to open windows so that fresh air can come in. However, there were times that we forgot to close the windows. There was a time that it was so sunny but I never expected that storm will come in the afternoon. We were far from home too. Since we were not aware of the windows being open, my 2 kid's room got wet.
Since we are able to control ELK via RS232 or Ethernet, I can write a custom nagios check code that will verify the status of each window, then sends an alert to me. Or I can either write a perl code that will check a local mailbox such as
[email protected] I can either make my own proprietary commands there such as
VERIFY windows all
VERIFY windows first
VERIFY windows second
VEFIFY windows basement
That means, I will send an SMTP message from my cellphone to
[email protected] I'm currently doing this now but for a different application. My mail server is also in my basement so I have total control.
There are so many ways we can do it. I can even write a perl code that use XML module. The code will connect to weather.com with my zipcode as an input. It will then receive a message such as "Possible storm by afternoon". I can write my own command that I can send via SMS like
VERIFY weather
The former commands gets sent to ELK system, while the "VERIFY weather" command will get sent to weather.com webserver and is followed with "VERIFY windows all".
But of course, I will have to study the ELK commands for serial/eth control.
My approach is a poor man's solution. I guess, there are already applications out there that does the same thing and even with an awesome interface. Just my 2cents.