ShareShortcuts

KOYU MOD AUTO

Hem otomatik hemde manuel olarak çalışır

majorata
Dupliquer « KOYU MOD AUTO »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que majorata soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
35K
Enregistré
0
Actions
59
Catégorie
Utilities
Version
2.2
Langue
EN

Hem otomatik hemde manuel olarak çalışır

Nouveautés

Version 2.2

Gün dönümüne göre otomatik çalışır

Historique des versions
2.2 20 janv. 2023

Gün dönümüne göre otomatik çalışır

2.1 20 janv. 2023

Kendini güncelleme eklendi.. otomatik ve manuel çalışır

1.0 20 janv. 2023

First release

Ce qu’il fait

59 actions
  1. Dictionary
  2. Text
  3. Set Name
  4. Get Contacts from Input
  5. Choose from List
  6. If
  7. Get Current Weather
  8. Get Details of Weather
  9. Get Details of Weather
  10. Date
  11. If
  12. Set Appearance
  13. If
  14. Set Appearance
  15. Run Shortcut
    ExLow Power Mode
  16. If
  17. Set Appearance
  18. Run Shortcut
    ExLow Power Mode
  19. If
  20. Text
  21. Set Name
  22. Get Contacts from Input
  23. Choose from List
  24. If
  25. Repeat
  26. Dictionary
  27. Set Variable
    LocalData
  28. Get IP Address
  29. Count
  30. If
  31. Show Alert
  32. If
  33. URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  34. Get Contents of URL
    …
  35. If
  36. Dictionary
  37. Text
  38. URL
    data:text/html,…
  39. Get Contents of Web Page
  40. If
  41. Show Alert
    ExLow Power Mode is up to date
  42. If
  43. If
  44. Text
  45. If
  46. Text
  47. Choose from Menu
    … … Güncellemeler devam edecektir, takipte kalın 👀
  48. Choose from Menu
    İndir result (Version)
  49. URL
    https://routinehub.co/download/…
  50. Open URLs
  51. Stop and Output
  52. Choose from Menu
    Geç
  53. If
  54. Show Alert
  55. If
  56. URL
    https://shareshortcuts.com/u/majorata/
  57. Open URLs
  58. If
  59. Run Shortcut
    ExLow Power Mode

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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)
	}
}
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 majorata

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité