Skip to content

Commit

Permalink
Forecast: Add config for solcast.com
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Jun 20, 2024
1 parent ed37b04 commit 3fffc57
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 32 deletions.
31 changes: 29 additions & 2 deletions guide/external-server-cloud/.env
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,35 @@ REDIS_VOLUME_PATH=./redis
DB_VOLUME_PATH=./postgresql

##################################################################
# Solar forecasting with https://forecast.solar
# API docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solar forecasting with https://forecast.solar or https:://solcast.com
#
# Forecast.solar docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solcast docs: https://docs.solcast.com.au/
#
# Choose between "forecast.solar" and "solcast", default is "forecast.solar"
FORECAST_PROVIDER=forecast.solar

##### For provider "solcast" only:
#
# First, sign up for a free account at https://toolkit.solcast.com.au/ and
# create a "site" for your PV system.
# Up to two strings are supported, both will be assigned an ID that looks like "1234-5678-9abc-def0"
#
# API key for Solcast
# SOLCAST_APIKEY=secret-solcast-api-key
#
# For single string:
# SOLCAST_SITE=1111-2222-3333-4444
#
# For multiple strings (see See https://kb.solcast.com.au/creating-a-second-pv-site)
# FORECAST_CONFIGURATIONS=2
# SOLCAST_0_SITE=1111-2222-3333-4444
# SOLCAST_1_SITE=5555-6666-7777-8888
#
# Update interval in seconds (beware of the rate-limit!, 10 requests per day only!)
# FORECAST_INTERVAL=8640
#
##### For provider "forecast.solar" only:
#
# Latitude of the plant location
FORECAST_LATITUDE=50.12345
Expand Down
6 changes: 1 addition & 5 deletions guide/external-server-cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ Not required, but highly recommended:
- INSTALLATION_DATE
- INFLUX_PASSWORD
- INFLUX_ADMIN_TOKEN
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
- FORECAST_AZIMUTH
- FORECAST_KWP
- FORECAST_PROVIDER (and related forecast variables)

Save file and close the editor: <kbd>Ctrl+S</kbd>, then <kbd>Ctrl+X</kbd>

Expand Down
5 changes: 5 additions & 0 deletions guide/external-server-cloud/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ services:
- INFLUX_ORG
- INFLUX_BUCKET
- INFLUX_MEASUREMENT=${INFLUX_MEASUREMENT_FORECAST}
- FORECAST_PROVIDER
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
Expand Down Expand Up @@ -194,6 +195,10 @@ services:
- FORECAST_DAMPING_EVENING
- FORECAST_HORIZON
- FORECAST_INVERTER
- SOLCAST_APIKEY
- SOLCAST_SITE
- SOLCAST_0_SITE
- SOLCAST_1_SITE
restart: always
logging:
options:
Expand Down
31 changes: 29 additions & 2 deletions guide/external-server/.env
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,35 @@ REDIS_VOLUME_PATH=./redis
DB_VOLUME_PATH=./postgresql

##################################################################
# Solar forecasting with https://forecast.solar
# API docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solar forecasting with https://forecast.solar or https:://solcast.com
#
# Forecast.solar docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solcast docs: https://docs.solcast.com.au/
#
# Choose between "forecast.solar" and "solcast", default is "forecast.solar"
FORECAST_PROVIDER=forecast.solar

##### For provider "solcast" only:
#
# First, sign up for a free account at https://toolkit.solcast.com.au/ and
# create a "site" for your PV system.
# Up to two strings are supported, both will be assigned an ID that looks like "1234-5678-9abc-def0"
#
# API key for Solcast
# SOLCAST_APIKEY=secret-solcast-api-key
#
# For single string:
# SOLCAST_SITE=1111-2222-3333-4444
#
# For multiple strings (see See https://kb.solcast.com.au/creating-a-second-pv-site)
# FORECAST_CONFIGURATIONS=2
# SOLCAST_0_SITE=1111-2222-3333-4444
# SOLCAST_1_SITE=5555-6666-7777-8888
#
# Update interval in seconds (beware of the rate-limit!, 10 requests per day only!)
# FORECAST_INTERVAL=8640
#
##### For provider "forecast.solar" only:
#
# Latitude of the plant location
FORECAST_LATITUDE=50.12345
Expand Down
6 changes: 1 addition & 5 deletions guide/external-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ Not required, but highly recommended:
- INSTALLATION_DATE
- INFLUX_PASSWORD
- INFLUX_ADMIN_TOKEN
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
- FORECAST_AZIMUTH
- FORECAST_KWP
- FORECAST_PROVIDER (and related forecast variables)

WARNING: Don't forget to change passwords, because otherwise everyone can access your database!

Expand Down
5 changes: 5 additions & 0 deletions guide/external-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ services:
- INFLUX_ORG
- INFLUX_BUCKET
- INFLUX_MEASUREMENT=${INFLUX_MEASUREMENT_FORECAST}
- FORECAST_PROVIDER
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
Expand Down Expand Up @@ -169,6 +170,10 @@ services:
- FORECAST_DAMPING_EVENING
- FORECAST_HORIZON
- FORECAST_INVERTER
- SOLCAST_APIKEY
- SOLCAST_SITE
- SOLCAST_0_SITE
- SOLCAST_1_SITE
restart: always
logging:
options:
Expand Down
31 changes: 29 additions & 2 deletions guide/mqtt-evcc/.env
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,35 @@ MQTT_TOPIC_WALLBOX_CHARGE_POWER=evcc/loadpoints/1/chargePower
MQTT_FLIP_BAT_POWER=true

##################################################################
# Solar forecasting with https://forecast.solar
# API docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solar forecasting with https://forecast.solar or https:://solcast.com
#
# Forecast.solar docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solcast docs: https://docs.solcast.com.au/
#
# Choose between "forecast.solar" and "solcast", default is "forecast.solar"
FORECAST_PROVIDER=forecast.solar

##### For provider "solcast" only:
#
# First, sign up for a free account at https://toolkit.solcast.com.au/ and
# create a "site" for your PV system.
# Up to two strings are supported, both will be assigned an ID that looks like "1234-5678-9abc-def0"
#
# API key for Solcast
# SOLCAST_APIKEY=secret-solcast-api-key
#
# For single string:
# SOLCAST_SITE=1111-2222-3333-4444
#
# For multiple strings (see See https://kb.solcast.com.au/creating-a-second-pv-site)
# FORECAST_CONFIGURATIONS=2
# SOLCAST_0_SITE=1111-2222-3333-4444
# SOLCAST_1_SITE=5555-6666-7777-8888
#
# Update interval in seconds (beware of the rate-limit!, 10 requests per day only!)
# FORECAST_INTERVAL=8640
#
##### For provider "forecast.solar" only:
#
# Latitude of the plant location
FORECAST_LATITUDE=50.12345
Expand Down
5 changes: 5 additions & 0 deletions guide/mqtt-evcc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ services:
- INFLUX_ORG
- INFLUX_BUCKET
- INFLUX_MEASUREMENT=${INFLUX_MEASUREMENT_FORECAST}
- FORECAST_PROVIDER
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
Expand Down Expand Up @@ -212,6 +213,10 @@ services:
- FORECAST_DAMPING_EVENING
- FORECAST_HORIZON
- FORECAST_INVERTER
- SOLCAST_APIKEY
- SOLCAST_SITE
- SOLCAST_0_SITE
- SOLCAST_1_SITE
restart: always
logging:
options:
Expand Down
31 changes: 29 additions & 2 deletions guide/mqtt-iobroker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,35 @@ MQTT_TOPIC_WALLBOX_CHARGE_POWER=senec/0/WALLBOX/APPARENT_CHARGING_POWER/0
MQTT_FLIP_BAT_POWER=false

##################################################################
# Solar forecasting with https://forecast.solar
# API docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solar forecasting with https://forecast.solar or https:://solcast.com
#
# Forecast.solar docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solcast docs: https://docs.solcast.com.au/
#
# Choose between "forecast.solar" and "solcast", default is "forecast.solar"
FORECAST_PROVIDER=forecast.solar

##### For provider "solcast" only:
#
# First, sign up for a free account at https://toolkit.solcast.com.au/ and
# create a "site" for your PV system.
# Up to two strings are supported, both will be assigned an ID that looks like "1234-5678-9abc-def0"
#
# API key for Solcast
# SOLCAST_APIKEY=secret-solcast-api-key
#
# For single string:
# SOLCAST_SITE=1111-2222-3333-4444
#
# For multiple strings (see See https://kb.solcast.com.au/creating-a-second-pv-site)
# FORECAST_CONFIGURATIONS=2
# SOLCAST_0_SITE=1111-2222-3333-4444
# SOLCAST_1_SITE=5555-6666-7777-8888
#
# Update interval in seconds (beware of the rate-limit!, 10 requests per day only!)
# FORECAST_INTERVAL=8640
#
##### For provider "forecast.solar" only:
#
# Latitude of the plant location
FORECAST_LATITUDE=50.12345
Expand Down
5 changes: 5 additions & 0 deletions guide/mqtt-iobroker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ services:
- INFLUX_ORG
- INFLUX_BUCKET
- INFLUX_MEASUREMENT=${INFLUX_MEASUREMENT_FORECAST}
- FORECAST_PROVIDER
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
Expand Down Expand Up @@ -212,6 +213,10 @@ services:
- FORECAST_DAMPING_EVENING
- FORECAST_HORIZON
- FORECAST_INVERTER
- SOLCAST_APIKEY
- SOLCAST_SITE
- SOLCAST_0_SITE
- SOLCAST_1_SITE
restart: always
logging:
options:
Expand Down
31 changes: 29 additions & 2 deletions guide/raspberry-pi/.env
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,35 @@ SENEC_LANGUAGE=de
# SENEC_INTERVAL=60

##################################################################
# Solar forecasting with https://forecast.solar
# API docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solar forecasting with https://forecast.solar or https:://solcast.com
#
# Forecast.solar docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solcast docs: https://docs.solcast.com.au/
#
# Choose between "forecast.solar" and "solcast", default is "forecast.solar"
FORECAST_PROVIDER=forecast.solar

##### For provider "solcast" only:
#
# First, sign up for a free account at https://toolkit.solcast.com.au/ and
# create a "site" for your PV system.
# Up to two strings are supported, both will be assigned an ID that looks like "1234-5678-9abc-def0"
#
# API key for Solcast
# SOLCAST_APIKEY=secret-solcast-api-key
#
# For single string:
# SOLCAST_SITE=1111-2222-3333-4444
#
# For multiple strings (see See https://kb.solcast.com.au/creating-a-second-pv-site)
# FORECAST_CONFIGURATIONS=2
# SOLCAST_0_SITE=1111-2222-3333-4444
# SOLCAST_1_SITE=5555-6666-7777-8888
#
# Update interval in seconds (beware of the rate-limit!, 10 requests per day only!)
# FORECAST_INTERVAL=8640
#
##### For provider "forecast.solar" only:
#
# Latitude of the plant location
FORECAST_LATITUDE=50.12345
Expand Down
6 changes: 1 addition & 5 deletions guide/raspberry-pi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ Not required, but highly recommended:
- INSTALLATION_DATE
- INFLUX_PASSWORD
- INFLUX_ADMIN_TOKEN
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
- FORECAST_AZIMUTH
- FORECAST_KWP
- FORECAST_PROVIDER (and related forecast variables)

Note: Editing the file with `nano` is just an example, because this editor is pre-installed. You can use any editor you like.

Expand Down
5 changes: 5 additions & 0 deletions guide/raspberry-pi/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ services:
- INFLUX_ORG
- INFLUX_BUCKET
- INFLUX_MEASUREMENT=${INFLUX_MEASUREMENT_FORECAST}
- FORECAST_PROVIDER
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
Expand Down Expand Up @@ -201,6 +202,10 @@ services:
- FORECAST_DAMPING_EVENING
- FORECAST_HORIZON
- FORECAST_INVERTER
- SOLCAST_APIKEY
- SOLCAST_SITE
- SOLCAST_0_SITE
- SOLCAST_1_SITE
restart: always
logging:
options:
Expand Down
31 changes: 29 additions & 2 deletions guide/synology/.env
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,35 @@ SENEC_LANGUAGE=de
# SENEC_INTERVAL=60

##################################################################
# Solar forecasting with https://forecast.solar
# API docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solar forecasting with https://forecast.solar or https:://solcast.com
#
# Forecast.solar docs: https://doc.forecast.solar/doku.php?id=api:estimate
# Solcast docs: https://docs.solcast.com.au/
#
# Choose between "forecast.solar" and "solcast", default is "forecast.solar"
FORECAST_PROVIDER=forecast.solar

##### For provider "solcast" only:
#
# First, sign up for a free account at https://toolkit.solcast.com.au/ and
# create a "site" for your PV system.
# Up to two strings are supported, both will be assigned an ID that looks like "1234-5678-9abc-def0"
#
# API key for Solcast
# SOLCAST_APIKEY=secret-solcast-api-key
#
# For single string:
# SOLCAST_SITE=1111-2222-3333-4444
#
# For multiple strings (see See https://kb.solcast.com.au/creating-a-second-pv-site)
# FORECAST_CONFIGURATIONS=2
# SOLCAST_0_SITE=1111-2222-3333-4444
# SOLCAST_1_SITE=5555-6666-7777-8888
#
# Update interval in seconds (beware of the rate-limit!, 10 requests per day only!)
# FORECAST_INTERVAL=8640
#
##### For provider "forecast.solar" only:
#
# Latitude of the plant location
FORECAST_LATITUDE=50.12345
Expand Down
6 changes: 1 addition & 5 deletions guide/synology/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ Not required, but highly recommended:
- INSTALLATION_DATE
- INFLUX_PASSWORD
- INFLUX_ADMIN_TOKEN
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
- FORECAST_AZIMUTH
- FORECAST_KWP
- FORECAST_PROVIDER (and related forecast variables)

Note: Editing the file with `vim` is just an example, because this is the pre-installed editor. You can use any editor you like. If you are not familiar with `vim`, you can use [TextEditor](https://www.synology.com/dsm/packages/TextEditor) by Synology which can be installed as package via DSM.

Expand Down
5 changes: 5 additions & 0 deletions guide/synology/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ services:
- INFLUX_ORG
- INFLUX_BUCKET
- INFLUX_MEASUREMENT=${INFLUX_MEASUREMENT_FORECAST}
- FORECAST_PROVIDER
- FORECAST_LATITUDE
- FORECAST_LONGITUDE
- FORECAST_DECLINATION
Expand Down Expand Up @@ -201,6 +202,10 @@ services:
- FORECAST_DAMPING_EVENING
- FORECAST_HORIZON
- FORECAST_INVERTER
- SOLCAST_APIKEY
- SOLCAST_SITE
- SOLCAST_0_SITE
- SOLCAST_1_SITE
restart: always
logging:
options:
Expand Down

0 comments on commit 3fffc57

Please sign in to comment.