Revision 1.1
WebSwitch™ Users Manual
3.3 Configuring Events Through Get Requests (Model XRDI-WS3P only)
Events can be configured using a Get request. For example, to configure event 5 to start on March 8,
2009 at 02:30:10 and continue periodically every second for 50 times, toggling the outlet each time,
send the following request (using the default IP address):
http://192.168.1.2/eventSetup.srv?
e5=1236479410;1;0;50;0;4;1.50;0;Event5Desc;127;
The basic format of the request is: e(event#)=epoch time;period;period units;count;outlet number;outlet
action;pulse duration;0;description; days;
Parameter
Description
e5=
Parameter Name:
Each event has a parameter name. In this case the parameter
name is e5. For event 49 the parameter name would be e49.
1236479410
Epoch Time:
This is the number of seconds up to the desired start date since
January 1, 1970.
1
Period:
The period value. In this example, 1
0
Period Units:
The units of the period entered. 0-Seconds, 1-Minutes, 2-Hours, 3-
Days, 4-Weeks
50
Count:
Number of times the event will occur. (0=continuous)
0
Outlet Number
: 0-Outlet 1, 1-Outlet 2, 2-Both Outlets
4
Outlet Action:
0-No Action, 1-Turn outlet on, 2-Turn outlet off, 3-Pulse outlet, 4-
Toggle outlet, 5-Disable events, 6-Enable events, 7-Set extVar0, 8-Clear extVar0
1.5
Pulse Duration:
Time outlet will pulse when using the pulse outlet action.
0
Next Occurrence:
When setting an event leave this at 0. In the return string for this
request, this value will be a number representing the next time this event will occur in
seconds since January 1, 1970.
Event5Desc
Description:
This is
the text description of the event. Up to 20 characters can be
entered.
127
Days:
This number represents which days the event will occur on. This value is the
base ten version of a binary number where each bit represents one day of the week.
Bit 0 is Saturday and Bit 7 is Sunday.
The following table shows the base ten value for daily occurrences, occurrences on Monday-Friday,
occurrences on Monday, Wednesday, and Friday, and occurrences on Tuesday and Thursday:
Sunday
Monday
Tuesday
Wednesda
y
Thursday
Friday
Saturday
1
1
1
1
1
1
1
127
0
1
1
1
1
1
0
62
0
1
0
1
0
1
0
42
0
0
1
0
1
0
0
20
Xytronix Research & Design, Inc.
72