0% found this document useful (0 votes)
189 views1 page

RoutineHub - Battery Checker

This document summarizes a shortcut called "Battery Checker" that displays information about an iPhone's battery life from analysis data, including the number of charge cycles and battery health percentage. It explains that the shortcut was updated for compatibility with iOS 16, as the location of the analysis data changed. It provides version history notes, describes some issues users reported like timeout errors, and includes discussions in the comments about resolving those issues. The author responds to comments seeking more information to troubleshoot errors.

Uploaded by

theluisgamer19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
189 views1 page

RoutineHub - Battery Checker

This document summarizes a shortcut called "Battery Checker" that displays information about an iPhone's battery life from analysis data, including the number of charge cycles and battery health percentage. It explains that the shortcut was updated for compatibility with iOS 16, as the location of the analysis data changed. It provides version history notes, describes some issues users reported like timeout errors, and includes discussions in the comments about resolving those issues. The author responds to comments seeking more information to troubleshoot errors.

Uploaded by

theluisgamer19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ROUTINEHUB

Sign up Log in

Battery Checker

Displays the number of charge cycles and battery life of


the iPhone from the analysis data.

Get Shortcut

♥ 21

Log in or sign up to heart

Information

Author: @thetheorier

Version: 3.3

iOS: 16

Updated: 09/19/23

Downloads: 39298

Categories:

# Utilities

Scan using your iPhone's camera to download

Description

This recipe will continue to work on iOS17.

Japanese:https://routinehub.co/shortcut/13938/

ver 3.0

If you prefer the previous design, please continue to use


ver2.x or download ver2.x from the version history.

ver2.1~
The specification has been changed to select a model and
calculate Battery Health based on the selected model.

Simple mode is used to simplify or omit the model selection.

By changing the value of the "simple" key in the first


"dictionary" action to "true", the specification is changed so
that you can only select from the underlying "dictionary".

By limiting the model (iPhone, iPad) to one type, you can


omit the trouble of selecting from the list.

ver2.0
It appears that iOS16, WatchOS9, and iPadOS16 have
changed the location of the analysis data to Analytics-20xx~
instead of log-aggregated-~.

And there seems to be no data for battery_design_capacity in


Analytics-20xx~.

There are days when the corresponding data is not


recorded, although the conditions are unknown.

Therefore, the recipe contents have also changed.

Please use ver2.0 or later if you use the above OS.

The processing limit for shortcut text, etc. seems to be


approximately 2.6 MB.
In the rare case that the parsed data, which is usually a
few hundred KB, exceeds this limit, the direct execution
will time out and you will have to paste it into a memo
application and delete the first half of the second and
subsequent lines and retry.

This seems to be happening with recipes other than this


one, but currently at least the following problems may
occur, the cause of which is unknown.

The error message "A problem occurred while


executing the shortcut" is displayed and the result is not
displayed.
The error message "It takes too long" is displayed and
the results are not displayed (adding a "Stop shortcut"
action at the end may solve the problem?) .
Errors in "text match" or "formula".

It seems that battery_design_capacity is not available for


Analytics-20xx~.

Therefore, this value must be entered manually.

Before using the recipe, open the edit screen and change the
key "design_capacity" in the "dictionary" action at the top to
the one for the desired device.

The following sites may be of help.

[iPhone]https://www.sir-apfelot.de/en/apple-iphone-battery-
mah-all-models-19102/
[iPad]https://www.sir-apfelot.de/en/battery-capacity-ipad-
mah-19060/
[Apple Watch]https://www.sir-apfelot.de/en/apple-watch-
battery-mah-all-models-19094/

Open the Settings app, go to "Privacy" > "Analysis &


Improvement" > "Analysis Data" and tap the item "log-
aggregated-xxxx-xx-~".

Tap the "Share" button in the top right corner of the screen,
you will see the following items

version 1.2.x~

①【CycleCount】Number of charging cycles


②【design_capacity】original battery capacity up to
③【nominal_charge_capcity】Current nominal battery
capacity
④【raw_max_capacity】Current maximum battery capacity

[Battery Health]
【nominal-battery.health】
Battery life using nominal_charge_capcity ( (③÷②)×100 )
【raw-battery.health】
Battery life using raw_max_capcity( (④÷②)×100 )
【battery.MaximumCapacityPercent】
Maximum battery capacity (in Settings app)

version 1.1 or earlier

①【CycleCount】Number of charging cycles


②【design_capacity】original battery capacity up to
③【raw_max_capacity】Current maximum battery capacity
④【battery.MaximumCapacityPercent】Maximum battery
capacity (in Settings app)
【battery.health】
battery life calculated using the above two ( (③÷②)×100 )

Latest Release Notes

3.3 - Sept. 19, 2023, 1:28 a.m.

Added information on battery capacity for the new Apple


Watch.

Version history

Feedback

Log in or sign up to leave feedback.

@iameagle
getting an error - could not evaluate keypath in' ' no value was
found for dictionary 'com' on ios 15.0.1
Reply · 2 years ago
Comment

Reply
@thetheorier Author
I can't confirm this as it works fine on my iPhone 8 with iOS
15.0.1. Please use the "Show Results" action to see which
action has the problem.
Reply · 2 years ago
Comment

Reply
@Gismo69
Tried it with the new analytics log and it keeps saying
operation taking too long to complete and please try again.
Reply · 1 year ago
Comment

Reply
@thetheorier Author
We are sorry, but we are not able to reproduce the problem
here… However, we have confirmed that the message is
displayed after iOS16 when some conditions are met, such as
displaying a large number of characters. This may have
something to do with it.
Reply · 1 year ago
Comment

Reply
@Gismo69
Yes, it happens with ios16. It also says could not run match
text. Tried it with my iPhone 11 and a iPhone 13.
Reply · 1 year ago
Comment

Reply
@thetheorier Author
The "takes too long" problem may be solved by adding a
"stop shortcut" action at the end. We have not been able to
reproduce the problem with text matching, but we have
observed that the evaluation of formulas sometimes fails. I
have run it several times and it works in some cases, but I am
at a loss to find the cause.
Reply · 1 year ago
Comment

Reply
@sensible
Love this shortcut and thanks so much for making it! Just
wanted to add to this thread - Using v3 of the shortcut, issue
persists on previous versions too on devices running iOS 16 -
Shortcut works on my 11-inch iPad Pro (1st gen) running iOS
16.4 - Also receiving the “could not run match test” error
when using my iPhone, with both iPhone (iOS 16.4) and
Apple Watch (wOS 9.4) analytic files - Issue persists across
all log files starting with Analytics-20xx Hope this helps
Reply · 6 months, 3 weeks ago
Comment

Reply
@thetheorier Author
Thanks for using it! I have tried many times in the last few
days on iPhone 8 (iOS 16.4 and 16.4.1) and iPad Air3 (iPad
OS 16.4 and 16.4.1), but I am at a loss to reproduce the error
due to text matching .... If you know which action caused the
error, it may help to solve the problem.
Reply · 6 months, 3 weeks ago
Comment

Reply
@sensible
Would it help if it sent you a screen recording of what I’m
experiencing? If yes, let me know where to send it
Reply · 6 months, 3 weeks ago
Comment

Reply
@thetheorier Author
Then send me a DM on Twitter to let me know you're doing
so. My account is @the_theorier. I want to see the error
message, and if the error message has a "Show" option, I
want to see what happens when you tap that option.
Reply · 6 months, 3 weeks ago
Comment

Reply
@gsk48
Does not work. Shows error " it appears that the number of
'cycle count' and other informations is not written into the
target analysis data. [selected]
Reply · 9 months, 2 weeks ago
Comment

Reply
@thetheorier Author
The message is correct. If you actually look at the contents,
information such as the number of cycles may not be present.
Reply · 9 months, 2 weeks ago
Comment

Reply
@kingaz123
It does not work. When I ran this shortcut, it said "It appears
that the target analysis data does not include the number of
"Cycle Count" and other information.". I am using iPhone XS
Max (iOS 16.3, the newest iOS that I have just updated
today)
Reply · 9 months, 1 week ago
Comment

Reply
@thetheorier Author
Even if analysis data is recorded, information such as the
number of cycles may not be written. This is particularly
noticeable on the Apple Watch, but has also been observed on
the iPhone series.
Reply · 9 months, 1 week ago
Comment

Reply
@naymyonaing.mlm
Can’t connect to the Gallery. What is the problem?
Reply · 2 months, 4 weeks ago
Comment

Reply
@thetheorier Author
We have confirmed it here as well. Apple's Systemu status
says there is no problem, but others are in the same situation
and the cause is unknown...
Reply · 2 months, 4 weeks ago
Comment

Reply
@marko988
Hi, it doesn’t work on ios17, maybe the analytics files are a
bit different on the new iOS and the shortcut can’t get the
data. Will you update the shortcut for iOS 17?
Reply · 2 months ago
Comment

Reply
@thetheorier Author
What is the file name of the analysis data? Is there one that
starts with "Analytics..." but gives an error, or is there no such
file, or neither? (Even if the file name is the same as before,
the structure of the contents may be different...?)
Reply · 2 months ago
Comment

Reply

Copyright © 2023 Skyground Media Inc. All rights reserved.

We are not affiliated, associated, authorized, endorsed by, or


in any way officially connected with Apple Inc., or any of its
subsidiaries or its affiliates. The official Apple website can be
found at https://www.apple.com/. The name “Apple” as well
as related names, marks, emblems and images are registered
trademarks of Apple Inc.

The use in this website and/or in related promotional print or


video material of trademarked names and images is strictly
for editorial and descriptive purposes, and no commercial
claim to their use, or suggestion of sponsorship or
endorsement, is made by Skyground Media Inc. Those words
or terms that the authors and publisher have reason to believe
are trademarks are designated as such by the use of initial
capitalization, where appropriate. However no attempt has
been made to identify or designate all words or terms to
which trademark or other proprietary rights may exist.
Nothing contained herein is intended to express a judgment
on, or affect the validity of legal status of, any word or term
as a trademark, service mark, or other proprietary mark.

Home

Sign up

Log in

Blog

Changelog

Status page

RSS Feed

FAQ

Links

Discord (Chat)

Membership

Reddit

Twitter

User Feedback

Legal

Terms of Service

Privacy Policy

Cookie Policy

Copyright © 2023 Skyground Media Inc. All rights reserved.

We are not affiliated, associated, authorized, endorsed by, or


in any way officially connected with Apple Inc., or any of its
subsidiaries or its affiliates. The official Apple website can be
found at https://www.apple.com/. The name “Apple” as well
as related names, marks, emblems and images are registered
trademarks of Apple Inc.

The use in this website and/or in related promotional print or


video material of trademarked names and images is strictly
for editorial and descriptive purposes, and no commercial
claim to their use, or suggestion of sponsorship or
endorsement, is made by Skyground Media Inc. Those words
or terms that the authors and publisher have reason to believe
are trademarks are designated as such by the use of initial
capitalization, where appropriate. However no attempt has
been made to identify or designate all words or terms to
which trademark or other proprietary rights may exist.
Nothing contained herein is intended to express a judgment
on, or affect the validity of legal status of, any word or term
as a trademark, service mark, or other proprietary mark.

You might also like