SIP HTTP GET commands Can be used to control SIP using HTTP GET requests

1. Change controller values (password required) [Keyword /cv]: Command: /cv?pw=xxx{&rsn=x}{&rbt=x}{&en=x}{&mm=x}{&rd=x} Note: { } means the parameter is optional: if the parameter is not present, the corresponding value will not be changed. The actual command should not contain the brackets.

Parameters: ● ● ● ● ● ●

pw: password rsn: reset all stations (binary value) rbt: reboot controller (binary value) en: operation enable (binary value), when disabled, all stations will remain closed until the controller operation is enabled again. mm: manual mode (binary value) rd: rain delay time in hours (a value of 0 turns off rain delay)

Examples: http://x.x.x.x/cv?pw=opendoor&rbt=1 (reboot controller) http://x.x.x.x/cv?pw=opendoor&mm=1 (switch controller to manual mode) http://x.x.x.x/cv?pw=opendoor&rd=24 (set 24 hours rain delay time)

2. Get station bits [Keyword /sn]: Command: /sn{?sid=x} Note: { } means the parameter is optional: if the parameter is not present, the corresponding stations name will not be changed. The actual command should not contain the brackets. This will return an html webpage that contains a binary value or string that reflects the station status. Parameters: ● ●

sn: returns a list of all stations sid=x: “x” is the positive station ID (starts from 1).

Examples: http://x.x.x.x/sn (returns the binary status of every station in a string) http://x.x.x.x/sn?sid=1 (returns the binary status of the first station)

3. Set station bits (turn a station on or off) [ Keyword /sn]: Command: /sn?sid=x&set_to=x Note: setting station bits only works when the controller is in manual mode (mm=1), in order to avoid interfering with the normal program mode. A network error will be raised if this is run in Auto mode.

Parameters: ● sid=x is the positive station index (starts from 1). For example, sid=1 is the first station, ● set_to=x, The parameter “x” is a binary value: 1 to turn the station on, 0 to turn the station off. Examples: http://x.x.x.x/sn?sid=1&set_to=1 (turn on the first station) http://x.x.x.x/sn?sid=3&set_to=0 (turn off the third station)

4. Change station names and master operation bits (password required) [Keyword /cs]: Command: /cs?pw=xxx{&s0=xxx}{&s1=xxx}{&s2=xxx}.....{&m0=xxx}{&m1=xxx} Note: { } means the parameter is optional: if the parameter is not present, the corresponding stations name will not be changed. The actual command should not contain the brackets.

Parameters: ● pw: password ●

s?: ? is station index (starts from 0, up to N-1 where N is the total number of stations). s0 is the first station, s1 is the second stations, and so on. Parameter value is a string up to 12 characters.



m?: ? is the board index (starts from 0, up to M-1 where M is the total number of boards). m0 is the master controller, m1 is the first extension board, and so on. Parameter value is an integer that stores the master operation bit of each station on that board. For example, a value of 255 means all eight stations will activate the master value; and a value of 127 means the first four stations will activate the master value while the other four stations do not.

Examples: http://x.x.x.x/cs?pw=opendoor&s0=front%20lawn&s1=back%lawn (sets first two stations names) http://x.x.x.x/cs?pw=opendoor&m0=255 (sets the master operation bits for the master/ first controller board) http://x.x.x.x/cs?pw=opendoor&s7=garage&m0=254 (sets stations name of s7 and the master operation bits for the master/first controller board)

5. Change run-once program (password required) [Keyword /cr]: Command: /cr?pw=xxx&t=[xx,xx,xx,xx....] Note: if the command is successful, the controller will start executing the run-once program immediately. The normal program mode will be temporarily interrupted until the run-once program is completed.

Parameters: ● ●

pw: password t: an integer array (surrounded by [ ]) that stores the run-time (in seconds) of each station. Note that the array size must be equal to the total number of stations. If a station is not scheduled to run, use value of 0.

Examples: http://x.x.x.x/cr?pw=opendoor&t=[60,0,60,0,60,0,60,0] (start a run-once program that turns on stations 1, 3, 5 and 7 for 1 minute each.

6. Change (add/modify) programs (password required) [Keyword /cp]: Command: /cp?pw=xxx&pid=x&v=[x,x,x,x,x,x,x] Parameters: ● ●

pw: password pid: program index (starting from 0). For example, 0 means the first program, and so on. Must be less than the total number of programs. A value of -1 will add a new program.



v: program values, consisting of 7 integers (or 1 additional for each expansion board): ◦ en: program enable bit (binary value, e.g. 0 means the program is disabled) ◦ days1: days selection first byte (see explanation below) ◦ days2: days selection second byte (see explanation below) ◦ starttime: program start time (in minutes relative to 00:00. e.g. 360 means 6am) ◦ endtime: program end time (in minutes relative to 00:00) ◦ duration: duration of each station (in seconds) ◦ interval: program interval time (in minutes. e.g. 240 means every 4 hours)

Days selection bytes: days1 and days2 in the program values are formatted as follows: ● if (days1.bit7 == 0 || days2 == 0 || days2 == 1): this is a standard weekly program: ◦ days1.bits[0..6] store the binary selection bits from Monday to Sunday (bit 0 corresponds to Monday) ◦ if (days2 == 1): even day restriction ◦ if (days2 == 2): odd day restriction ●

if (days1.bit7 == 1 && days2 > 1): this is an interval program:

◦ days2 stores the interval (>1. e.g. 2 means every 2 days, 3 means every 3 days and so on) ◦ days1.bits[0..6] store the starting day (e.g. 0 means the program starts today, 1 means the program starts tomorrow, and so on) Examples: days1 = 127, days2 = 0: weekly schedule on every day days1 = 255, days2 = 1: weekly schedule on every day, with odd day restriction days1 = 128, days2 = 5: interval schedule, every 5 days, starting from today

days1 = 129, days2 = 4: interval schedule, every 4 days, starting from tomorrow

7. Delete a program (password required) [Keyword /dp]: Command: /dp?pw=xxx&pid=x Parameters: ● ●

pw: password pid: program index (starting from 0). For example, 0 means the first program, and so on. Must be less than the total number of programs. A value of -1 will delete all programs.

Examples: http://x.x.x.x/dp?pw=opendoor&pid=2 delete the third program http://x.x.x.x/dp?pw=opendoor&pid=-1 delete all programs

8. Run a program (password required) [Keyword /rp]: Command: /rp?pw=xxx&pid=x Parameters: ● ●

pw: password pid: program index (starting from 0). For example, 0 means the first program, and so on. Must be less than the total number of programs.

Example: http://x.x.x.x/rp?pw=opendoor&pid=2 run the third program

9. Enable or disable a program (password required) [Keyword /ep]: Command: /ep?pw=xxx&pid=x&enable=x Parameters: ● ●

pw: password pid: program index (starting from 0). For example, 0 means the first program, and so on. Must



be less than the total number of programs.. enable: boolean (0 or 1), 1 to enable the program, 0 to disable.

Example: http://x.x.x.x/ep?pw=opendoor&pid=2&enable=1 enable the third program http://x.x.x.x/ep?pw=opendoor&pid=0&enable=0 disable the first program

10. Change options (password required) [Keyword /co]: Command: /co?pw=xxx{&o*=xx}{&loc=xxx}{&npw=xxx}{&cpw=xxx} Note: { } means the parameter is optional: if the parameter is not present, the corresponding option value will not be changed. The actual command should not contain the brackets.

Also be careful with the option values marked below as boolean: these options are set (to 1) as long as the option name exists in the parameter list, and cleared (to 0) if the name doesn’t exist.

Warning: this command is currently quite messy and requires knowing the option index. Parameters: ● ● ● ● ●

pw: password npw: new password (if changing the password) cpw: confirm new password (if changing the password) loc: location (zip code or city name) o1: time zone: (floating point time zone value + 12) x 4. e.g. GMT-5:00 will be (-5+12) *4=28, GMT+8:15 will be (8 ¼+12)*4 = 81

● ● ● ●

o12: http port (lower byte) o13: http port (upper byte) o15: number of extension boards o17: station delay time (in seconds). must be between 0 and 240. e.g. 15 means a 15 seconds delay between two consecutive stations.



o18: master station index (0 means no master station, 1 means station 1 is the master station, and so on)



o19: master on delay time (in seconds). must be between 0 and 60. e.g. 5 means the master station will turn on 5 seconds after a station opens.



o20: master off delay time (in seconds). must be between -60 and +60. e.g. -5 means the master station will turn off 5 seconds before a station closes.



o21: use rain sensor (boolean). option is set if the name exists in the parameter list, regardless of the value; cleared if the name does not exist.



o22: rain sensor type (boolean. 1 means normally open). option is set if the name exists in the parameter list, regardless of the value; cleared if the name does not exist.



o23: water level in percentage (from 0 to 250). e.g. 150 means water time will increase to 150%.



o25: ignore password (boolean. 1 means ignore password). option is set if the name exists in the parameter list, regardless of the value; cleared if the name does not exist.

Example: http://x.x.x.x/co?pw=opendoor&npw=1234&cpw=1234 (change password to 1234) http://x.x.x.x/co?pw=1234&loc=10001 (change location to zip 10001) http://x.x.x.x/co?pw=1234&o12=144&o13=31 (change http port to 8080: 31*256+144) http://x.x.x.x/co?pw=1234&o21=on&o25=on (rain sensor and ignore password options are set, rain sensor type is cleared, i.e. normally closed)

SIP HTTP GET commands - GitHub

A network error will be raised if this is run in Auto mode. Parameters: ○ sid=x is .... the third program http://x.x.x.x/dp?pw=opendoor&pid=-1 delete all programs ...

100KB Sizes 4 Downloads 266 Views

Recommend Documents

Commands for EV3-API - GitHub
char. Color of text. 1: black text. 0: wihteteext with black background. .... LED color cannot be changed while warning is set. ... (1: true, 0: false).

GET - GitHub
OpenId (Google Yahoo Wordpress &c) ... (workflows/http-‐basic :realm "Friend demo") #_...]})) ... Clojure web security with Friend (March 19, 2013). Demo ...

Sip-Sip Hooray Valentine.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Sip-Sip Hooray ...

http://vustudents.ning.com http://vustudents.ning.com -
If a company possess higher required rate of return, the justified P/E will be. Lower ... In top-down approach of fundamental analysis, investors begin their analysis with: ... Interest sensitive industry ... Shares in mutual savings banks only.

http://pdfbooksfree.blogspot.com http://pdfbooksfree ...
Page 1. http://pdfbooksfree.blogspot.com http://pdfbooksfree.blogspot.com. Page 2. http://pdfbooksfree.blogspot.com http://pdfbooksfree.blogspot.com. Page 3 ...

http://www.nepalspiritualtrekking.com/nepal/travel-info.html http ...
http://www.nepalspiritualtrekking.com/nepal/special-tour-programs/private-tour-program.html.

OI: SIP
according to statistical characteristics of the run level data are set. One of the ..... based on su?icient statistical analysis for various experimen tal states.

http://islamicbookshub.wordpress.com/
Page 1. http://islamicbookshub.wordpress.com/. Page 2. http://islamicbookshub.wordpress.com/. Page 3. http://islamicbookshub.wordpress.com/. Page 4 ...

http://islamicbookshub.wordpress.com/
Page 1. http://islamicbookshub.wordpress.com/. Page 2. http://islamicbookshub.wordpress.com/. Page 3. http://islamicbookshub.wordpress.com/. Page 4 ...

Understanding SIP
resembles Web-hosting in IP world or NetCentrex in PSTN world no media ... Standards available for free. .... Administrative domain of a PSTN gateway operator.

Register: http://bit.ly/LearningPower2014
During the upcoming school year, Technology and Innovation in Education (TIE), in partnership with the South Dakota Department of Education (SD DOE), will ...

DM_76S_G78S SiP Module_DataSheet.pdf
Page 1 of 50. UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS. International General Certificate of Secondary Education. MARK SCHEME for the May/June 2011 question paper. for the guidance of teachers. 0620 CHEMISTRY. 0620/12 Paper 1 (Multiple Choi

Understanding SIP - Software Engineering Laboratory
IP telephony runs on top of IP and utilizes the IP service model. It is not about ... resembles Web-hosting in IP world or NetCentrex in PSTN world ... Page 10 ...

Fulfilling the Hypermedia Constraint Via HTTP OPTIONS, the HTTP ...
dia types as the core of contracts on the Web. However, not always is the service designer free to select the most appro- priate media type ... that is explained best with the example of pagination on a ... is OpenSearch10. .... http-header#host> ].

Fulfilling the Hypermedia Constraint Via HTTP OPTIONS, the HTTP ...
element that defines a reference from an entry or feed to a ... atomLink = element atom:link { .... In order to test how to fulfill the hypermedia constraint with.

2017 Bible Plan - http://bit.ly/2i08NA3 - pdf - Deutsch: http://bit.ly ...
Jul 9 Ps 67. Jul 10 1Cor 3. Jul 11 1Cor 4. 28 Jul 12 1Cor 5. Jul 13 1Cor 6. Jul 14 1Cor 7. Jul 15 Ps 68. Jul 16 Ps 69. Jul 17 1Cor 8. Jul 18 1Cor 9. 29 Jul 19 1Cor ...

SIP & Computer Training discontinued - ICSI
SIP batch, he/she has the option to take refund of the fees paid for SIP from concerned ... For any further clarification, please send e-mail at training @icsi.edu /.

RP SIP PDF.pdf
Sign in. Page. 1. /. 21. Loading… Page 1 of 21. Page 1 of 21. Page 2 of 21. Page 2 of 21. Page 3 of 21. Page 3 of 21. RP SIP PDF.pdf. RP SIP PDF.pdf. Open.

http://feeds.feedburner.com/nunuradio
Page 1. http://feeds.feedburner.com/nunuradio.

http://islamicbookshub.wordpress.com/
Page 1. http://islamicbookshub.wordpress.com/. Page 2. http://islamicbookshub.wordpress.com/. Page 3. http://islamicbookshub.wordpress.com/. Page 4 ...

http://handoutsuite.googlepages.com
Rule: The phone number is associated with room number and ... Answer: Use the store relation. Problem: .... If we had chosen {facName, office} as the primary.

http://tetstudymaterials2015.blogspot.in/ www.TrbTnpsc.com
jpuhl;i r - lhh;l hhpf; mkpyk;. ❖ ghy; - yhf;bf; mkpyk;. ❖ Mg;gps; - khypf; mkpyk;. ❖ ntz;n za; - gpA+l;hpf; mkpyk; http://tetstudymaterials2015.blogspot.in/ www.

http://itisbd.blogspot.com/
Welcome to the IPO result finder of United Airways (BD) Ltd. This report helps you to find the IPO lottery result of INVESTMENT CORPORATION OF ...

http://pharmadock.blogspot.com/ [email protected]
http://pharmadock.blogspot.com/ [email protected]. This Material is kept in blog only to help students for quick reviewing of all colleges by STATES ...