Skip to content

Comments

add sign to battery rate status ('-' if discharging, plain 0 and '+' if charging)#520

Open
azadevlab wants to merge 2 commits intocorecoding:mainfrom
azadevlab:add-sign-battery-usage
Open

add sign to battery rate status ('-' if discharging, plain 0 and '+' if charging)#520
azadevlab wants to merge 2 commits intocorecoding:mainfrom
azadevlab:add-sign-battery-usage

Conversation

@azadevlab
Copy link

MR goal: improves battery power usage display, readable power direction of battery (like other extensions, so it's clear if charging/discharging battery)

MR desc:

  1. sensors.js -> POWER_NOW is now adjusted based on the battery status. It becomes negative during discharge;
  2. values.js, add a plus + sign if >0 watts. e.g. if charging it will show as +45W (if battery consuming is 0W, then it will just 0W, not +0W)
  3. renamed "Rate" to "Power Rate" for better clarity
image image

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