tibber-api
Version:
Node.js module for connecting to Tibber API and extract data from your connected homes, including realtime data from Tibber Pulse.
50 lines • 1.08 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.gqlHomeConsumption = exports.gqlHomesConsumption = void 0;
exports.gqlHomesConsumption = `
query getConsumption($resolution: EnergyResolution! $lastCount:Int!){
viewer {
homes {
id
consumption(resolution: $resolution, last: $lastCount) {
nodes {
from
to
cost
unitPrice
unitPriceVAT
consumption
consumptionUnit
totalCost
unitCost
currency
}
}
}
}
}
`;
exports.gqlHomeConsumption = `
query getConsumption($homeId:ID! $resolution: EnergyResolution! $lastCount:Int!){
viewer {
home(id:$homeId) {
id
consumption(resolution: $resolution, last: $lastCount) {
nodes {
from
to
cost
unitPrice
unitPriceVAT
consumption
consumptionUnit
totalCost
unitCost
currency
}
}
}
}
}
`;
//# sourceMappingURL=consumption.gql.js.map