Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New API integration #413

Merged
merged 5 commits into from
Oct 13, 2024
Merged

Conversation

developerfromjokela
Copy link
Contributor

I've integrated new API into use for getting prices, fix for #412

New API doesn't have region names like Oslo, etc for norway. They're NO1, NO2, etc instead.

@developerfromjokela
Copy link
Contributor Author

Näyttökuva 2024-10-08 kello 18 37 35

Tested on own HA instance, seems to work.
More testing would be appreciated

@Hellowlol
Copy link
Collaborator

Thanks for taking time to create a PR for this. Sorry for the lack of description on the review. Im on mobile

Copy link

@simonepittis simonepittis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Ok form me

@developerfromjokela
Copy link
Contributor Author

There seems to be a single entry for tomorrow, even though no prices are available for tomorrow yet.

@simonepittis
Copy link

we can see the price for tomorrow only after 13:30 CET

@developerfromjokela
Copy link
Contributor Author

we can see the price for tomorrow only after 13:30 CET

Yup, but here's how mine looks atm:

image

@developerfromjokela
Copy link
Contributor Author

Technically it's raw data, there's no entry in the actual tomorrow attribute. I just have some graphs that use raw data :)

@simonepittis
Copy link

simonepittis commented Oct 9, 2024

for me this data don't comes from Nordpool:
image

this is a test machine 2, with 0.0.14 version

@dana-se
Copy link

dana-se commented Oct 9, 2024

Not here, with 0.0.15b2 version

image

@simonepittis
Copy link

simonepittis commented Oct 9, 2024

tested with plugin "Energi Data Service", same result:
image
image

the data don't comes from NordPool

@developerfromjokela
Copy link
Contributor Author

Näyttökuva 2024-10-09 kello 11 43 33

https://data.nordpoolgroup.com/auction/day-ahead/prices?deliveryDate=2024-10-09&currency=EUR&aggregation=Hourly&deliveryAreas=FI it's also present on their site with same API. Maybe just should ignore last value, so no items in raw_tomorrow?

@dana-se
Copy link

dana-se commented Oct 9, 2024

image

https://data.nordpoolgroup.com/auction/day-ahead/prices?deliveryDate=2024-10-09&currency=EUR&aggregation=Hourly&deliveryAreas=FI

This is how it looks for me.

@developerfromjokela
Copy link
Contributor Author

image

https://data.nordpoolgroup.com/auction/day-ahead/prices?deliveryDate=2024-10-09&currency=EUR&aggregation=Hourly&deliveryAreas=FI

This is how it looks for me.

Strange. Only difference I see between you and me is timezone. Is this a bug in nordpool? 😆

@simonepittis
Copy link

it's a problem in NordPool, not in your code. for me the code it's ok. other plugins, working with NordPool, get the identical result.

@dana-se
Copy link

dana-se commented Oct 9, 2024

@developerfromjokela
Copy link
Contributor Author

@developerfromjokela
Copy link
Contributor Author

Could it be that the data is not in UTC, but CET?

@developerfromjokela
Copy link
Contributor Author

I played with timezone options and with CET I get same values as you.
Näyttökuva 2024-10-09 kello 12 26 57

@dana-se
Copy link

dana-se commented Oct 9, 2024

I played with timezone options and with CET I get same values as you. Näyttökuva 2024-10-09 kello 12 26 57

Yes, that's the same settings that I have.

@developerfromjokela
Copy link
Contributor Author

developerfromjokela commented Oct 9, 2024

It seems like nordpool's data ranges from 01:00 - 01:00 not from 00:00-00:00. i compared to few other websites that don't use data from nordpool and seems like it's the case here.

@developerfromjokela
Copy link
Contributor Author

Ok I think I figured out what happened. Dateutils parsed timestamps as UTC from API, even though they're Europe/Stockholm. I added an override for parsing dates and now at least FI prices align with what other sources are reporting.

@developerfromjokela
Copy link
Contributor Author

I'm trying to debug another issue, after reloading the integration, my raw_today fills with over 100 entries of today's prices and many duplicates of tomorrow's prices.

@developerfromjokela
Copy link
Contributor Author

Here's what happens:

today: 0, 0.001, 0, 0, 0, 0.001, 0.423, 0.611, 1.236, 1.403, 1.431, 1.408, 1.177, 0.999, 0.906, 0.949, 1.015, 1.118, 1.186, 1.093, 0.818, 0.19, 0.001, 0
tomorrow: -0.001, -0.073, -0.102, -0.103, -0.1, -0.039, 0, 1.268, 2.845, 3.028, 3.141, 3.135, 3.105, 2.74, 2, 2.482, 1.884, 1.751, 2.007, 1.851, 0.25, 0, -0.001, -0.013
tomorrow_valid: true
raw_today: 
- start: '2024-10-09T00:00:00+03:00'
  end: '2024-10-09T01:00:00+03:00'
  value: 0
- start: '2024-10-09T01:00:00+03:00'
  end: '2024-10-09T02:00:00+03:00'
  value: 0.001
- start: '2024-10-09T02:00:00+03:00'
  end: '2024-10-09T03:00:00+03:00'
  value: 0
- start: '2024-10-09T03:00:00+03:00'
  end: '2024-10-09T04:00:00+03:00'
  value: 0
- start: '2024-10-09T04:00:00+03:00'
  end: '2024-10-09T05:00:00+03:00'
  value: 0
- start: '2024-10-09T05:00:00+03:00'
  end: '2024-10-09T06:00:00+03:00'
  value: 0.001
- start: '2024-10-09T06:00:00+03:00'
  end: '2024-10-09T07:00:00+03:00'
  value: 0.423
- start: '2024-10-09T07:00:00+03:00'
  end: '2024-10-09T08:00:00+03:00'
  value: 0.611
- start: '2024-10-09T08:00:00+03:00'
  end: '2024-10-09T09:00:00+03:00'
  value: 1.236
- start: '2024-10-09T09:00:00+03:00'
  end: '2024-10-09T10:00:00+03:00'
  value: 1.403
- start: '2024-10-09T10:00:00+03:00'
  end: '2024-10-09T11:00:00+03:00'
  value: 1.431
- start: '2024-10-09T11:00:00+03:00'
  end: '2024-10-09T12:00:00+03:00'
  value: 1.408
- start: '2024-10-09T12:00:00+03:00'
  end: '2024-10-09T13:00:00+03:00'
  value: 1.177
- start: '2024-10-09T13:00:00+03:00'
  end: '2024-10-09T14:00:00+03:00'
  value: 0.999
- start: '2024-10-09T14:00:00+03:00'
  end: '2024-10-09T15:00:00+03:00'
  value: 0.906
- start: '2024-10-09T15:00:00+03:00'
  end: '2024-10-09T16:00:00+03:00'
  value: 0.949
- start: '2024-10-09T16:00:00+03:00'
  end: '2024-10-09T17:00:00+03:00'
  value: 1.015
- start: '2024-10-09T17:00:00+03:00'
  end: '2024-10-09T18:00:00+03:00'
  value: 1.118
- start: '2024-10-09T18:00:00+03:00'
  end: '2024-10-09T19:00:00+03:00'
  value: 1.186
- start: '2024-10-09T19:00:00+03:00'
  end: '2024-10-09T20:00:00+03:00'
  value: 1.093
- start: '2024-10-09T20:00:00+03:00'
  end: '2024-10-09T21:00:00+03:00'
  value: 0.818
- start: '2024-10-09T21:00:00+03:00'
  end: '2024-10-09T22:00:00+03:00'
  value: 0.19
- start: '2024-10-09T22:00:00+03:00'
  end: '2024-10-09T23:00:00+03:00'
  value: 0.001
- start: '2024-10-09T23:00:00+03:00'
  end: '2024-10-10T00:00:00+03:00'
  value: 0
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'
  end: '2024-10-10T01:00:00+03:00'
  value: -0.001
- start: '2024-10-10T01:00:00+03:00'
  end: '2024-10-10T02:00:00+03:00'
  value: -0.073
- start: '2024-10-10T02:00:00+03:00'
  end: '2024-10-10T03:00:00+03:00'
  value: -0.102
- start: '2024-10-10T03:00:00+03:00'
  end: '2024-10-10T04:00:00+03:00'
  value: -0.103
- start: '2024-10-10T04:00:00+03:00'
  end: '2024-10-10T05:00:00+03:00'
  value: -0.1
- start: '2024-10-10T05:00:00+03:00'
  end: '2024-10-10T06:00:00+03:00'
  value: -0.039
- start: '2024-10-10T06:00:00+03:00'
  end: '2024-10-10T07:00:00+03:00'
  value: 0
- start: '2024-10-10T07:00:00+03:00'
  end: '2024-10-10T08:00:00+03:00'
  value: 1.268
- start: '2024-10-10T08:00:00+03:00'
  end: '2024-10-10T09:00:00+03:00'
  value: 2.845
- start: '2024-10-10T09:00:00+03:00'
  end: '2024-10-10T10:00:00+03:00'
  value: 3.028
- start: '2024-10-10T10:00:00+03:00'
  end: '2024-10-10T11:00:00+03:00'
  value: 3.141
- start: '2024-10-10T11:00:00+03:00'
  end: '2024-10-10T12:00:00+03:00'
  value: 3.135
- start: '2024-10-10T12:00:00+03:00'
  end: '2024-10-10T13:00:00+03:00'
  value: 3.105
- start: '2024-10-10T13:00:00+03:00'
  end: '2024-10-10T14:00:00+03:00'
  value: 2.74
- start: '2024-10-10T14:00:00+03:00'
  end: '2024-10-10T15:00:00+03:00'
  value: 2
- start: '2024-10-10T15:00:00+03:00'
  end: '2024-10-10T16:00:00+03:00'
  value: 2.482
- start: '2024-10-10T16:00:00+03:00'
  end: '2024-10-10T17:00:00+03:00'
  value: 1.884
- start: '2024-10-10T17:00:00+03:00'
  end: '2024-10-10T18:00:00+03:00'
  value: 1.751
- start: '2024-10-10T18:00:00+03:00'
  end: '2024-10-10T19:00:00+03:00'
  value: 2.007
- start: '2024-10-10T19:00:00+03:00'
  end: '2024-10-10T20:00:00+03:00'
  value: 1.851
- start: '2024-10-10T20:00:00+03:00'
  end: '2024-10-10T21:00:00+03:00'
  value: 0.25
- start: '2024-10-10T21:00:00+03:00'
  end: '2024-10-10T22:00:00+03:00'
  value: 0
- start: '2024-10-10T22:00:00+03:00'
  end: '2024-10-10T23:00:00+03:00'
  value: -0.001
- start: '2024-10-10T23:00:00+03:00'
  end: '2024-10-11T00:00:00+03:00'
  value: -0.013
- start: '2024-10-10T00:00:00+03:00'

and the list goes on, it's very long.

@Hellowlol
Copy link
Collaborator

Let me know when it ready, and it can create a new release

@dana-se
Copy link

dana-se commented Oct 10, 2024

Ok I think I figured out what happened. Dateutils parsed timestamps as UTC from API, even though they're Europe/Stockholm. I added an override for parsing dates and now at least FI prices align with what other sources are reporting.

Just merged this, and today's prices are right (SE4). Hoping to see that tomorrow's prices works too, in about an hour.

Update: Tomorrow's prices just arrived, and everything looks OK

@developerfromjokela
Copy link
Contributor Author

Ok I think I figured out what happened. Dateutils parsed timestamps as UTC from API, even though they're Europe/Stockholm. I added an override for parsing dates and now at least FI prices align with what other sources are reporting.

Just merged this, and today's prices are right (SE4). Hoping to see that tomorrow's prices works too, in about an hour.

Update: Tomorrow's prices just arrived, ad everything looks OK

Same here. I have two instances of nordpool planner. First still has that raw_today issue, second one doesn't. It doesn't really affect functionality otherwise.

I guess it's good for merging, I can investigate meanwhile what's the issue with my raw_today.

@dana-se
Copy link

dana-se commented Oct 10, 2024

@developerfromjokela don't you think it's time to ask @Hellowlol to make a new release.
Because the old API will probably not work on Monday, 14th October 2024, just to give people a chance to install it before.

Thanks for the excellent work with this code!

@developerfromjokela
Copy link
Contributor Author

@developerfromjokela don't you think it's time to ask @Hellowlol to make a new release.

Because the old API will probably not work on Monday, 14th October 2024, just to give people a chance to install it before.

Thanks for the excellent work with this code!

I agree, core functions work fine now. Minor things can be fixed in another update.

@Hellowlol now can release it

Copy link

@Teme-V Teme-V left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled, tested and no found issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants