WebRelay-10 Users Manual
Operation
3.3 Configuring Events Through GET Requests (WebRelay-10 Plus™
only)
Events can be configured using a GET request. For example, to configure event 5 to start on November
19, 2010 at 12:00:00 and continue every day, turning Relay 1 on, send the following request (using the
default IP address):
http://192.168.1.2/eventSetup.srv?
e5=1290168000;1;3;0;0;1;4;0;Event5Desc;127;1;
The basic format of the request is:
e(event#)=epoch time;period;period units;count;schedule#;action;pulse
duration;0;description;days;action#;
Parameter
Description
e5=
Parameter Name:
Each event has an identifier (0-99). In this case the parameter name
is e5. Event 100 would be e99.
1290168000
Epoch Time:
The number of seconds up to the desired start date since
January 1, 1970.
1
Period:
The period value.
3
Period Units:
The units of the period, 0-Seconds, 1-Minutes, 2-Hours, 3-Days, 4-
Weeks.
0
Count:
Number of times the event will occur. (0 = continuous)
0
Schedule #:
The schedule where the event will occur (0-4). 0 = schedule 0, 1=
schedule 1, and so forth.
1
Action:
0-No Action, 1-Turn relay on, 2-Turn relay off, 3-Pulse relay, 4-Toggle relay, 5-
change schedules, 7-Set extVar0, 8-Clear extVar0.
4
Pulse Duration:
Pulse duration when using the pulse relay action.
0
Next Occurrence:
This is a report value only, indicating the next time this event will
occur in Epoch Time. When setting an event leave this at 0.
Event5Desc;
Description:
Text description of the event, up to 20 characters can be entered.
127
Days:
This number represents which days the event will occur. 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 6 is Sunday. See the table below for some common values.
1
Action #:
This number represents which relay will be affected by the event. This value
is the base ten version of a binary number where each bit represents the
ON/OFF
state
of one relay. Bit 0 corresponds to relay/schedule 1, and Bit 9 corresponds with Relay
10.
Xytronix Research & Design, Inc.
page 61