UM-0085-B09
DT80 Range User Manual
Page 174
RG
The SHTML mark-up for this page is as follows:
<html>
<head>
<title>My Custom dataTaker Web Page</title>
</head>
<body>
<h1>My Custom dataTaker Web Page</h1>
<img src="custom1.jpg" align="right"/>
<h3>Job Name:</h3>
<!--#echo var = "JobName" -->
<h4>Schedule Name:</h4>
<!--#echo var = "SchName(A)" -->
<h4>Channel Variable (1CV):</h4>
<!--#echo var = "1CV" -->
</body>
</html>
Notice the SSI directives (red).
Note:
The SHTML page filename must be saved with the following extensions:-
.shtml
,
.shm
or
.sht
. The SHTML page will not be
rendered correctly if these extensions are not used.
Custom Home Page
It is recommended that a central (Home) page is used when building a custom web interface. The Home page can be an
HTML or SHTML page. Set the Home page filename to
in
dEX
.htm
or
in
dEX
.shm
.
The
DT80
web server will automatically looks for a file with one of these names if the user types just the IP address into
their browser (i.e. no filename specified).
Storing the Custom Web Pages
To test the custom web pages they need to be loaded onto the
DT80
's internal file system.
Connect to the logger's FTP server, specifying the configured username and password – files cannot be written to the file
system using the default anonymous username. Then upload the files to a directory on the internal drive, e.g.
B:\www\custom
.
Customising the Built-in Web Interface
As an alternative to creating the web interface from scratch, you can also use the built-in web pages as a starting point
and customise them as required.
Start by using an FTP client to copy all files from
b:\www\html
to
b:\www\custom
, then customise as required.
Using the Custom Web Pages
If you loaded the custom web interface into the
b:\www\custom
directory then you can either:
•
access it by typing
http://
ip-addr
/custom
into the web browser, or defining a bookmark for this URL
•
replace the interface selector page (
b:\www\in
dEX
.html
) with an alternative page which contains a link to your
custom interface, or which contains an automatic redirection, e.g.:
<html><head>
<meta http-equiv="Refresh" content="0; url=/custom">
</head><body>
<a href="/custom">Click here</a>
</body></html>
In this way a user which just enters the logger's IP address is automatically directed to the custom interface, but can still
access the standard classic interface, for example, by typing
http://
ip-addr
/html
.
Automatic Page Refresh
If required, a custom web page can be made to automatically refresh by including the following line within the page
header:
<html>
<head>
<meta http-equiv="Refresh" content="30">
...
</head>
...
In this example the page will refresh every 30 seconds.