tibber-api
Version:
Node.js module for connecting to Tibber API and extract data from your connected homes, including realtime data from Tibber Pulse.
195 lines • 4.97 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.gqlHomesComplete = exports.gqlHomes = void 0;
exports.gqlHomes = `
query getHomes {
viewer {
homes {
id
timeZone
appNickname
appAvatar
size
type
numberOfResidents
primaryHeatingSource
hasVentilationSystem
mainFuseSize
address {
address1
address2
address3
postalCode
city
country
latitude
longitude
}
owner {
id
firstName
isCompany
name
middleName
lastName
organizationNo
language
contactInfo {
email
mobile
}
}
meteringPointData {
consumptionEan
gridCompany
gridAreaCode
priceAreaCode
productionEan
energyTaxType
vatType
estimatedAnnualConsumption
}
features {
realTimeConsumptionEnabled
}
}
}
}
`;
exports.gqlHomesComplete = `
query getHomesComplete {
viewer {
homes {
id
timeZone
appNickname
appAvatar
size
type
numberOfResidents
primaryHeatingSource
hasVentilationSystem
mainFuseSize
address {
address1
address2
address3
postalCode
city
country
latitude
longitude
}
owner {
id
firstName
isCompany
name
middleName
lastName
organizationNo
language
contactInfo {
email
mobile
}
}
meteringPointData {
consumptionEan
gridCompany
gridAreaCode
priceAreaCode
productionEan
energyTaxType
vatType
estimatedAnnualConsumption
}
currentSubscription {
id
subscriber {
id
firstName
isCompany
name
middleName
lastName
organizationNo
language
contactInfo {
email
mobile
}
}
validFrom
validTo
status
priceInfo {
current {
total
energy
tax
startsAt
level
currency
}
today {
total
energy
tax
startsAt
level
currency
}
tomorrow {
total
energy
tax
startsAt
level
currency
}
}
}
subscriptions {
id
subscriber {
id
}
validFrom
validTo
status
priceInfo {
current {
total
energy
tax
startsAt
level
currency
}
today {
total
energy
tax
startsAt
level
currency
}
tomorrow {
total
energy
tax
startsAt
level
currency
}
}
}
features {
realTimeConsumptionEnabled
}
}
}
}
`;
//# sourceMappingURL=homes.gql.js.map
;