Skip to content

Add solarprognose.de #19364

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

Closed
wants to merge 17 commits into from
Closed
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions templates/definition/tariff/solarprognose-de.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
template: solarprognose.de
products:
- brand: solarprognose.de
requirements:
description:
en: "[solarprognose.de](https://www.solarprognose.de) can be used for free (but donations are welcome). Plans can also be used by specifying an API key."
de: "[solarprognose.de](https://www.solarprognose.de) kann kostenlos verwendet werden (Spenden sind allerdings willkommen). Pläne können ebenfalls verwendet werden, indem ein API-Key angegeben wird."
evcc: ["skiptest"]
group: solar
params:
- name: accesstoken
description:
en: access token from user profile
de: Zugriffs-Schlüssel aus Benutzer-Profil
required: true
- name: item
choice: ["location", "plant", "inverter"]
required: true
- name: token
description:
en: unique token for selected item
de: Eindeutiger Schlüssel für das angegebene Element
required: true
- name: algorithm
description:
en: forecasting algorithm
de: Prognosealgorithmus
default: mosmix
advanced: true
- name: interval
default: 1h
advanced: true
render: |
type: custom
tariff: solar
forecast:
source: http
uri: https://www.solarprognose.de/web/solarprediction/api/v1?_format=json&access-token={{ .accesstoken }}&item={{ .item }}&token={{ unquote .token }}&algorithm={{ .algorithm }}&type=hourly
jq: |
[ .data | to_entries.[] | {
"start": (.key | tonumber | strftime("%FT%TZ") ),
"end": (.key | tonumber + 3600 | strftime("%FT%TZ") ) ,
"price": (.value.[0]*1000)
} ] | tostring
interval: {{ .interval }}