Vista previa
This shortcut uses all the techniques I’m aware of to reduce battery usage as much as possible in a customizable way.
There are a couple iOS settings configurations you may optionally make before using this shortcut.
1. For the optional experimental feature named, Enable Green Color Filter, configure your iOS color filter settings so that, when turned on, only green pixels in the image of the crayons can be seen. Your configuration should look like the included screenshot. The reason for this is that green OLED pixels use less energy than red and blue. I’m not sure yet however if this makes a measurable difference. I plan to do some well controlled testing of this soon. (Settings > Accessibility > Display & Text Size > Color Filters)
2. Create a new Focus mode that uses solid black wallpapers. This reduces the number of OLED pixels that are turned on.
Each time you run this shortcut, you can select which iOS features you want to turn off.
- WiFi
- Cellular Data
- Bluetooth
- Airdrop
- Only use LTE
- Enable Focus Mode
- Reduce backlight
- Dark Mode
- Reduce Transparency
- **Disable Auto Brightness!**
- Disable True Tone
- Disable Night Shift
- Reduce Transparency
- Enable White Point
- Reduce Motion
- Low Power Mode
- Enable Green Color Filter (Experimental)
You can also run this shortcut inside Automations. Like the included screenshot, just set the action of the automation to run a Shortcut and choose this one. For the input passed to the shortcut, you can pass either “Hands Free Enable” or “Off” (without quotes). Or, if you want to run this shortcut easily with Siri/one button enable, just say, “Siri, Extend Battery”. Then at the first prompt, you can say/tap “Hands Free Enable”. This will determine if your Wi-Fi is in use and, if not, disable it. The other battery saving techniques will then also be turned on. This option will not disable bluetooth however, in case you are driving and using CarPlay.
If you know of any other techniques to reduce battery usage, put them in the comments! Or if you encounter any bugs or have any suggestions at all, let me know too!
I originally published this shortcut on the iOS Shortcuty app. This shortcut contains a short section at the beginning that uses the Shortcuty API to check for updates. You can safely delete these actions in the shortcut if you don’t want them.
Novedades
UTC - Fixed problem where Siri asks for a specified cellular plan when using Hands Free Enable
Qué hace
109 acciones-
CommentFirst, check if this shortcut was run from an Automation that passed an action word input to it.
-
Text
-
Set VariableAction
-
If
-
Set VariableAction
-
CommentUpdate checking actions. Note that update checks will only run if the device is connected to WiFi and if the shortcut was not run from an Automation.
-
Text
-
Set VariableVersion
-
Get Network Details
-
If
-
Get Contents of URLhttps://shortcuty.app/api/shortcuts/d47dfe35-9e99-40c4-81d7-ac5a24d04d51/version
-
If
-
CommentIf version published on Shortcuty is greater than the version on your local device, start update actions.
-
Choose from MenuAn update for Extend Battery is available! Do you want to open the download/release notes page now? [ … -> … ]
-
Choose from MenuYes
-
CommentOpen Shortcuty page of the new updated shortcut.
-
Open URLs
-
Stop This Shortcut
-
Choose from MenuNo, just run Extend Battery
-
Choose from MenuRemind me in 1 hour and continue
-
Date
-
Adjust Date
-
Add New Reminder
-
Show Alert
-
CommentThis Shortcut includes a feature that lets you choose whether or not to enable a Focus mode each time it is run. Please type the name of your preferred Focus mode to associate with this shortcut. Note that capitalization and spelling must match exac…
-
Text
-
CommentStart of this shortcut’s main actions.
-
Text
-
Text
-
Text
-
If
-
Choose from MenuTurn On or Off?
-
Choose from MenuHands Free Enable
-
Set VariableAction
-
Choose from MenuOn
-
Set VariableAction
-
Choose from MenuOff
-
Set VariableAction
-
If
-
If
-
CommentEnable Extend Battery with an Automation, with one tap, or if the shortcut was run with Siri, with one voice response.
-
Get Network Details
-
If
-
Set Wi-Fi
-
Set AirDrop
-
Set Low Power Mode
-
Set Appearance
-
Set True Tone
-
Set Night Shift
-
Toggle Reduce Transparencycom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Reduce Motioncom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Accessibility Auto Brightness Enabled Entity Updatable Entitycom.apple.AccessibilityUIServer
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Brightness
-
Set Focus
-
If
-
If
-
CommentList of available options to enable/disable.
-
List
-
Choose from List
-
If
-
Set Wi-Fi
-
If
-
Set Bluetooth
-
If
-
Set AirDrop
-
If
-
Set Focus
-
If
-
Set Low Power Mode
-
If
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
If
-
Set Appearance
-
Set True Tone
-
Set Night Shift
-
Accessibility Auto Brightness Enabled Entity Updatable Entitycom.apple.AccessibilityUIServer
-
Toggle Reduce Transparencycom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Brightness
-
If
-
Toggle Reduce Motioncom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
If
-
Set Cellular Data
-
If
-
If
-
Set Voice Data Modecom.apple.ShortcutsActions
-
If
-
If
-
CommentThese are the actions that return all settings back to normal when Extend Battery is turned off.
-
Set Low Power Mode
-
Set Focus
-
Set Wi-Fi
-
Set Bluetooth
-
Set AirDrop
-
Toggle Color Filterscom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set True Tone
-
Toggle Reduce Transparencycom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle Reduce Motioncom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Toggle White Pointcom.apple.AccessibilityUtilities.AXSettingsShortcuts
-
Set Brightness
-
Set Cellular Data
-
Set Voice Data Modecom.apple.ShortcutsActions
-
Accessibility Auto Brightness Enabled Entity Updatable Entitycom.apple.AccessibilityUIServer
-
If
-
Show NotificationVariable "Action" has an unrecognized value
-
If
-
Show NotificationVariable "Action" does not have any value
-
Stop This Shortcut
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#define mac false
#include 'actions/web'
#include 'actions/network'
#define color yellow
#define glyph lightningBolt
// First, check if this shortcut was run from an Automation that passed an action word input to it.
@Action = "Null"
if ShortcutInput {
@Action = ShortcutInput
}
// Update checking actions. Note that update checks will only run if the device is connected to WiFi and if the shortcut was not run from an Automation.
@Version = "1.4"
getWifiDetail("")
if && @Action == "Null" {
const ContentsOfURL = downloadURL("https://shortcuty.app/api/shortcuts/d47dfe35-9e99-40c4-81d7-ac5a24d04d51/version")
if ContentsOfURL > @Version {
// If version published on Shortcuty is greater than the version on your local device, start update actions.
menu "An update for Extend Battery is available! Do you want to open the download/release notes page now?\n[ {@Version} -> {ContentsOfURL} ]" {
item "Yes":
// Open Shortcuty page of the new updated shortcut.
openURL("https://browse.shortcuty.app/shortcut/d47dfe35-9e99-40c4-81d7-ac5a24d04d51")
stop()
item "No, just run Extend Battery":
item "Remind me in 1 hour and continue":
currentDate()
adjustDate(, "")
rawAction("is.workflow.actions.addnewreminder", {
"WFAlertCustomTime": "{}",
"WFAlertEnabled": "Alert",
"WFCalendarDescriptor": "Ask",
"WFCalendarItemTitle": "This is your reminder to update Extend Battery. Use the attached link to do so!",
"WFURL": "https://browse.shortcuty.app/shortcut/d47dfe35-9e99-40c4-81d7-ac5a24d04d51"
})
confirm("You will receive a reminder 1 hour from now! The rest of Extend Battery will now continue.")
}
}
}
// This Shortcut includes a feature that lets you choose whether or not to enable a Focus mode each time it is run. Please type the name of your preferred Focus mode to associate with this shortcut. Note that capitalization and spelling must match exactly.
const Text = "Do Not Disturb"
// Start of this shortcut’s main actions.
if @Action == "Null" {
menu "Turn On or Off?" {
item HandsFreeEnable:
@Action = "Off"
item On:
@Action = On
item Off:
@Action = Off
}
}
if @Action {
if @Action == HandsFreeEnable {
// Enable Extend Battery with an Automation, with one tap, or if the shortcut was run with Siri, with one voice response.
const NetworkDetails = getWifiDetail("")
if !NetworkDetails {
setWifi(0)
}
setAirdropReceiving("Off")
setLowPowerMode(false)
darkMode()
setTrueTone(0)
setNightShift(0)
setReduceTransparency(false)
setReduceMotion(false)
rawAction("com.apple.AccessibilityUIServer.AccessibilityAutoBrightnessEnabledEntity-UpdatableEntity", {
"WFTableTemplate": "",
"value": ""
})
toggleWhitePoint()
setBrightness(1)
toggleFocusMode()
} else {
if @Action == On {
// List of available options to enable/disable.
const List = list("Disable WiFi", "Disable Cellular Data\n(Calls and SMS still work)", "Disable Bluetooth", "Disable AirDrop", "Reduce Backlight", "Reduce Motion", "Only Use LTE", "Enable Low Power Mode", "Enable Focus Mode", "Enable Green Color Filter\n(Experimental)")
const SelectedItem = chooseFromList(List, "Choose Your Configuration", true, true)
if SelectedItem contains "Disable WiFi" {
setWifi(0)
}
if SelectedItem contains "Disable Bluetooth" {
setBluetooth(0)
}
if SelectedItem contains "Disable AirDrop" {
setAirdropReceiving("Off")
}
if SelectedItem contains "Enable Focus Mode" {
setFocusMode(, "Turned Off")
}
if SelectedItem contains "Enable Low Power Mode" {
setLowPowerMode(false)
}
if SelectedItem contains "Enable Green Color Filter\n(Experimental)" {
toggleColorFilters()
}
if SelectedItem contains "Reduce Backlight" {
darkMode()
setTrueTone(0)
setNightShift(0)
rawAction("com.apple.AccessibilityUIServer.AccessibilityAutoBrightnessEnabledEntity-UpdatableEntity", {
"WFTableTemplate": "",
"value": ""
})
setReduceTransparency(false)
setWhitePoint(1)
setBrightness(0.75)
}
if SelectedItem contains "Reduce Motion" {
setReduceMotion(false)
}
if SelectedItem contains "Disable Cellular Data\n(Calls and SMS still work)" {
setCellularData(0)
} else {
if SelectedItem contains "Only Use LTE" {
rawAction("com.apple.ShortcutsActions.SetVoiceDataModeAction", {
"AppIntentDescriptor": "",
"ratMode": "",
"sim": ""
})
}
}
} else {
if @Action == Off {
// These are the actions that return all settings back to normal when Extend Battery is turned off.
setLowPowerMode(0)
toggleFocusMode()
setWifi(false)
setBluetooth(false)
setAirdropReceiving("Contacts Only")
toggleColorFilters()
setTrueTone(1)
toggleReduceTransparency()
setReduceMotion(0)
toggleWhitePoint()
setBrightness(0.4212121069431305)
setCellularData(false)
rawAction("com.apple.ShortcutsActions.SetVoiceDataModeAction", {
"AppIntentDescriptor": "",
"ratMode": "",
"sim": ""
})
rawAction("com.apple.AccessibilityUIServer.AccessibilityAutoBrightnessEnabledEntity-UpdatableEntity", {
"WFTableTemplate": "",
"value": ""
})
} else {
showNotification("Variable \"Action\" has an unrecognized value", "Extend Battery Error", @Action)
}
}
}
} else {
showNotification("Variable \"Action\" does not have any value", "Extend Battery Error", @Action)
}
stop()
Valoraciones y reseñas
Escribe una reseñaAún no hay reseñas. ¡Sé el primero en compartir tu opinión!