Skip to content
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

vzlogger: Add cache #18617

Merged
merged 3 commits into from
Feb 7, 2025
Merged

Conversation

StefanSchoof
Copy link
Contributor

Nutze den neuen cache aus #18601 für den vzlogger

@@ -71,6 +71,7 @@ render: |
source: http # use http plugin
uri: http://{{ .host }}:{{ .port }}/
jq: .data[] | select(.uuid=={{ quote (trimAll "'" .uuid) }}) | .tuples[0][1] # parse response json
cache: 1s
Copy link
Member

Choose a reason for hiding this comment

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

Bitte als Parameter mit Defaultwert. 1s klingt gut.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mein Ziel war, das in einem Intervall nur 1 und nicht mehr 10 requests gemacht werden. Ich denke das klappt universell mit dem Cache von 1 Sekunde. Mit ist kein anderer Use Case eingefallen, wo eine andere Zeit sinnvoll wäre. Daher hatte ich auf den Parameter verzichtet.

Baue da morgen den Parameter ein.

@andig andig added the devices Specific device support label Feb 5, 2025
@andig andig merged commit ddf27d5 into evcc-io:master Feb 7, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants