Water heater control by Nordpool web prices

Need help with programming smart outlet that control my water heater.
I have programmed it to charge between 3 and 5 am and 12 and 3pm, replaced 2kw to 3kw heater element to charge quicker, but, time pattern is changed daily and prices are not always lowest in programmed time.
I was thinking if there is a way that system can read from here day ahead data and apply it for the next day pattern?
Is there a way to do that?
Guess it would help other people to control their energy bills too.
I am pretty much limited with programming skills and cannot reach further then this, so if there is someone who can, I would really appreciate any help.