Changeset a44fcf2
- Timestamp:
- 2013-12-10 00:18:56 (11 years ago)
- Branches:
- master
- Children:
- 0ae7e27
- Parents:
- aee3885
- git-author:
- purdueguy <purdueguy@…> (2013-12-10 00:18:56)
- git-committer:
- purdueguy <purdueguy@…> (2013-12-10 00:18:56)
- Location:
- Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified Main/I_ISYController1.xml ¶
raee3885 ra44fcf2 123 123 </job> 124 124 </action> 125 <action> 126 <serviceId>urn:garrettwp-com:serviceId:ISYController1</serviceId> 127 <name>runProgram</name> 128 <job> 129 local program = lul_settings.program 130 local path = lul_settings.path 131 132 plugin.sendCommand(program, "program", path) 133 134 return 4,0 135 </job> 136 </action> 125 137 <action> 126 138 <serviceId>urn:garrettwp-com:serviceId:ISYController1</serviceId> -
TabularUnified Main/L_ISYController1.lua ¶
raee3885 ra44fcf2 429 429 end 430 430 end 431 432 elseif (type == "program") then 433 local newCmd = insteonId .. "/" .. cmd 434 435 debugLog("Rest command: /rest/programs/" .. newCmd) 436 437 local t = {} 438 request, code, headers = http.request { 439 url = "http://" .. isyIP .. ":" .. isyPort, 440 method = "GET /rest/programs/" .. newCmd, 441 sink = ltn12.sink.table(t), 442 headers = { 443 ["Authorization"] = "Basic " .. (mime.b64(isyUser .. ":" .. isyPass)) 444 } 445 } 446 447 if (code == 200) then 448 if (DEBUG == true) then 449 httpResponse = table.concat(t) 450 debugLog(httpResponse) 451 end 452 end 453 431 454 432 455 else -
TabularUnified Main/S_ISYController1.xml ¶
rf4c3103 ra44fcf2 129 129 </argumentList> 130 130 </action> 131 <action> 132 <name>runProgram</name> 133 <argumentList> 134 <argument> 135 <name>program</name> 136 <direction>in</direction> 137 <relatedStateVariable>string</relatedStateVariable> 138 </argument> 139 <argument> 140 <name>path</name> 141 <direction>in</direction> 142 <relatedStateVariable>string</relatedStateVariable> 143 </argument> 144 </argumentList> 145 </action> 131 146 </actionList> 132 147 </scpd>
Note: See TracChangeset
for help on using the changeset viewer.