
HTTP/Post Upload To Your Database Server
Energy Monitoring Hub uploads data directly to your webserver or database server.
You must supply a script to process the incoming data. Sample script for ASP and PHP are available upon request.
Requires Webserver, CGI Scripting and, database (SQL) knowledge
Alarm processing available by processing data on your server when data is uploaded
Designed for integration with existing energy reporting systems.
Contact Leviton technical support for further details and sample scripts.
Removing Data from the Energy Monitoring Hub
When using an HTTP/Post method to allow the Energy Monitoring Hub to push data to a database server, the Energy
Monitoring Hub will automatically remove log files from its' flash memory once the Energy Monitoring Hub has confirmed
that the file was received by the database server.
If you are using the Energy Monitoring Hub with a standalone mode, you can use FTP or Enertrax DL to delete log files
from the flash memory.
With EnertraxDL, simply check the setup checkbox to delete log data after download.
For FTP, the process is essentially the same process as the manual FTP data download.
Steps for Microsoft Windows command prompt ftp.
Use the following commands.
ftp 192.168.40.50
Use the IP address of your Energy Monitoring Hub
username: root
password: admin
The same as the admin password
cd /var/log/Modbus
dir
view a list of log files.
mdel *.gz
remove the log file to free up flash space
bye
The mdel command will tell the FTP software to delete all files ending in .gz in the current directory. Some FTP clients will
allow you to specify a command “prompt” prior to using mdel that will prevent the FTP client software from asking if you
are sure you wish to delete each file.
Linking to Energy Monitoring Hub Device Status Pages
It may be helpful to create a shortcut or a hyperlink on another web page that will direct the browser to bring up a specific
device status page in your browser. To do this, right click on the page and select properties. The URL for the page will be
shown on that dialog. Simply copy/paste this URL into your link.
The Energy Monitoring Hub can provide Modbus device data in XML format. This feature, coupled with browser based
AJAX (Javascript) can provide a very powerful tool to allow the creation of custom web pages. Further examples of XML
and its uses are available on the Leviton website in the Documentation/Technotes section.
Shop for Power Metering products online at:
1.800.561.8187
www.
PowerMeterStore
.ca