Example Rest style URL: http://your.powereye.servername/powereye/rest/power/current XML response: <RestResponse succeeded="true"> <power unit="watts" timetamp="current">4061.0</power> </RestResponse> the following http request URLs that have been implemented: http://localhost:8080/powereye/rest/price/current http://localhost:8080/powereye/rest/price/recent http://localhost:8080/powereye/rest/price/<timestamp> http://localhost:8080/powereye/rest/power/current http://localhost:8080/powereye/rest/power/recent http://localhost:8080/powereye/rest/power/<timestamp> http://localhost:8080/powereye/rest/energy/current http://localhost:8080/powereye/rest/energy/recent http://localhost:8080/powereye/rest/energy/<timestamp> As of v 1.0, full database table contents can be dumped out in CSV, JSON or XML via REST service calls: http://localhost:8080/powereye/rest/db/table/<tablename> --> where <tablename> can be reading, energy, load_device, load_type or with the optional <number of rows> and optional <format> http://localhost:8080/powereye/rest/db/table/<tablename>/<numRows>/<format> <numRows> positive number means sorted descending (newest 1st) negative number means sorted ascending (oldest 1st) <format> can be one of csv , xml, json [ blank/default=csv ] example: http://localhost:8080/powereye/rest/db/table/reading/100/json returns: <RestResponse succeeded="true"> These database calls can be LOOOOooong so you might want to use a commandline URL query tool like wget, or perl or java or whatever. |