Giter Club home page Giter Club logo

tsc-spotpricecharger's Introduction

tsc-spotpricecharger

Important: Due to updates in TeslaSolarCharger the spotpricecharger currently does not work as before. I am looking into the required changes to adopt to those changes. Until then it's best to disable the spotpricecharger.

Docker container to be added to an existing Teslamate and TeslaSolarCharger. It can initiate car charging (via TeslaSolarCharger) based on spot price (below a certain limit) up to defined state of charge (SoC) limit.

To use it just add it to the docker-compose.yml of your Teslamate installation. For example:

  tsc-spotpricecharger:
    image: andreasfaerber/tsc-spotpricecharger
    container_name: tsc-spotpricecharger
    restart: always
    depends_on:
      - teslasolarcharger
    environment:
      - TZ=Europe/Berlin
      - TSC_SPOT_TESLAMATEAPI_URL=http://teslamateapi:8080
      - TSC_SPOT_TSC_URL=http://teslasolarcharger:7190
      - TSC_SPOT_SPOTCHARGEPRICE=0.05
      - TSC_SPOT_CHECKINTERVAL=300
      - TSC_SPOT_STARTUPDELAY=180
      - TSC_SPOT_CARID=1
      - TSC_SPOT_CHARGESOCLIMIT=80
      - TSC_SPOT_FALLBACKCHARGELIMIT=80
      - TSC_SPOT_DEBUG=false
Variable Default Description
TSC_SPOT_TSC_URL http://teslasolarcharger:7190 TeslaSolarCharger URL
TSC_SPOT_TESLAMATEAPI_URL http://teslamateapi:8080 Teslamate API URL
TSC_SPOT_SPOTCHARGEPRICE 0.06 Spot price under which charging should charge. Raw spot price without any additional price components
TSC_SPOT_CHECKINTERVAL 300 Interval in seconds to check for spot price and if charging should start / stop.
TSC_SPOT_CARID 1 Car ID in TeslaSolarCharger to initiate charging for when spot price falls below TSC_SPOT_SPOTCHARGEPRICE
TSC_SPOT_CHARGESOCLIMIT 80 Upper SoC limit to which the car should be charged which spot price is below TSC_SPOT_SPOTCHARGEPRICE
TSC_SPOT_FALLBACKSOCLIMIT 80 Fallback SoC limit when the initial SoC limit in TeslaSolarCharger has not been saved (usually across restarts)
TSC_SPOT_STARTUPDELAY 180 Delay after startup to allow TeslaSolarCharger to properly start up
TSC_SPOT_DEBUG false Log debug information
TSC_SPOT_DRYRUN false Do not issue API calls to TeslaSolarCharger
TZ Europe/Berlin Local timezone

tsc-spotpricecharger's People

Contributors

andreasfaerber avatar

Stargazers

 avatar

Watchers

 avatar

tsc-spotpricecharger's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.