Help‎ > ‎FAQ‎ > ‎

What does the REST request result look like?

posted Feb 16, 2015, 5:05 PM by Tom Gutwin   [ updated Jul 17, 2015, 9:05 PM ]
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>


You can request "your" data using any of
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>

The 'recent' query return the last 10000 values in the same XML format as shown above.
Thats about a days worth of readings.
Comments