ShareShortcuts

KOYU MOD AUTO

Hem otomatik hemde manuel olarak çalışır

majorata
Fork “KOYU MOD AUTO”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so majorata gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
35K
Saved
0
Actions
59
Category
Utilities
Version
2.2
Language
EN

Hem otomatik hemde manuel olarak çalışır

What's New

Version 2.2

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

Version History
2.2 Jan 20, 2023

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

2.1 Jan 20, 2023

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

1.0 Jan 20, 2023

First release

What it does

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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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)
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by majorata

See All

You Might Also Like

See All
Advertisement