Appendix H: Custom Web Pages
X-600M Users Manual
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
update(id, name, luaExpr, desc,
eventSourceID, callback)
Update an action with the specified
id
.
Parameters are the same as those for the add
function.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
del(id, callback)
Delete and action with the specified
id
.
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
evnt
add(name, desc, dtStart, dtEnd,
freq, interval, byday,
monthlyRepeatType, untilType,
dtUntil, count, eventGroupID,
callback)
Add a calendar-based
event.
name
- name of event
desc
- description of action
dtStart
- when to start event (mm/dd/yyy
hh:mm:ss hh=24hour)
dtEnd
- when to end event (same format as
dtStart)
freq
- NONE, SECONDLY, MINUTELY, HOURLY,
DAILY, WEEKLY, MONTHLY, YEARLY
interval
- how often, in terms of the
freq
, to repeat
the event
byday
- bitmask that indicates what days event
should occur when the freq equals WEEKLY
(saturday = bit 7, sunday = bit 0)
monthlyRepeatType
- how to repeat when freq
equals MONTHLY.(DOM = day of month, DOW =
day of week)
untilType
- NEVER, COUNT, DATE (what to look
for to stop repeats of event)
dtUntil
- when to stop repeats of event (only when
untilType = DATE. Format the same as dtStart)
count
- how many times to repeat
event (only when untilType = COUNT)
eventGroupID
– the event group that the event
belongs to (1-8)
callback
- function to call after completing with
result
Note:
Settings must be committed for this change
to take effect. See db.commitSettings() below.
update(id, name, desc, dtStart, Update a calendar based event with the specified
Page 146
Xytronix Research & Design, Inc.
Summary of Contents for X-600M
Page 1: ...X 600MTitle Page Goes Here...
Page 6: ...X 600M Users Manual Page 4 Xytronix Research Design Inc...
Page 99: ...X 600M Users Manual Setup Pages Xytronix Research Design Inc Page 97...
Page 116: ...Appendix B Installing New Firmware X 600M Users Manual Page 114 Xytronix Research Design Inc...