How to get OpenNetHome to access an URL

Functionality and usage of the OpenNethome Server
Post Reply
KetilCom
Posts: 6
Joined: Mon Feb 02, 2015 12:49 am

How to get OpenNetHome to access an URL

Post 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
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: How to get OpenNetHome to access an URL

Post 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.
KetilCom
Posts: 6
Joined: Mon Feb 02, 2015 12:49 am

Re: How to get OpenNetHome to access an URL

Post by KetilCom »

Excellent! It works like a charm!
Thanks a lot!

Best Regards
Ketil
Post Reply