- Clone repo
yarn install
- Create
.env
:
API_KEY=tibber_api_key
PRICE_LIMIT=0.3 # In SEK inc taxes
GARO_IP=ip_of_garo
- Add to crontab:
1 * * * * cd $HOME && /usr/bin/node $HOME/tibber-garo/index.js
This will run one minute past every hour, and check the current price against PRICE_LIMIT
, if below, enable charging, else disable.
Implement charge override.
API for changing PRICE_LIMIT
Manual settings of ['Availablae for charging'|'Not available for charging'|'Schedule'] will be reset every time the program is run.