Scan med din iPhone for at installere
Hem otomatik hemde manuel olarak çalışır
Nyheder
Version 2.2
Gün dönümüne göre otomatik çalışır
Hvad den gør
59 handlinger-
Dictionary
-
Text
-
Set Name
-
Get Contacts from Input
-
Choose from List
-
If
-
Get Current Weather
-
Get Details of Weather
-
Get Details of Weather
-
Date
-
If
-
Set Appearance
-
If
-
Set Appearance
-
Run ShortcutExLow Power Mode
-
If
-
Set Appearance
-
Run ShortcutExLow Power Mode
-
If
-
Text
-
Set Name
-
Get Contacts from Input
-
Choose from List
-
If
-
Repeat
-
Dictionary
-
Set VariableLocalData
-
Get IP Address
-
Count
-
If
-
Show Alert
-
If
-
URLhttps://routinehub.co/api/v1/shortcuts/…/versions/latest
-
Get Contents of URL…
-
If
-
Dictionary
-
Text
-
URLdata:text/html,…
-
Get Contents of Web Page
-
If
-
Show AlertExLow Power Mode is up to date
-
If
-
If
-
Text
-
If
-
Text
-
Choose from Menu… … Güncellemeler devam edecektir, takipte kalın 👀
-
Choose from Menuİndir result (Version)
-
URLhttps://routinehub.co/download/…
-
Open URLs
-
Stop and Output
-
Choose from MenuGeç
-
If
-
Show Alert
-
If
-
URLhttps://shareshortcuts.com/u/majorata/
-
Open URLs
-
If
-
Run ShortcutExLow Power Mode
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#include 'actions/settings'
#include 'actions/location'
#include 'actions/contacts'
#define color darkorange
#define glyph lightbulb
const Text = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Otomatik;;;;\nORG:Gün dönümüne göre çalışır;\nPHOTO;ENCODING=b: {['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Manuel Aç/Kapat;;;;\nORG:İsteğe göre aç kapat yapılır;\nPHOTO;ENCODING=b: {['Icons.off']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Güncellemeler;;;;\nORG:Güncelleme ve kestirmeler;\nPHOTO;ENCODING=b: {['Icons.settings']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Çıkış;;;;\nORG:Kestirmeden çık;\nPHOTO;ENCODING=b: {['Icons.']}\nEND:VCARD"
const RenamedItem = setName(Text, "Menu.vcf")
const Contacts = getContacts(RenamedItem)
const ChosenItem = chooseFromList(Contacts)
if ChosenItem == "Otomatik" {
const HavaDurumu = getCurrentWeather()
const GnDoumuSaati = getWeatherDetail(HavaDurumu, "Sunrise Time")
const GnBatmSaati = getWeatherDetail(HavaDurumu, "Sunset Time")
const Date = currentDate()
if Date <> 22 {
darkMode()
} else {
darkMode()
}
runSelf(IfResult)
}
if ChosenItem == "Manuel Aç/Kapat" {
darkMode()
runSelf(IfResult)
}
if ChosenItem == "Güncellemeler" {
const Text1 = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Güncelle;;;;\nORG:güncellemeleri kontrol et;\nPHOTO;ENCODING=b: {['Icons.update']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Kestirmelerim;;;;\nORG:Diğer kestirmeler için ziyaret edin;\nPHOTO;ENCODING=b: {['Icons.feedback']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Geri git;;;;\nORG:Ana menüye geri dön;\nPHOTO;ENCODING=b: {['Icons.back']}\nEND:VCARD"
const RenamedItem1 = setName(Text1, "Settings.vcf")
const Contacts1 = getContacts(RenamedItem1)
const ChosenItem1 = chooseFromList(Contacts1)
if ChosenItem1 == "Güncelle" {
repeat _ for nil {
@LocalData = {
"ID": "13983",
"Version": "1.0"
}
const CurrentIPAddress = getExternalIP()
const Count = count(CurrentIPAddress)
if Count == 0 {
confirm("Could not check for updates, there is no internet connection.")
} else {
url("https://routinehub.co/api/v1/shortcuts/{@LocalData['ID']}/versions/latest")
const result = downloadURL()
if result contains "success" {
const CompareVersionsData = {
"current": "{@LocalData['Version']}",
"new": "{result['Version']}"
}
const CompareVersionsHTML = "<html><head></head><body><script>\n// Embed-a-Engine 1.0\nfunction cmp (a, b) {\nlet pa = a.split('.');\nlet pb = b.split('.');\nfor (let i = 0; i < Math.max(pa.length, pb.length); i++) {\nlet na = Number(pa[i]);\nlet nb = Number(pb[i]);\nif (isNaN(na)) na = 0;\nif (isNaN(nb)) nb = 0;\nif (na > nb) return \\"RollbackAvailable\\";\nif (nb > na) return \\"UpdateAvailable\\";\n}\nreturn \\"NoChanges\\";\n};\nlet data = {CompareVersionsData};\ndocument.write(cmp(data.current, data.new));\n</script></body></html>"
url("data:text/html,{CompareVersionsHTML}")
const ContentsOfWebPage = getWebpageContents()
if ContentsOfWebPage == "NoChanges" {
alert("", "ExLow Power Mode is up to date")
} else {
if ContentsOfWebPage == "RollbackAvailable" {
} else {
}
menu "{}\n\n{result['Notes']}\n\nGüncellemeler devam edecektir, takipte kalın 👀 " {
item "İndir {result['Version']}":
const URL = url("https://routinehub.co/download/{result['id']}")
openURL(URL)
output(URL)
item :
}
}
} else {
alert("Could not check for updates because of a RoutineHub error:\n\n{result['message']}", "")
}
}
}
}
if ChosenItem1 == "Kestirmelerim" {
const URL1 = url("https://shareshortcuts.com/u/majorata/")
openURL(URL1)
}
if ChosenItem1 == "Geri git" {
runSelf(IfResult)
}
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra majorata
Du vil måske også kunne lide
Annonce