I have a way to measure battery power
07-01-2017, 09:03 AM (This post was last modified: 07-01-2017 10:38 AM by webmasterpdx.)
Post: #20
 webmasterpdx Senior Member Posts: 541 Joined: Sep 2015
RE: I have a way to measure battery power
I have new data as the power has gone down to the next level. Here is the table so far. I don't know if there is going to be another level before the power goes off or there is going to be a message. I haven't seen a "low power" message yet either. In this table, V is the % value returned by my little app above, HP is the % full according to the HP guys returned by the hardware, C is the color inside the battery icon in RGB hex (and english), Pixels is the number of pixels turned on in the battery icon, and Y is the y value of highest vertical pixel on, where x=315 where the color changes inside the battery icon.
Code:
V   Y  Pixels  HP   C 100 04 11     100 #008400h Bright Green  80 07 08      75 #008400h Bright Green  60 09 06      50 #008400h Bright Green  30 12 03      25 #EFCE29h Yellow

I had to change to code to change 8400 to EFCE29 for it to work now that it's changed from green to yellow. I'll rewrite everything to be more efficient and work no matter what the color when I've gotten all the info I require....when battery goes down to the shutoff point.

I'll update when I get any more info as the power goes down farther (if there is any, other than the power going out).
-Donald[/code]
 « Next Oldest | Next Newest »

 Messages In This Thread I have a way to measure battery power - webmasterpdx - 06-25-2017, 05:03 AM RE: I have a way to measure battery power - cyrille de brébisson - 06-26-2017, 05:30 AM RE: I have a way to measure battery power - webmasterpdx - 06-27-2017, 10:43 AM RE: I have a way to measure battery power - toml_12953 - 06-28-2017, 12:05 PM RE: I have a way to measure battery power - Tim Wessman - 06-28-2017, 02:59 PM RE: I have a way to measure battery power - toml_12953 - 06-28-2017, 05:38 PM RE: I have a way to measure battery power - DrD - 06-27-2017, 11:21 AM RE: I have a way to measure battery power - TravisE - 06-27-2017, 09:13 PM RE: I have a way to measure battery power - webmasterpdx - 06-28-2017, 01:14 AM RE: I have a way to measure battery power - DrD - 06-28-2017, 10:50 AM RE: I have a way to measure battery power - webmasterpdx - 06-28-2017, 11:02 AM RE: I have a way to measure battery power - DrD - 06-28-2017, 11:20 AM RE: I have a way to measure battery power - webmasterpdx - 06-28-2017, 01:28 PM RE: I have a way to measure battery power - webmasterpdx - 06-28-2017, 01:25 PM RE: I have a way to measure battery power - StephenG1CMZ - 06-28-2017, 04:45 PM RE: I have a way to measure battery power - StephenG1CMZ - 10-28-2017, 02:57 PM RE: I have a way to measure battery power - webmasterpdx - 06-29-2017, 01:54 AM RE: I have a way to measure battery power - toml_12953 - 06-29-2017, 02:46 AM RE: I have a way to measure battery power - StephenG1CMZ - 06-29-2017, 05:35 AM RE: I have a way to measure battery power - webmasterpdx - 06-29-2017, 06:34 AM RE: I have a way to measure battery power - webmasterpdx - 07-01-2017 09:03 AM RE: I have a way to measure battery power - Dieter - 07-01-2017, 09:57 AM RE: I have a way to measure battery power - webmasterpdx - 07-01-2017, 10:37 AM RE: I have a way to measure battery power - webmasterpdx - 07-01-2017, 06:37 PM RE: I have a way to measure battery power - webmasterpdx - 07-01-2017, 07:13 PM

User(s) browsing this thread: 1 Guest(s)