pkuehnel / TeslaSolarCharger

A software to let your Tesla charge with solar energy ☀
GNU General Public License v3.0
130 stars 21 forks source link

Epex Spot AT (Awattar) #1108

Closed outrun0506 closed 8 months ago

outrun0506 commented 8 months ago

Integration of Epex Spot AT Data would be nice. API can be found here: https://api.awattar.at/v1/marketdata

Should nearly be the same as for Epex Spot DE.

pkuehnel commented 8 months ago

That's already possible if you are on v 2.23.1 or higher, see here Sorry for this being not documented, but I want to create an UI for that, the Environment variable thing is just a workaround for now. Note: As TSC caches data in its SQLite database, it takes two days until TSC uses the Austria values.

The TSC part of your docker compose.yml should then look like this:

teslasolarcharger:
    image: pkuehnel/teslasolarcharger:latest
    container_name: teslasolarcharger
    logging:
        driver: "json-file"
        options:
            max-file: "10"
            max-size: "100m"
    restart: always
    depends_on:
      - teslamateapi
    environment:
#      - Serilog__MinimumLevel__Default=Verbose #uncomment this line and recreate container with docker compose up -d for more detailed logs
      - TZ=Europe/Berlin ##You can change your Timezone here
      - AwattarBaseUrl=https://api.awattar.at/v1/marketdata
    ports:
      - 7190:80
    volumes:
      - teslasolarcharger-configs:/app/configs

Do not forget a docker compose up -d after updating your yml, as changes in Environment variables only take affect after rebuilding (not only restarting) the container.

outrun0506 commented 8 months ago

Ah 😅 yes, well sorry. Should habe read the Release Notes.... Sorry for that. I saw you tagged backend in addition. Should the "Issue" left open?

pkuehnel commented 8 months ago

Our are not the first one who asks for that ;-)