Problems getting prices for tomorrow #45
Replies: 1 comment 3 replies
-
|
Hi, thank you for bringing this up! I believe this is a bug with the Tibber API, since the raw data response from the API says that it's simply not receiving any data for the tomorrow field for the subscriptions (tested on the demo account). I noticed that if you get the subscription with the Recreating it in tibber.py: import tibber
home = tibber.Account(tibber.DEMO_TOKEN).homes[0]
# Does not work
home.subscriptions[0].price_info.tomorrow # [] (empty)
home.current_subscription.price_info.tomorrow # [Price(...), Price(...), ...]Recreating it in the tibber api explorer: So for now the solution would be to use home.current_subscription. Let me know if this does not fix your problem and if this bug only appears on the demo account. If this does not solve the issue, create a GitHub issue for this as this is probably a bug, then I'll get to it as soon as I have time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I'm trying to collect the next day price data. Getting todays prices works for me like this:
account = tibber.Account(token)
home = account.homes[0]
subscription = home.subscriptions[0]
prices = subscription.price_info.today
I figured, I should be able to get tomorrows prices when changing the last line to:
prices = subscription.price_info.tomorrow
However I always get an empty set even after 1 o'clock when the next day prices are available in the API explorer.
What am I missing?
Thanks a lot,
Richard
Beta Was this translation helpful? Give feedback.
All reactions