Skip to content

Battery / PV history

GET /modules/{id}/power
  • Scope readings:read
  • API key x-api-key
  • Base URL https://api.hub.akuasense.com/v1

Power of the 4G GATEWAY the module is plugged into. Bucketing: an interval of 1 h, 4 h or 12 h gives a one-hour step, 24 h or a week a 4 h step, any other value is taken as is. With no interval, a step of at least one hour, i.e. about sixty points over the period. Default: the last 48 hours.

Path parameters

  • id integer required

Query parameters

  • start string date-time
  • end string date-time
  • interval integer

    Bucket (seconds)

Response

200

Gateway power history

  • module_id integer always present
  • start string date-time always present
  • end string date-time always present
  • interval_seconds integer nullable always present

    Requested interval; the actual step follows the rule described on the route. null: automatic.

  • data array of PowerPoint always present
    Show 4 attributes Hide attributes
    • time string date-time always present

      Start of the interval.

    • pv number always present

      Solar panel voltage, V. ⚠️ Not transmitted by the current gateways: reads 0.

    • bat number always present

      Mean battery voltage over the interval, V (4.2 V: full). 0 if unknown.

    • charging boolean always present

      ⚠️ Not yet supplied by the current gateways: reads false.

Errors

  • 400

    Invalid parameter

    invalid_idinvalid_date
  • 401

    Not authenticated

  • 403

    Insufficient scope, or resource outside your company