Skip to content

Conversation

@cwasicki
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 16, 2025 19:52
@github-actions github-actions bot added the part:docs Affects the documentation label Jul 16, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the README documentation by enhancing usage examples and adding new sections for better user guidance. The changes focus on replacing broken links with working references, adding authorization documentation, and introducing formula usage examples.

  • Replaces broken examples link with a reference to the CLI tool source code
  • Adds documentation link for authorization and signing details
  • Introduces a new section explaining formula usage with practical examples

README.md Outdated
## Usage

Please also refer to [examples](https://github.com/frequenz-floss/frequenz-client-reporting-python/tree/HEAD/examples) for more detailed usage.
Please also refer to source of the [CLI tool](src/frequenz/client/reporting/cli/__main__.py) for a practical example of how to use the client.
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase 'source of the' is grammatically awkward. Consider changing to 'Please also refer to the CLI tool source code for a practical example of how to use the client.'

Suggested change
Please also refer to source of the [CLI tool](src/frequenz/client/reporting/cli/__main__.py) for a practical example of how to use the client.
Please also refer to the [CLI tool](src/frequenz/client/reporting/cli/__main__.py) source code for a practical example of how to use the client.

Copilot uses AI. Check for mistakes.
README.md Outdated
Note that this endpoint must be used with a `resampling_period`.
Details on the formula syntax can be found [here](https://github.com/frequenz-floss/frequenz-microgrid-formula-engine-rs/tree/v0.x.x?tab=readme-ov-file#formula-syntax-overview).

```
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code block is missing a language identifier. Consider adding 'python' after the opening backticks for proper syntax highlighting: ```python

Suggested change
```
```python

Copilot uses AI. Check for mistakes.
@cwasicki cwasicki force-pushed the read branch 3 times, most recently from 4ddc60f to 7838e9e Compare July 16, 2025 20:01
@cwasicki cwasicki added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jul 17, 2025
Copy link
Collaborator

@flora-hofmann-frequenz flora-hofmann-frequenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cwasicki cwasicki added this pull request to the merge queue Jul 17, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 2707a4f Jul 17, 2025
5 of 6 checks passed
@cwasicki cwasicki deleted the read branch July 17, 2025 10:09
- Defining a time range with `start_time` and `end_time`
- Optional downsampling using `resampling_period` (e.g., `timedelta(minutes=15)`)
- Selecting specific `microgrid_id` and `component_id`.
- Choosing one or more `metrics` to retrieve. Available metrics are listed [here](https://github.com/frequenz-floss/frequenz-api-common/blob/v0.8.0/proto/frequenz/api/common/v1alpha8/metrics/metrics.proto).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it is much better, but you could also point to the generated docs:

In a near future, we should probably use client-common and that should have a nice Python doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea: #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants