Skip to content

Add InfluxDB timedata persistence and edge config volume mount#59

Open
amalbet wants to merge 1 commit intolocal-deploymentfrom
feature/influxdb
Open

Add InfluxDB timedata persistence and edge config volume mount#59
amalbet wants to merge 1 commit intolocal-deploymentfrom
feature/influxdb

Conversation

@amalbet
Copy link

@amalbet amalbet commented Mar 9, 2026

Summary

  • Add InfluxDB 1.8 as a dedicated container with healthcheck, named volume (influxdb-data), and backend dependency
  • Replace no-op Dummy timedata provider with InfluxDB provider config (timedata0.config)
  • Volume-mount openems-edge/config.d/etc/openems.d so Felix configs survive docker compose down/up
  • Fix Metadata/Odoo.config to use Docker service names (db, odoo16) instead of localhost
  • Fix edge backend controller apikey to match Odoo device registration
  • Include Felix runtime config updates (Core, Ess, Evcs components)

Closes #56, closes #57

Verification steps

# 1. Rebuild and start
docker compose build openems-backend
docker compose up -d

# 2. Verify InfluxDB is receiving data (wait ~60s for edge to connect)
curl -s http://localhost:8086/query --data-urlencode "q=SHOW MEASUREMENTS ON openemsdb"
# Should list "data" measurement

# 3. Query simulation data
curl -s http://localhost:8086/query --data-urlencode "db=openemsdb" \
  --data-urlencode "q=SELECT last(\"meter0/ActivePower\") FROM data"
# Should return non-null value

# 4. Verify edge configs persist
docker compose down && docker compose up -d
# Edge should start with all simulation components (check logs)
docker compose logs openems-edge | grep "Scheduler"

# 5. Verify UI shows edge
# Browse to http://localhost:4200, login admin/admin
# Should see edge0 with live simulation data

Storage estimate

~12 MB/day for simulation data (500 fields, ~288 writes/day)

🤖 Generated with Claude Code

- Add InfluxDB 1.8 container with healthcheck and named volume
- Replace Dummy timedata with InfluxDB provider (timedata0.config)
- Remove embedded InfluxDB from backend Dockerfile (now separate container)
- Volume-mount edge config.d to persist Felix configs across restarts
- Fix Metadata/Odoo.config to use Docker service names (db, odoo16)
- Fix edge backend controller apikey to match Odoo device registration
- Include Felix runtime config updates (Core, Ess, Evcs, DynamicBindings)

Closes #56, closes #57

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant