
ELKOR TECHNOLOGIES INC.
- Page 21 -
MCM
–
USER MANUAL
3.14.2.
Enabling HTTP Authentication
If your web server requires basic HTTP authentication, you can enable it by entering a username and password.
1.
In the Web Posting box, under the HTTP Authentication heading, click the
Change
button.
2.
Click the
Enable
check box.
3.
Enter the username and password in the text fields
4.
Click the
Submit
button to save your changes.
3.14.3.
Testing the Configuration
You can test your configuration by clicking the
Post Now
button at the bottom of the Web Posting box. The Previous Post
Response box will display the HTTP response, if any, of the previous posting attempt. You can use this to help debug
connection or formatting problems with the post or posting template.
3.15.
Customizing the Web Posting Format
(Advanced Feature)
The format that the device uses to post data to the web server can be completely customized by editing a template. The
template is stored on the device, and can be viewed or downloaded using the web interface. The default file is called
template.json
. For details on how to view or download a file using the web interface, see
3.15.1.
Editing the Template
The template can be opened and edited in any simple text editor, such as
Notepad
on Microsoft Windows. The template
contains both text that will be posted to the web server verbatim, and symbols which will be replaced with values read
from the device when the data is posted.
Symbols are inserted into the template, which are replaced with real-time values each time the data is posted. Symbols
start with a dollar sign
$
to separate them from the text content of the template; if you need to use a literal
$
in your
template, enter it using two dollar signs
$$
, which will be replaced with a single
$
when the data is posted.
See the separate
ETPORT API
guide for details in writing custom templates.
After you have modified the template (or created a new one) as desired, you can upload it by following the instructions in
section
3.15.2.
Template Modes
Only "global template mode" is available on this device.
3.15.3.
Time Synchronization
The device does not have a battery-backed real time clock. To obtain the timestamps used in several of the web posting
symbols, the device synchronizes the time over the internet. It attempts to synchronize the time when it first boots up,
and will subsequently synchronize the time at least every 24 hours (by default). All time-related variables are replaced
with the message
“
Time Not Available
”
if no time has been acquired since boot up.
The device acquires the time on a best-effort basis. Because it can not guarantee that it will be able to acquire the time
from the internet due to any number of network problems, server software should not rely exclusively on its time-related
variables. It is meant to be used as a cross-check against the server
’
s local time, such as to identify buffered data (see
the section below).
Changing the Default Time Servers
(Advanced Feature)
The device supports two protocols for retrieving the time from the internet. It supports the Network Time Protocol (NTP).
A list of public timeservers is built-in from which it will attempt to acquire the time. You can change these time servers by
modifying the device
’
s configuration file.
1.
Click
“
System
”
on the left-hand side of the web interface to access the system configuration page.
2.
Click the
Advanced Configuration
button.
3.
Enter
ntp_server
in the
Search
field.
4.
Up to three NTP servers can be entered in the
Value
column of the table, next to
ntp_server_0
,
ntp_server_1
,
and
ntp_server_2
.