Page 1 of 1

How to get OpenNetHome to access an URL

Posted: Sun May 03, 2015 9:59 am
by KetilCom
Hi!

I have an SMS gateway in my LAN. So I need some sort of WGET functions in OpenNetHome.
All i want is OpenNetHome to send i.e. "http://sms-gateway/sendsms.php?src=NetH ... msg=-Alert! High tempature in living room"
when a spesific event occour.

Best Regards
Ketil

Re: How to get OpenNetHome to access an URL

Posted: Mon May 04, 2015 8:01 pm
by stefangsbb
Hi Ketil

If you are running on a Linux machine (Raspberry Pi for example), you can actually do it with wget.

If you for example want to monitor a thermometer called "Living Room" and send an SMS when the temperature is above 40 degrees, you create a ValueTrigger-Item.

As ValueAction, you enter: "get,Living Room,Temperature"

and as ActionOnExceedingMax you enter: "exec,wget http://sms-gateway/sendsms.php?src=NetH ... ing%20room"

The exec function will execute the following text as a shell command, so it will perform the wget.

Re: How to get OpenNetHome to access an URL

Posted: Tue May 05, 2015 11:15 pm
by KetilCom
Excellent! It works like a charm!
Thanks a lot!

Best Regards
Ketil