Hexagon / spotweb

Dockerized Deno application that gets and caches electricity prices (spot price) from ENTSO-e.
https://spot.56k.guru
MIT License
5 stars 1 forks source link

Austrian API check? #9

Open MarfelAlex opened 1 year ago

MarfelAlex commented 1 year ago

Hi.

First of all, thanks for the amazing work. Looks promizing.

Unfortenately I'm not able to pull any data for the austrian Region out of the API.

I tried this request here, which provides no data. Other Countrycodes like CH or SE2 seems to work fine. Did they change the region codes for any reason? Couldn't find any indication on their site.

https://spot.56k.guru/api/v2/hass?currency=EUR&area=AT&extra=0&factor=1&decimals=1

Regards.

Hexagon commented 1 year ago

Interesting! I notice that i show 15-minute interval prices on https://spot.56k.guru/at/AT while the api is pinpointed at 1 hour prices. Might be that i only fetch the 15m-prices to begin with. Will have to dig deeper into this. Are you interested in 15m or 1h prices?

MarfelAlex commented 1 year ago

Hi.

That would be no big deal if it shows 15 minutes or on hour prices for me, but the way the hass API on your site currently works i'm not able to request the 15 minutes intervall manually right? :)

Hexagon commented 1 year ago

Great! You should be able to get 15m prices by appending &interval=PT15M, but it doesn't seem to work properly yet :)

Hexagon commented 1 year ago

Do this URL work now?

https://spot.56k.guru/api/v2/hass?currency=EUR&area=AT&extra=0&factor=1&decimals=3&interval=PT15M

MarfelAlex commented 1 year ago

This one seeems to provide readable data on the card in home assistant now:

https://spot.56k.guru/api/v2/hass?currency=EUR&area=AT&extra=0&factor=1&decimals=3&interval=PT15M

This is great, thanks.

Altough I seem to only get some values for the current state. What would i need to do, in order to get the forecast for tomorrow? Do i have to create history stat sensors for this? On my recorder the stats would get wiped every 24 hours, maybe that's an issue.

Hexagon commented 10 months ago

Did you get this to work? Prices for tomorrow should be added as soon as it is available from ENTSO-e, which is about 13:15 CEST

cnu80 commented 1 month ago

thanks, for the 15min hint. Is it also possible to get the cent instead of eur price ? Or should I only set the factor ?