Battery Checker
Displays the number of charge cycles and battery life of the iPhone from the analysis data.
What this shortcut does
ver5.x ⚠️If you are using iOS18.4, please use ver5.3 or later. Added information on internal resistance. Moved another page of description to the bottom of the page to collapse. Rearrange items. Moved some items to the explanation page. Some processing improvements. This recipe will continue to work on iOS17. ver4.x A page with contensts, including brief descriptions of each type, based on the results displayed in ver 3.9.3 has been added. Some changes have also been made, such as changing the base value for health from Design Capacity to MaximumFCC. ver 3.x If you prefer the previous design, please continue to use ver2.x or download ver2.x from the version history. *The "deflator" is the value obtained by Nominal*100/Raw. Normally it is close to 100, but the lower the temperature, the larger this value tends to be. [Options (top dictionary action)] ・English: Change the language of menus, etc. True: English (default) False: Japanese ・RichText: Display results in rich text True: display in rich text (default) False: Display in simple text ・ManualSelect: Select model or model. True: Manual selection False: Automatic selection (default) If the selected Analysis data is for Apple Watch, this value is true. If the internal name of the model is not supported, this value will be true. ・UpdateCheck: A simple update checker. True: Check out the latest version (default) False: Continue unchecked ・Additional Details(ver4.0.1~): Following the pane page, an introductory section with a brief description will be added. True: Show False: Main page only (default) The design capacity information may not be correct for some models because it varies from source to source. I'll post my iPhone 8 record for your reference. As you can see in the image, raw max is quite different compared to max capacity. The deflator (nominal/raw values) shows this clearly. In the summer months, the value is around 100%, but as the winter season progresses, the value becomes larger and larger, and the range of fluctuation becomes more and more erratic as the year progresses (I live in Japan, so January is winter). As you can see, battery degradation can be seasonal and transient. Depending on the location, it can be expected to deteriorate by a few percent just because it is cold. 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 )