Desktop Shortcut

From MiOS
(Difference between revisions)
Jump to: navigation, search
(New page: Category:User Instructions Category:How To '''HOWTO setup a desktop shortcut to activate a scene or control a device.''' 1. Get wget for Windows. 2. Create a shortcut to it on th...)
 
Line 1: Line 1:
[[Category:User Instructions]]
+
<br> '''HOWTO setup a desktop shortcut to activate a scene or control a device.'''
[[Category:How To]]
+
  
'''HOWTO setup a desktop shortcut to activate a scene or control a device.'''
+
1. Get [http://users.ugent.be/~bpuype/wget/#download wget for Windows].  
  
1. Get wget for Windows.
+
2. Create a shortcut to it on the Desktop.  
2. Create a shortcut to it on the Desktop.
+
3. Right click on the shortcut and open the Shortcut tab.
+
4. In the Target field append the following:
+
Code:
+
-q -O NUL "http://<vera_IP>:3480/data_request?id=lu_action
+
&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<scene_number>"
+
  
Here's an example:
+
3. Right click on the shortcut and open the Shortcut tab.  
Code:
+
"D:\Programs\wget.exe" -q -O NUL "http://192.168.10.1:3480/data_request?id=lu_action
+
&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=6"
+
  
To control a device:
+
4. In the Target field append the following:  
Code:
+
http://<vera_IP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<device_number>
+
&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=<1 to turn on, 0 to turn off>
+
  
You can find the whole Luup requests list [[Luup_Requests]].
+
<source lang="asp">-q -O NUL "http://<vera_IP>:3480/data_request?id=lu_action
 +
&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<scene_number>"</source>
  
in Linux or OSX you can use curl -0 instead of wget.exe
+
Here's an example:
 +
 
 +
<source lang="asp">"D:\Programs\wget.exe" -q -O NUL "http://192.168.10.1:3480/data_request?id=lu_action &serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=6"</source>
 +
 
 +
To control a device:
 +
 
 +
<source lang="asp">http://<vera_IP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<device_number> &serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=<1 to turn on, 0 to turn off></source><br>
 +
 
 +
You can find the whole Luup requests list [[Luup Requests]].
 +
 
 +
<br>
 +
 
 +
In Linux or OSX you can use '''curl -0''' instead of wget.exe  
 +
 
 +
[[Category:User_Instructions]] [[Category:How_To]]

Revision as of 11:40, 26 May 2011


HOWTO setup a desktop shortcut to activate a scene or control a device.

1. Get wget for Windows.

2. Create a shortcut to it on the Desktop.

3. Right click on the shortcut and open the Shortcut tab.

4. In the Target field append the following:

-q -O NUL "http://<vera_IP>:3480/data_request?id=lu_action
&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<scene_number>"

Here's an example:

"D:\Programs\wget.exe" -q -O NUL "http://192.168.10.1:3480/data_request?id=lu_action &serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=6"

To control a device:

http://<vera_IP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<device_number> &serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=<1 to turn on, 0 to turn off>

You can find the whole Luup requests list Luup Requests.


In Linux or OSX you can use curl -0 instead of wget.exe

Personal tools