Desktop Shortcut

From MiOS
(Difference between revisions)
Jump to: navigation, search
m
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
<br> '''HOWTO setup a desktop shortcut to activate a scene or control a device.'''
+
[[Category:User_Instructions]]
 +
[[Category:How_To]]
  
1. Get [http://users.ugent.be/~bpuype/wget/#download wget for Windows].  
+
'''HOWTO setup a desktop shortcut to activate a scene or control a device.'''
  
2. Create a shortcut to it on the Desktop.
+
==Introduction==
  
3. Right click on the shortcut and open the Shortcut tab.
+
==Instructions for Windows==
  
4. In the Target field append the following:  
+
# Get [http://users.ugent.be/~bpuype/wget/#download wget for Windows].
 +
#Create a shortcut to it on the Desktop.
 +
#Right click on the shortcut and open the Shortcut tab.
 +
#In the Target field append the following:  
  
<source lang="asp">-q -O NUL "http://<vera_IP>:3480/data_request?id=lu_action
+
-q -O NUL "http://<vera_IP>:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<scene_number>"  
&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<scene_number>"</source>
+
  
Here's an example:
+
==Examples==
  
 +
To run a scene
 
<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>  
 
<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:  
 
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>
 +
* Note: You can find the whole Luup requests list [[Luup Requests]].
  
<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>
+
To toggle the state with one statement:  
 
+
You can find the whole Luup requests list [[Luup Requests]].
+
 
+
To toggle the state with one statement :  
+
 
+
 
<source lang="asp">"http://<veraIP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<devId>&serviceId=urn:micasaverde-com:serviceId:HaDevice1&action=ToggleState"</source>
 
<source lang="asp">"http://<veraIP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<devId>&serviceId=urn:micasaverde-com:serviceId:HaDevice1&action=ToggleState"</source>
  
 +
==Other OS==
 +
In Linux or OSX you can use curl instead of wget.exe
 +
Curl is nativly available on these OS'
  
 
+
Syntax:
In Linux or OSX you can use '''curl -0''' instead of wget.exe
+
curl -0
 
+
[[Category:User_Instructions]] [[Category:How_To]]
+

Latest revision as of 18:41, 5 June 2011


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

Contents

[edit] Introduction

[edit] Instructions for Windows

  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>" 

[edit] Examples

To run a scene

"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>"

To toggle the state with one statement:

"http://<veraIP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<devId>&serviceId=urn:micasaverde-com:serviceId:HaDevice1&action=ToggleState"

[edit] Other OS

In Linux or OSX you can use curl instead of wget.exe Curl is nativly available on these OS'

Syntax:

curl -0
Personal tools