Sign inSign up

balboah/gocharge

By balboah

•Updated almost 8 years ago

This tool is used for switching a Halo Charger depending on when the hourly price on Tibber.

Image
0

406

balboah/gocharge repository overview

⁠Go Charge

This tool is used for switching a Halo Charger⁠ on/off depending on when the hourly price on Tibber⁠ is the cheapest.

⁠Dependencies

Both services requires that you have requested your personal API access tokens. This example runs through Docker and is implemendeted in such a way that it requires an external scheduler a.k.a. crontab.

⁠Example

⁠One time run with Docker
docker run --rm -ti balboah/gocharge -hours 4 -tibberToken *changeme* -haloToken *changeme* -haloCharger *changeme* -haloSerial *changeme*
⁠Kubernetes cronjob
# Set API keys and select charger
kubectl create secret generic gocharge --from-literal=tibber-token='changeme' --from-literal=halo-token='changeme' --from-literal=halo-charger='changeme' --from-literal=halo-serial='changeme'

# Run on cronjob schedule
kubectl create --save-config -f kube/cronjob.yaml

Tag summary

Content type

Image

Digest

Size

6.8 MB

Last updated

almost 8 years ago

docker pull balboah/gocharge