Revision 1.1
WebSwitch™ Users Manual
3.2.3 Monitoring Events Through eventX.xml (Model XRDI-WS3P only)
The outlets can be configured to turn on, turn off, or pulse at specified times. Instructions to change the
outlet state at a given time (or periodically) are called events. WebSwitch Plus™ supports 50 events and
these events can be monitored through an XML page called eventX.xml (where X is the event number 0-
49). This can be demonstrated by entering commands into the address bar of a web browser.
Request the current state of event one:
http://192.168.1.2/event0.xml
This will return the following XML page:
<event0>
<active>yes</active>
<currentTime>09/14/2009 15:14:09</currentTime>
<nextEvent>09/15/2009 15:15:00</nextEvent>
<period>1 s</period>
<count>10</count>
<relay>1</relay>
<action>pulse relay</action>
<pulseDuration>0.5 s</pulseDuration>
</event0>
For each event, the following tags are displayed in the XML page: <eventX>, <active>, <currentTime>,
<nextEvent>, <period>, <count>, <relay>, <action>, and <pulseDuration>. Each of the tags are
described below:
Tags
Description
<eventX>
All of the XML tags for each event are encapsulated between opening and
closing tags called eventX. The X in the tag represents the event number (0-49).
<active>
This field indicates whether or not the event is active. The text
yes
indicates that
the event is active and the event will occur at the next event time (given that the
next event time is in the future). The text
no
indicates that the event is inactive
and the event will no longer take place.
<currentTime>
This field indicates the current date and time of the unit. The date and time are
given as
MM/DD/YYYY HH:MM:SS
and is in 24-hour format.
<nextEvent>
This field indicates the next time the event is scheduled to occur. The format for
the date and time is
MM/DD/YYYY HH:MM:SS
. Note that if an event is inactive,
this field will display the date and time as
xx/xx/xxxx xx:xx:xx
.
<period>
For events that occur more than one time, this field indicates the period of the
event (time between event occurrences). The unit of time is indicated after the
value (seconds (s), minutes (m), hours (h), days (d), or weeks (w)). If this field is
set to 0, then the event has been disabled.
<count>
This field indicates the number of remaining times the event will occur. If this field
equals 0 and the event is active, then the event will occur continuously forever.
<relay>
1 = Event action will apply to Outlet 1.
2 = Event action will apply to Outlet 2.
1,2 = Event action will apply to both outlets.
Xytronix Research & Design, Inc.
69