After I have started the logging of my energy use with my flukso, I have some more things I want to build. One of those is that I want to make a difference between the High and Low tariff I pay for my electricity. I get my electricity from Liander, and they have some rules to decide wether it's High tariff or Low tariff:
It's always High tariff, except:
- from 23:00 to 07:00
- Saturday and Sunday
- Some hollidays, including Easter, Christmas, Pentecost and of course Kingsday.
To do this in the database, I made a php script: