Skip to content

Instantly share code, notes, and snippets.

@jimsander
Last active August 29, 2015 14:26
Show Gist options
  • Save jimsander/9b85381dceb28d5364e0 to your computer and use it in GitHub Desktop.
Save jimsander/9b85381dceb28d5364e0 to your computer and use it in GitHub Desktop.
ISY: my wrapper script

JDS ISY Wrapper Script

Some Examples of the wrapper script

It is accessed both internally and externally of my LAN

List

# curl http://jdsrpi1/isy/i.php/list 2>/dev/null | egrep 'gate|garage'
node : m9-garageint-sensor  is 2D 65 74 1
node : m9-garageint-dusk.dawn is 2D 65 74 2
node : m9-garageint-low bat is 2D 65 74 3
node : oc-1-gate-opened     is 2D 70 9F 1
node : oc-1-gate-closed     is 2D 70 9F 2
node : m8-gate-sensor       is 31 AB 3 1
node : m8-gate-dusk.dawn    is 31 AB 3 2
node : m8-gate-low bat      is 31 AB 3 3
node : s-garage             is 33 7B DB 1
node : gatesensor           is 34 89 79 1
node : gaterelay            is 34 89 79 2
node : garagesensor         is 34 8C EF 1
node : garagerelay          is 34 8C EF 2
group: garage door          is 10986
group: gate                 is 9892

Status

# curl http://jdsrpi1/isy/gate.php/gatesensor/status
On

Cmd

The output is randomized output to break up the monotony of the same bland responses.

# curl http://jdsrpi1/isy/gate.php/garage%20door/cmd/on
yew got it. garage door on.
# curl http://localhost/isy/gate.php/gaterelay/cmd/on
why should it not be?. gaterelay on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment