It is currently May 8th, 2024, 3:00 am

Help with showing Battery Life (Gnometer 1.3)

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help with showing Battery Life (Gnometer 1.3)

Post by jsmorley »

Well, I'm sorta stumped. I'm not on a laptop, so I'm limited in how much I can test. Maybe some on here with a laptop can check out your skin to see if I am missing something.
seanwammo
Posts: 10
Joined: August 9th, 2011, 7:04 pm

Re: Help with showing Battery Life (Gnometer 1.3)

Post by seanwammo »

hmm well in any case, any skins you reccomend that shows battery life?
seanwammo
Posts: 10
Joined: August 9th, 2011, 7:04 pm

Re: Help with showing Battery Life (Gnometer 1.3)

Post by seanwammo »

anyone?
User avatar
tru
Posts: 169
Joined: January 12th, 2010, 4:24 am
Location: A Salty Piece of Land...

Re: Help with showing Battery Life (Gnometer 1.3)

Post by tru »

seanwammo
Posts: 10
Joined: August 9th, 2011, 7:04 pm

Re: Help with showing Battery Life (Gnometer 1.3)

Post by seanwammo »

i looked through and couldnt find one that shows the battery life, meaning ones that show the time left or how long it will last except the alert V2 and that was the one i had problems with
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Help with showing Battery Life (Gnometer 1.3)

Post by smurfier »

This shows battery life on mouseover.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
seanwammo
Posts: 10
Joined: August 9th, 2011, 7:04 pm

Re: Help with showing Battery Life (Gnometer 1.3)

Post by seanwammo »

when i hover over it says unknown.... for the time left on battery life....bah i hate this problem
rdaraujo
Posts: 3
Joined: October 8th, 2011, 6:44 pm

Re: Help with showing Battery Life (Gnometer 1.3)

Post by rdaraujo »

For me it works by commenting the line "Format=" putting a ";" on the beginning.

My system is Windows 7 Enterprise x64 with Portuguese (Brazil) as format on "Region and Language".

Before:
Image

After:
Image

Here is the whole thing:

Code: Select all

[Rainmeter]
Author=poiru
AppVersion=1003000
Update=1000
MouseActionCursor=0
MiddleMouseDownAction=!RainmeterDeactivateConfig
BackgroundMode=1

[Metadata]
Name=Battery
Description=Shows your laptop battery usage.
Instructions=Click on the icon to open the Power Options control panel applet.
Version=1.3.0.2
License=Creative Commons BY-NC-SA 3.0

[Variables]
skin.Style=Horizontal
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
skin.Width=#width.Battery#

; MEASURES ====================================

[mPercent]
Measure=Plugin
Plugin=PowerPlugin.dll
PowerState=PERCENT
MaxValue=101
MinValue=0
UpdateDivider=5

[mAC]
Measure=Plugin
Plugin=PowerPlugin.dll
PowerState=ACLINE
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter Charging][!RainmeterRedraw]
IfBelowValue=1
IfBelowAction=!Execute [!RainmeterHideMeter Charging][!RainmeterRedraw]
UpdateDivider=5

[mLifetime]
Measure=Plugin
Plugin=PowerPlugin.dll
PowerState=LIFETIME
;Format=locale-time
Substitute="Unknown":"00:00"

; STYLES ======================================

@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc

; METERS ======================================

[Line]
Meter=IMAGE
MeterStyle=sLine

[Icon]
Meter=BITMAP
MeterStyle=sIcon
MeasureName=mPercent
BitmapImage=Battery.png
BitmapFrames=6
BitmapZeroFrame=0
LeftMouseUpAction=!Execute [control.exe powercfg.cpl]
ToolTipText="Open Power Options"
MouseActionCursor=1
UpdateDivider=5

[Charging]
Meter=IMAGE
MeterStyle=sIcon
ImageName=Charging.png
X=14r
Y=14r
W=8
H=8

[Title]
Meter=STRING
MeterStyle=sTitle
Text=Battery

[Subtitle]
Meter=STRING
MeterStyle=sSubtitle
MeasureName=mPercent
MeasureName2=mLifetime
Text="%1%, %2 left"

[Gap]
Meter=IMAGE
MeterStyle=sGapNP