tibber-api
Version:
Node.js module for connecting to Tibber API and extract data from your connected homes, including realtime data from Tibber Pulse.
104 lines • 1.88 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.gqlTomorrowsEnergyPrices = exports.gqlTodaysEnergyPrices = exports.gqlCurrentEnergyPrice = exports.gqlCurrentEnergyPrices = void 0;
exports.gqlCurrentEnergyPrices = `
query getCurrentEnergyPrice {
viewer {
homes {
id
currentSubscription{
id
validFrom
validTo
status
priceInfo{
current{
total
energy
tax
startsAt
currency
level
}
}
}
}
}
}
`;
exports.gqlCurrentEnergyPrice = `
query getCurrentEnergyPrice($homeId:ID!) {
viewer {
home(id:$homeId) {
id
currentSubscription{
id
validFrom
validTo
status
priceInfo{
current{
total
energy
tax
startsAt
currency
level
}
}
}
}
}
}
`;
exports.gqlTodaysEnergyPrices = `
query getTodaysEnergyPrices($homeId:ID!) {
viewer {
home(id:$homeId) {
id
currentSubscription {
id
validFrom
validTo
status
priceInfo {
today {
total
energy
tax
startsAt
currency
level
}
}
}
}
}
}
`;
exports.gqlTomorrowsEnergyPrices = `
query getTomorrowsEnergyPrices($homeId:ID!) {
viewer {
home(id:$homeId) {
id
currentSubscription {
id
validFrom
validTo
status
priceInfo {
tomorrow {
total
energy
tax
startsAt
currency
level
}
}
}
}
}
}
`;
//# sourceMappingURL=energy.gql.js.map
;