Meter reading over a period
get_meter_readingCompute energy consumption or generation between two node-local dates, showing the difference and raw readings for each source.
Instructions
How much energy (or any accumulating meter property, e.g. wattHours) was used or generated between two node-local dates? Computes a meter-style difference between readings nearest the period boundaries — the natural fit for 'total for June'. Each row shows the difference plus the _start/_end raw readings; only sources with accumulating properties appear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | SolarNetwork node ID (public demo node: 108) | |
| endDate | Yes | Node-local end, exclusive | |
| sourceId | No | Single source ID; omit to get one reading per source that has accumulating properties | |
| startDate | Yes | Node-local start, inclusive (YYYY-MM-DD or YYYY-MM-DDTHH:mm) |