xPLGPower

xPLGPower

Description:xPLGPower provides a generic method to upload your power readings to Google's powermeter.
Usage:First thing you need to do is register your "device" with powermeter.  See this link for how. After completing registration, you'll need 3 pieces of information: the hash, token and path.  Copy this from the authorization info Google gives you to xPLGPower and click save.

xPLGPower allows you to do both instantaneous and durational updates, in either single and batch mode.  The following are sample xPL commands you can use to issue updates. Make sure your xPL target is doghouse-gpower.your-instance-name

# update your first durational measurement device (d1) with 200 w.  given
that powermeter has a 10 minute resolution, xPLGPower assumes the
measurement you provide will be for a duration of 10 minutes

type = xpl-cmnd
control.basic
{
   device=d1
   current=200
}

# update 4 consecutive durational measurement devices (d1 d2 d3 d4) in batch
mode

type = xpl-cmnd
control.basic
{
   device=d0
   current=200 300 400 500
}

# attempt to do a batch update of one device.  duration for each measurement
will be equal to 10 minutes divided by the number of samples.  this command
will attempt to update device d3 with 5 readings.  the intervals will be
2 minutes each so the first sample of 90 would be for time t-2 minutes to
present.  and the last sample would be for time t-10 to t-8 minutes.
powermeter does not support any granularity below 10 minutes but this
feature is in place in case it does.

type = xpl-cmnd
control.basic
{
   device=d0
   current=90 80 70 60 50
}


# update the 2nd instantaneous measurement device (c2) with 5000W.

type = xpl-cmnd
control.basic
{
   device=c2
   current=5000
}

# set the initial value for 3rd instantaneous measurement device (c3) with
123W

type = xpl-cmnd
control.basic
{
   device=c30
   current=123
}

# batch update of 4 consecutive instantaneous measurement devices (c1 c2 c3
c4) with 500, 200, 300 and 900W respectively

type = xpl-cmnd
control.basic
{
   device=c0
   current=500 200 300 900
}
Revisions:10/16/10 - 1.0: Initial release
Download:/downloads/xPLGPower.zip

Back to xpl Software