New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CLI command flexmeasures add report
to compute reports using a Reporter
#642
Comments
|
Good points!
I think
Yes, I like it. That way we avoid repeating the same code to deal with time.
Very true, indeed.
Sure, that would be nice.
Oh yeah, true.
I would make the
Would you rather use flag (e.g
I agree. Stdout would a nice way to enable piping Linux commands but it requires to keep a very well formated output and avoid logging to stdout. Let's leave it for a future iteration. |
The difference between reporter and report can be tricky, true. Maybe call the parameter
But we only need the (target) sensor when we write to the database. Also, you listed only three types of outputs. Finally, in the case of I believe we can do with one argument
|
I'd also find that a nicer, more explicit, parameter name. However, I'm also confused, because the title of this Issue mentions that the Best case scenario, it should be enough to call the CLI command with only a sensor ID:
This way, it fills in the missing report since the last time. |
With regards to output, I just wanted to note that we already have the |
Which sensor is supposed to carry the @victorgarcia98 also mentioned a Victor, if I am correct (and/or you agree), let's adapt the title of this PR. |
Very true! My fault, the name of the PR comes from the task of the project, directly, and we have made some changes since then. Still pending to close PR #641, but, at the moment, the
We can discuss whether to "attatch" a report to a sensor (e.g having report_config as attribute), so that we could call a method of the Moreover, regarding UX, I find that the best would be to pass the Another interesting feature would be to have a CLI command that scans a folder for configuration files (
Gathering all the ideas:
Please, let me know if that's what you had in mind 😄 Out of scope: a similar thing could be done for the |
flexmeasures add report
that reads a sensor's report_config
attribute and stores the resulting data.flexmeasures add report
to compute reports using a Reporter
This would be a good add-on to allow users to create reports straight from the CLI.
I suggest this command to have the following features:
--output report.csv
to output the resulting report in different formats. By default:stdout
. We can just rely on the output file extension or have a separate optional flag (--output-type csv
) to force the output format.csv
,xlsx
,stdout
, (pickle
?)Inspired from issue #509 and in views of the developments of the
Reporter
class, I suggest the following command format:Please, let me know your thoughts on the naming of the command as well as the features to support..
The text was updated successfully, but these errors were encountered: