Battery Stats
Accepts
App Store Apps, Dates, Files, Rich Text and Text
SCRIPTING
If
Shortcut Input
does not have any value
SCRIPTING
Show
No "Analytics-" file found. Go to Settings > Privacy > Analytics & Improvements > Analytics Data.
SCRIPTING
Exit shortcut with
Result
SCRIPTING
Otherwise
SCRIPTING
If
Shortcut Input
does not contain
Analytics-
SCRIPTING
Show
No "Analytics-" file found. Go to Settings > Privacy > Analytics & Improvements > Analytics Data.
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
Set name of
Shortcut Input
to
Shortcut Input
.txt

Renamed Item
DOCUMENTS
Get text from
Renamed Item

Text
TEXT
Match
(?<=\"last_value_MaximumFCC\"\:).*?.\d+
in
Text

Matches
TEXT

Matches
SCRIPTING
Get
First Item
from
Matches

Item from List
VARIABLES
Set variable
MaximumFCC
to
Item from List
DOCUMENTS
Get text from
Renamed Item

Text
TEXT
Match
(?<=\"last_value_NominalChargeCapacity\"\:).*?.\d+
in
Text

Matches
TEXT

Matches
SCRIPTING
Get
First Item
from
Matches

Item from List
VARIABLES
Set variable
NominalChargeCapacity
to
Item from List
DOCUMENTS
Get text from
Renamed Item

Text
TEXT
Match
(?<=\"last_value_CycleCount\"\:).*?.\d+
in
Text

Matches
TEXT

Matches
SCRIPTING
Get
First Item
from
Matches

Item from List
VARIABLES
Set variable
CycleCount
to
Item from List
MATHS
NominalChargeCapacity
÷
MaximumFCC
Options Under Construction

Calculation Result
MATHS
Calculation Result
×
100
Options Under Construction

Calculation Result
MATHS
Round
Calculation Result
to
Hundredths

Rounded Number
VARIABLES
Set variable
RealCapacity
to
Rounded Number
SCRIPTING
Get the
Device Model

Device Name

Text
SCRIPTING
Show
Text
Showcuts