-
Notifications
You must be signed in to change notification settings - Fork 5
/
testscript.txt
38 lines (33 loc) · 2.98 KB
/
testscript.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
curl "http://espasw01/api/v1/switch/0/driverinfo?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/connected?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/description?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/driverinfo?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/driverversion?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/interfaceversion?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/name?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/supportactions?ClientID=99&ClientTransactionID=123"
curl "http://espasw01/api/v1/switch/0/supportedactions?ClientID=99&ClientTransactionID=123"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=0&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=0&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=0&state=false" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=1&state=false" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=2&state=false" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=7&state=false" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=9&state=false" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=7&name='fabulous switch' "http://espasw01/api/v1/switch/0/setswitchname"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=7&value=0.0" "http://espasw01/api/v1/switch/0/setswitchvalue"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=7&value=0.5" "http://espasw01/api/v1/switch/0/setswitchvalue"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=7&value=1.5" "http://espasw01/api/v1/switch/0/setswitchvalue"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=7&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=3&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=2&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=1&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=0&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=0&state=false" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=0&state=true" "http://espasw01/api/v1/switch/0/setswitch"
curl -X PUT -d "ClientID=99&ClientTransactionID=123&Id=1&state=true" "http://espasw01/api/v1/switch/0/setswitch"
Non-ascom - yet to be tested
status - works
setup
setupswitches
UDP discovery