brainbarker wrote:Hi,
I'd like to be able to send notifications from my router (Linksys WRT54GL running Tomato), maybe for an unknown WiFi client connecting, or reboots. Unfortunately, space is tight and there is no curl or perl. I might be able to roll my own busybox with curl and make a new firmware image, but that's probably more time that I have to devote to it. Does anyone have straight shell code (ash, in this case), that can send the notifications?
All you really need is to fetch this url:
- Code: Select all
http://prowl.weks.net/publicapi/add?apikey=xxx&application=xxx&event=xxx&description=xxx&priority=xxx
This is what I did in on my embedded linux box (ngw100 running busybox). Actually, I was able to compile python for my ngw100 and I use the "urllib" to fetch the url.
I'm running my own DIY home security system using the ngw100 and some custom hardware for garage door monitoring and opening. Previously, I was limited to getting email or sms on my phone when the system sounded an alarm. Now I get a nice long and loud emergency push notification to my phone. Perfect. You can check out my blog for more info on my system:
http://yzf600.dns2go.com/blog