useSiteConsumption
Projects the freshest consumption sample out of the dashboard's existing tail-log query for the header stats strip (`HeaderConsumptionBox`).
Projects the freshest consumption sample out of the dashboard's existing tail-log query for the header stats strip (`<HeaderConsumptionBox />`).
import { useSiteConsumption } from "@tetherto/mdk-react-adapter";Signature
(params: UseConsumptionChartDataParams) => SiteConsumption| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |
useSite
Fetches the configured site label from `GET /auth/site`. Static deployment config — fetched once per session, no polling.
useSiteConsumptionChartData
Site-level power consumption time-series, shaped for `LineChartCard`. Reads `site_power_w` from the `t-powermeter`-tagged tail-log (same source the header's …