Thanks for all the help GlennNZ!!
I want to add live subscription (watt, ampere, volt), I have tried this, but it dosent work.
-d '{ "query": "{viewer {homes {LiveMeasurement {power }}}}}}" }'
curl \
-H "Authorization: Bearer d1007ead2dc84a2b82f0de19451c5fb22112f7ae11d19bf2bedb224a003ff74a" \
-H "Content-Type: application/json" \
-X POST \
-d 'mutation{ sendMeterReading(input:{homeId:"some home id", reading: 123}){time reading }}'
-d '{ "query": "{viewer {homes {LiveMeasurement {power }}}}" }'
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-X POST \
-d '{ "query": "{viewer {homes {consumption(resolution: HOURLY, last: 1) {nodes {from to totalCost unitCost unitPrice unitPriceVAT consumption consumptionUnit }} meteringPointData {estimatedAnnualConsumption } currentSubscription {priceInfo {current {total energy tax startsAt }}}}}}" }'
mortenkols wrote:Thanks. But im trying to receive live measurement from the api. Prices is no problem. I want to receive watt, ampere and voltage
Users browsing this forum: No registered users and 0 guests