Yeah this is how the alarm system is going to work. It is all going to be "execute a script" but there will be some built-in scripts for sending email or SMS or whatnot.
Sounds good to me.
Thanks for the AP select script. My motivation is that I'd like to be able to take my setup out to my parents place and use it on his smoker, but being in the country, it is a good distance from the wireless AP... plus I guess you have to select the AP initially by ethernetting in? Anyway, no need for "internet" connectivity out there, I just need access with my phone, so Ad-hoc would work great.
What is the purpose of getting it accepted upstream in Luci? Just to have one less patch? I imagine for the intended purpose of Luci, they will want to avoid insecurities. I need to read more about Luci, but I am not able to compile from the svn.
I get:
evanmj@ubuntu:~/openwrt/lucisvn$ make runhttpd
<lots of stuff> ...
make[2]: Leaving directory `/home/evanmj/openwrt/lucisvn/contrib/uci/uci.git/lua'
make[1]: Leaving directory `/home/evanmj/openwrt/lucisvn/contrib/uci'
make[1]: Entering directory `/home/evanmj/openwrt/lucisvn/contrib/uhttpd'
(cd uhttpd-src; make LUA_SUPPORT=0 TLS_SUPPORT=0 CGI_SUPPORT=1)
make[2]: Entering directory `/home/evanmj/openwrt/lucisvn/contrib/uhttpd/uhttpd-src'
cc -o uhttpd -L./lua-5.1.4/src -Wl,--export-dynamic -lcrypt -ldl uhttpd.o uhttpd-file.o uhttpd-utils.o uhttpd-cgi.o
uhttpd.o: In function `main':
/home/evanmj/openwrt/lucisvn/contrib/uhttpd/uhttpd-src/uhttpd.c:968: undefined reference to `crypt'
uhttpd-utils.o: In function `uh_auth_check':
/home/evanmj/openwrt/lucisvn/contrib/uhttpd/uhttpd-src/uhttpd-utils.c:780: undefined reference to `crypt'
collect2: ld returned 1 exit status
make[2]: *** [compile] Error 1
make[2]: Leaving directory `/home/evanmj/openwrt/lucisvn/contrib/uhttpd/uhttpd-src'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/home/evanmj/openwrt/lucisvn/contrib/uhttpd'
*** Compilation of contrib/uhttpd failed!
make: *** [gccbuild] Error 1
evanmj@ubuntu:~/openwrt/lucisvn$
I have /usr/include/crypt.h...
I've installed the pre-reqs listed here:
http://luci.subsignal.org/trac/wiki/Documentation/DevelopmentEnvironmentHowTo
( GCC, Make (build-essential), Lua 5.1.x + development headers (lua5.1, liblua5.1-0-dev) )