BeatsuDev / tibber.py

An UNOFFICIAL python wrapper for the nordic electricity company Tibber's API.
MIT License
17 stars 2 forks source link

[FEATURE] Allow datetime objects as arguments for `before` and `after` parameters in fetch_consumption and fetch_production #36

Open BeatsuDev opened 1 year ago

BeatsuDev commented 1 year ago

Describe the solution you'd like

The before and after parameters of Home.fetch_consumption() and Home.fetch_production() are actually Base64 encoded datetimes. It would be nice to be able to pass those arguments as a datetime object as well as a base64 string. Passing a datetime object can be much more readable and intuitive.