Hello, i could use a little help with my battery indicator skin.
My laptop has a battery management app. It only lets the battery charge to 60% (this extends the battery's lifetime, or so the app says, anyway).
So basically, if the battey is plugged in and at 60% or higher, the windows battery icon will indicate "Plugged in, not charging" in the taskbar.
Is there a plugin or something that will let me display this info in my skin? I couldn't seem to find anything in Perfmon or PowerPlugin.
Thanks,
Andrew
It is currently May 2nd, 2024, 4:15 am
Battery meter. Display: "plugged in, not charging"
-
- Posts: 10
- Joined: December 20th, 2009, 11:02 pm
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Battery meter. Display: "plugged in, not charging"
All of this information is available through the Power plugin. You'll just need three separate measures to get each type of information (percentage, plugged in/not plugged in, and charging/not charging).
Here's a basic example skin:
Here's a basic example skin:
Code: Select all
[Rainmeter]
DynamicWindowSize=1
[MeasureBatteryPluggedIn]
Measure=Plugin
Plugin=PowerPlugin
PowerState=ACLine
Substitute="0":"On battery","1":"Plugged in"
[MeasureBatteryCharging]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Status
Substitute="0":"no battery","1":"charging","2":"not charging","3":"not charging","4":"not charging"
[MeasureBatteryPercent]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Percent
[String]
Meter=String
MeasureName=MeasureBatteryPluggedIn
MeasureName2=MeasureBatteryCharging
MeasureName3=MeasureBatteryPercent
Text=%1, %2. (%3%)
SolidColor=0,0,0,217
FontColor=255,255,255
FontSize=20
FontFace=Segoe UI
StringStyle=Bold
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
-
- Posts: 10
- Joined: December 20th, 2009, 11:02 pm
Re: Battery meter. Display: "plugged in, not charging"
Ah! That's what i was missing. It didn't occur to me that, even when plugged into the wall, if the system reports the battery as 'critical', it implies that it's not being charged.Kaelri wrote:[MeasureBatteryCharging]
Measure=Plugin
Plugin=PowerPlugin
PowerState=Status
Substitute="0":"no battery","1":"charging","2":"not charging","3":"not charging","4":"not charging"
Thanks a lot
EDIT: Odd, Power Plugin's "Status" is only reporting "No Battery". Switching PowerState to "Status2" works, though.