jisotalo / shelly-porssisahko

Nordpool-pörssisähköohjaus Shelly-releisiin
https://jisotalo.fi/shelly-porssisahko
GNU Affero General Public License v3.0
40 stars 13 forks source link

Fetching EE prices #8

Closed Elev5 closed 1 year ago

Elev5 commented 1 year ago

First, thank you so much for this. It's amazing.

I've forked this and tried to query prices for EE by changing the Elering API address to https://dashboard.elering.ee/api/nps/price/csv?fields=ee&start= but it still seems to fetch Finnish prices. Any idea what could be the issue?

jisotalo commented 1 year ago

Thanks!

Actually I have a plan to integrate country selection (and create english build) at some point. However the memory limit is already very close.

It seems to work OK if you change fi -> ee:

FI: https://dashboard.elering.ee/api/nps/price/csv?fields=fi&start=2023-10-30T00:00:00%2b02:00&end=2023-10-30T23:59:59%2b02:00

EE: https://dashboard.elering.ee/api/nps/price/csv?fields=ee&start=2023-10-30T00:00:00%2b02:00&end=2023-10-30T23:59:59%2b02:00

Did you run the npm run build command after changing the code? So you get a built version to ./dist directory?

Elev5 commented 1 year ago

Thank you! npm run build command is very likely what I'm missing (I'm very new to programming and just started). I will try it out as soon as possible.

Country selection and english build would be very much appreciated, but this version is already amazing and so helpful.