vividfog / nordpool-predict-fi

A Python app and ML model that predicts spot prices for the Nordpool FI market.
https://sahkovatkain.web.app/
MIT License
68 stars 8 forks source link

Add additional costs (such as transfer fees) to the prediction #19

Closed herrar1 closed 1 month ago

herrar1 commented 3 months ago

Add additional costs (such as transfer fees) to the prediction. So that it isn't as confusing as it is now. To color match today's real values and tomorrows prediction in Home Assistant... in my case i have around 5.39 cents of additional costs so that the prediction and real values don't match. image

vividfog commented 1 month ago

Transfer fees vary per location, so this isn't something that can be calculated up front for all. You can achieve this by editing the .yaml source that draws the graph, by adding a formula to the values before printing them out. For example "value + X cents" if your transfer fee is a fixed value.

This would add 10 cents to the value:

return [parseInt(timestamp) - 7200000, value + 10];

Hope this helps.