Scanne avec ton iPhone pour installer
Battery
Nouveautés
Version 1.0
First release
Ce qu’il fait
63 actions-
CommentBattery Mode 1.0 2018-10-10 Created by ♥️⚡️ -@ashangt
-
Get Battery Level
-
If
-
Text
-
Set VariableRec
-
If
-
If
-
Text
-
Set VariableRec
-
If
-
Text
-
Set VariableRec
-
Choose from MenuBattery Level: …% Recommended Mode: …
-
Choose from MenuNormal
-
Set Low Power Mode
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Choose from MenuNormal Wifi Only
-
Set Low Power Mode
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Choose from MenuLow with Wifi
-
Set Low Power Mode
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Choose from MenuLow with Cellular
-
Set Low Power Mode
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Choose from MenuUltra Low
-
Set Low Power Mode
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Play/Pause
-
Choose from MenuCharging
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Choose from MenuCharging & DND
-
Show NotificationBattery Mode will enable Do Not Disturb until you manually turn it off.
-
Set Brightness
-
Set Airplane Mode
-
Set Wi-Fi
-
Set Cellular Data
-
Set Bluetooth
-
Set Focus
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/music'
#define mac false
#include 'actions/device'
#define color green
#define glyph battery
/*
Battery Mode 1.0
2018-10-10 Created by ♥️⚡️
-@ashangt
*/
const BatteryLevel = getBatteryLevel()
if BatteryLevel > 49 {
@Rec = "Normal"
} else {
if BatteryLevel < 18 {
@Rec = "Ultra Low"
} else {
@Rec = "Low"
}
}
menu "Battery Level: {BatteryLevel}% Recommended Mode: {@Rec}" {
item "Normal":
setLowPowerMode(false)
setBrightness(0.9154589)
setAirplaneMode(false)
setWifi(false)
setCellularData(false)
setBluetooth(false)
item "Normal Wifi Only":
setLowPowerMode(false)
setBrightness(0.90821254)
setAirplaneMode(false)
setWifi(false)
setCellularData(false)
setBluetooth(false)
item "Low with Wifi":
setLowPowerMode(false)
setBrightness(0.38164252)
setAirplaneMode(false)
setWifi(true)
setCellularData(false)
setBluetooth(false)
item "Low with Cellular":
setLowPowerMode(false)
setBrightness(0.38164252)
setAirplaneMode(false)
setWifi(false)
setCellularData(true)
setBluetooth(false)
item "Ultra Low":
setLowPowerMode(false)
setBrightness(0)
setAirplaneMode(false)
setWifi(false)
setCellularData(false)
setBluetooth(false)
togglePlayPause()
item "Charging":
setBrightness(0)
setAirplaneMode(false)
setWifi(false)
setCellularData(false)
setBluetooth(false)
item "Charging & DND":
showNotification("Battery Mode will enable Do Not Disturb until you manually turn it off.", "Battery Mode", false, IfResult)
setBrightness(0)
setAirplaneMode(false)
setWifi(true)
setCellularData(false)
setBluetooth(false)
setFocusMode()
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de awesomeusername
Ça pourrait aussi te plaire
Publicité