25.02.2024, 17:08
Tibber API
|
23.04.2024, 06:16
Hey, i'm trying to get the current price. But i dont have a subscription or a home in tibber. So is it possible to read the current price? And want to write it in a GA.
Here is my code and what i get, but i dont understand why.
23.04.2024, 09:45
(23.04.2024, 06:16)davidkoch29 Wrote: Hey, i'm trying to get the current price. But i dont have a subscription or a home in tibber. So is it possible to read the current price? And want to write it in a GA. You need a Tibber account with a token. Best regards, Jørn.
23.04.2024, 09:47
(This post was last modified: 23.04.2024, 09:47 by davidkoch29.)
Hi Jorn, i have a Tibber account and token.
I deleted the token for the picture
23.04.2024, 09:58
Try this query:
Code: query = [[ I suppose you need to create a currentSubscription/home before using queries.
22.01.2025, 21:00
Is this method working anymore?
My script suddenly stopped working 8 jan. i now returns code 400 Code: os.sleep(1)
23.01.2025, 06:55
You are missing priceInfo fields that API should return.
Code: data = json.encode({ Error logging can be improved because the server response contains a useful error message. Code: resp = table.concat(tbl)
23.01.2025, 08:28
Thanks for your quick reply.
I still got the error but ran the pieces of code on https://developer.tibber.com/explorer and it worked there. Then I remembered that I some weeks ago I added Melcloud powerup in the Tibber-APP.. In my Melcloud-account I have inserted one extra heatpump at another location. For some reason this has bumped my mainhome to home #2. So then i had to change the line info = homes[ 1 ].currentSubscription.priceInfo.current to info = homes[ 2 ].currentSubscription.priceInfo.current and then we are back up and running. Thank you again for sharing your knowledge ![]() |
« Next Oldest | Next Newest »
|