EasyManua.ls Logo

ControlByWeb X-600M - Page 143

ControlByWeb X-600M
158 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
X-600M Users Manual Appendix H: Custom Web Pages
untilType(“eventName”) untilType Does event stop after a certain
number of events, or at a certain
date/time, or never.
dtUntil(“eventName”) dtUntil Get the date/time when the event
stops forever.
$user name() name Get the name of the user that is
viewing the page.
email() email Get the email address of the user
that is viewing the page.
hasAccess(accessMask) n/a Check to see if the user viewing
the page belongs to an access
group found in accessMask.
Return 1 if they do, 0 if not.
$db setAccess(accessMask) Limit access to the settings
database by specifying the
access groups that should have
access to it.
$file open(filename, mode) filename Filename of file to open. If a path
is not give, then the file is
assumed to be on the internal
flash. If the path “/usb/” is given
then the file will searched for on
the external usb drive. If a path of
“/ram/” is given, the file will be
searched for on the internal ram
drive.
mode Files can be opened for read,
writing, or both. The following
modes are supported:
'r' – Open for reading only
'r+' - Open for reading and writing
'w' – Open for writing only. Erase
the file if it exists, otherwise
create it.
'a' – Open for writing only. Append
to existing file, otherwise create
new file.
'a+' Open for reading and writing.
close() n/a Closes a previously opened file.
read(length) length Read up to length bytes.
write(string, length) string Write string to the file previously
opened at the current file pointer.
length How many bytes from the string to
write to the file.
seek(offset, whence) offset Move the file pointer to offset
bytes. The reference is set by
whence.
whence SEEK_SET – offset from
Xytronix Research & Design, Inc. Page 141

Table of Contents