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
How to get OpenNetHome to access an URL
-
- Site Admin
- Posts: 313
- Joined: Sun Nov 30, 2014 2:16 pm
Re: How to get OpenNetHome to access an URL
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.
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
Excellent! It works like a charm!
Thanks a lot!
Best Regards
Ketil
Thanks a lot!
Best Regards
Ketil