Revision 1.1
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
e5=
1236479410
1
0
50
0
4
1.5
0
Event5Desc
127
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
1
0
0
0
Xytronix Research & Design, Inc.
Description
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.
Epoch Time: This is the number of seconds up to the desired start date since
January 1, 1970.
Period: The period value. In this example, 1
Period Units: The units of the period entered. 0-Seconds, 1-Minutes, 2-Hours, 3-
Days, 4-Weeks
Count: Number of times the event will occur. (0=continuous)
Outlet Number: 0-Outlet 1, 1-Outlet 2, 2-Both Outlets
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
Pulse Duration: Time outlet will pulse when using the pulse outlet action.
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.
Description: This is the text description of the event. Up to 20 characters can be
entered.
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.
Monday
Tuesday
1
1
1
1
1
0
0
1
Wednesda
Thursday
y
1
1
1
1
1
0
0
1
WebSwitch™ Users Manual
Friday
Saturday
1
1
1
0
1
0
0
0
127
62
42
20
72
Need help?
Do you have a question about the WebSwitch XRDI-WS3 and is the answer not in the manual?