https://github.com/johnf/amber-electric-influxdb
https://github.com/johnf/amber-electric-influxdb
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnf/amber-electric-influxdb
- Owner: johnf
- Created: 2020-01-01T05:43:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:40:39.000Z (over 3 years ago)
- Last Synced: 2025-03-17T10:51:54.700Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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
```bash
# Required
AE_USERNAME=user@example.com
AE_PASSWORD=my-very-secrey-password
# Optional (defaults below)
INFLUXDB_HOSTNAME=influxdb
INFLUXDB_DATABASE=amber_electric
```
## Development
``` bash
# 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
``` bash
# 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
```