First of all love the idea.
is it possible to calculate the session total in NOK and a "Total Total"?
Example output:
Prices fetched for period 2023-02-25 02:00:00 - 2023-02-25 23:59:59
2023-02-25 12:00 - 12:59 @ 0.8986 NOK (+0.7275%)
2023-02-25 13:00 - 13:59 @ 0.8907 NOK (+0%)
2023-02-25 14:00 - 14:59 @ 0.8986 NOK (+0.7275%)
Session Average: 0.8960 NOK
Session Total: XXX NOK
----------------
Total Average: 0.8960 NOK
Total: XXX NOK
Add total price for session and all
Fixes #1
Add parameters for outputs
I think it would be useful to show the estimated percentage of the battery for each session and total.
This calculator is now just a cli application. I think it would be useful to have it as a web application too with ability to store configurations in session or something.
First, I take it you like the project, thank you. :-)
Second, I like your suggestion and see the value in knowing the estimated cost. I'll put it on my todo list. :-)
Major refactor
Cli parameters (or env variables). Allow to set max threshold Use fibers internally, this was mostly to test them out.. :-) Refactor Runner into other classes
Add instructions to build as running app in Containerfile
Handle if tomorrow prices are unavailable
Handle if relationship attribute is not a property of the entity itself
Allow to set price area
Change output
Split periods with own average and then a total average
Fix return types
Fix testcase for exception message
Update phpstan, phpunit, and config