Commit graph

5 commits

Author SHA1 Message Date
dlawler489
1dbfe3007b Share one iSolarCloud OAuth token across both household instances
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 24s
Sungrow's OAuth server keeps only one active token session per (app,
account), not per plant -- with Kallangur and McDowall each managing their
own independent token against the same account, whichever one refreshed
last was silently invalidating the other's refresh token. Both instances
now share one token file (a common bind-mounted volume) instead of each
holding their own.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 08:04:30 +10:00
dlawler489
ba070e0ad5 Fix env_file path for Docker-outside-of-Docker deploy
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 8s
The stack manager runs docker compose inside its own container (talking
to the host daemon over the mounted socket), so env_file paths resolve
against its filesystem, not the host's -- unlike volume bind-mount
sources, which the daemon resolves against the real host. Point env_file
at the stack manager's own data mount instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 11:25:42 +10:00
dlawler489
eaecc41bb1 Use absolute host paths for env/data in docker-compose.yml
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 8s
The stack manager re-clones this repo fresh on every deploy, which was
silently wiping a .env and bind-mounted data placed inside the checkout
directory. Point both at a stable location outside it instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 11:23:15 +10:00
dlawler489
9e39792d49 Add CI to build/push Docker image, switch compose to pull it
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 36s
Matches the etsy-finance-tracker pattern: Forgejo Actions builds and
pushes the image on every push to main, and docker-compose.yml now
pulls that image instead of building from source on the deploy host.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 11:15:27 +10:00
dlawler489
84c4922bbc Initial commit: solar usage vs AER plan comparison app
FastAPI app that pulls interval usage from Sungrow iSolarCloud (OAuth2),
caches AER Consumer Data Right electricity plan data, and compares actual
metered usage against every available plan to estimate real annual cost
(TOU, tiered feed-in, and flat tariffs).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 11:07:01 +10:00