Skip to content

johnf/amber-electric-influxdb

Repository files navigation

Amber Electric Influx Docker

Docker image which reads from the Amber Electric API and stores the data into influxdb.

Config

You need to set the following variables

# Required
[email protected]
AE_PASSWORD=my-very-secrey-password

# Optional (defaults below)
INFLUXDB_HOSTNAME=influxdb
INFLUXDB_DATABASE=amber_electric

Development

# Build
docker build -t amber-electric-influxdb .

# Configure a direnv .envrc with all the variables

# Test
docker run -it \
  -e AE_USERNAME="$AE_USERNAME" \
  -e AE_PASSWORD="$AE_PASSWORD" \
  -e INFLUXDB_HOSTNAME="$INFLUXDB_HOSTNAME" \
  -e INFLUXDB_DATABASE="$INFLUXDB_HOSTNAME" \
  -e ONCE=true \
  amber-electric-influxdb

Release

# Update the change log
vi CHANGELOG.md

# Create a release
hub release create --browse v1.0.0

# Import the changelog
:r CHANGELOG.md

# Check Github Actions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages