Back-end development on energy reporting #478
Closed
Flix6x
started this conversation in
Qualification assignments
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The task is to add a FlexMeasures CLI task (
flexmeasures show total
) that prints the total energy consumption of the battery in our toy tutorial.Steps:
docker exec -it flexmeasures-server-1 bash -c "flexmeasures show asset --id 3"
(run in separate terminal) should show the battery asset (see example)flexmeasures show total
will do (hint: we work on the CLI). Then implement the logic (for inspiration, see the code forflexmeasures show beliefs
).flexmeasures show total --sensor-id 2
command (see step 3 on how to execute this command) should now show the battery's total energy consumption.Bonus: add CLI options to set a start and duration so that the CLI command could be used to calculate a total from some starting date for some period. For example: adding
--start 2022-08-01 --duration P1M
to the command would give the total consumption for August.Beta Was this translation helpful? Give feedback.
All reactions