8000 Add per-app electricity cost estimates by EClinick · Pull Request #20 · EClinick/juice · GitHub
[go: up one dir, main page]

Skip to content

Add per-app electricity cost estimates - #20

Merged
EClinick merged 7 commits into
masterfrom
task/ec/app-energy-cost
Aug 2, 2026
Merged

EClinick merged 7 commits into
masterfrom
task/ec/app-energy-cost

Conversation

@EClinick
@EClinick EClinick commented Jul 31, 2026 •
Copy link
Copy Markdown
Owner

Summary

  • add a persisted electricity price per kWh in the local currency
  • embed the kWh price control in the shared Stats & Settings window instead of opening a separate Settings window
  • calculate estimated app cost from recorded watt-hours for the selected range
  • show cost alongside app energy and live watts in the popover, Stats window, Mac mini dashboard, and app details
  • retain enough fractional precision so positive app costs do not display as zero

Why

Juice already attributes live watts and accumulated energy to apps. A configurable utility rate turns that recorded energy into a useful estimate of what each app costs to run, while keeping Stats and its only setting in one reused window.

Verification

  • SWIFTPM_MODULECACHE_OVERRIDE=/tmp/juice-unified-swiftpm-cache CLANG_MODULE_CACHE_PATH=/tmp/juice-unified-clang-cache make test
  • 305 tests passed across 39 suites
  • git diff --check

Copilot AI review requested due to automatic review settings July 31, 2026 19:32
@vercel
vercel Bot commented Jul 31, 2026 •
Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
website Ignored Ignored Preview Aug 2, 2026 7:10pm

Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@EClinick
8000 EClinick merged commit bb51c17 into master Aug 2, 2026
1 check passed
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.

2 participants

0