Web Page Module
Module icon
Overview
Each meter comes with a set of
default pages. With the Web Page module you can create additional
pages with parameters you specify. These custom pages are available
in both HTML and XML formats. For comprehensive information on using
the Web Page module, see the WebMeter Internal Web Server Feature technical note.
Inputs
These inputs are the values that the Web Page module takes and displays on the custom web page.
Setup registers
This register determines the title for the customized web (HTML) page. It also appears as an element on the XML page. The value range for this register is 0 to 80 characters. The default values are Web Page Module 1, Web Page Module 2, etc.
This register specifies the location (or address) of the web page. The value range for this register is 0 to 80 alphanumeric characters (dash and dot allowed); the default values are webpage1 for Web Page Module 1, webpage2 for Web Page Module 2, et cetera.
For example: If Page Location = webpage1 and meter IP Address = 192.168.1.5 then the page would be located at http://192.168.1.5/webpage1.html (for HTML version) and http://192.168.1.5/webpage1.xml (for XML version).
This optional register specifies the URL where an XSLT stylesheet is located. This value is written to the XML web page, as a reference. When the XML page is loaded in the browser the stylesheet is applied to the XML code much like a Cascading Stylesheet (CSS) works with HTML. The value range can vary from 0 to 255 characters, and is blank by default.
The string value in this register is used as the namespace attribute in the Page element of XML pages generated by the module. The default value is default. When it is set to default, the namespace attribute of the Page element inherits the value from the Factory module's Device Namespace setup register. The value range for this string is up to 80 characters; these characters must be alphanumeric but can also include a dash (hyphen) or a dot (period). For examples, refer to the WebMeter Internal Web Server Feature technical note.
The string value in this register is used as the name attribute in the Page element of XML messages generated by the module. The default value is default. When it is set to default, the name attribute of the Page element inherits the value from the Factory module's Device Name setup register. The value range for this string is up to 80 characters; these characters must be alphanumeric but can also include a dash (hyphen) or a dot (period).
The register's value, which is inserted into an HTML META tag on the webpages, indicates how often to update the web page when viewed in a browser. The value range, specified in seconds, is 0 to 604800 (i.e. up to one week). A value of 0 indicates no refresh; this is the default value. Most users will not need to change this value.
This register specifies when the web page expires. This value is inserted into the HTTP header, providing a "caching clue" for proxy servers and browsers. The value range, specified in seconds, is 0 to 604800 (i.e. up to one week). The default value for this register is 2 seconds. Most users will not need to change this value.
Output registers
All events are recorded in the Event register. Possible events and their associated priority numbers are:
Event priority group |
Priority |
Description |
---|---|---|
Setup Change |
10 |
Input links, setup registers or labels have changed. |
Detailed module operation
HTML web pages
The Web Page module generates an HTML web page with the following information:
Title | |
---|---|
Label | Value |
Label | Value |
Label | Value |
Label | Value |
Label | Value |
Label | Value |
XML web pages
The XML version of the web page will display only XML code in
the browser unless it is linked to an XSLT stylesheet. The meter also
maintains a catalog.xml page that contains links to all Web resources
on the meter, including both the fixed pages and the Web Page module
pages. This page is available for each meter at the URL http://<meterIP>/catalog.xml
.