Scan med din iPhone for at installere
Forhåndsvisning
Get the charts you need.
getCharts is a simple yet powerful Shortcut designed to make a flight simmer life easier by getting the latest airport charts they need in a few simple clicks.
Easy to use.
getCharts easy to use menu makes for a very quick way to get airport charts. Gone are the days of frantically searching on Google for outdated airport charts.
Nyheder
Version 2.371
- Fixed a bug where the shortcut would throw an error when it tries to restart (again)
Hvad den gør
121 handlinger-
CommentgetCharts by TiltedLandingGear Easy way to get airport charts. Changelog V2.3.7.1 - Fixed a bug where the shortcut would throw an error when it tries to restart (again) V2.3.7 - Improved iPad compatibility by playing a sound instead of vibrating whe…
-
Text
-
Add to Variable
-
Text
-
Add to Variable
-
Get Device Details
-
Add to Variable
-
Text
-
Add to Variable
-
Get Contents of URL…
-
Get Dictionary Value
-
Add to Variable
-
If
-
Get Dictionary Value
-
Add to Variable
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Text
-
Show AlertUpdate available
-
If
-
Get File
-
If
-
Create Folder
-
Get File
-
Repeat with Each
-
Get Name
-
Text
-
Add to Variable
-
Repeat with Each
-
Split Text
-
Get Item from List
-
Get Item from List
-
Set Dictionary Value
-
Set Variabledict
-
Choose from MenugetCharts Menu
-
Choose from MenuDownload
-
Ask for InputAirport ICAO Code
-
Change Case
-
Add to Variable
-
If
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Show AlertChart Already Downloaded
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Show NotificationDownloading chart...
-
Text
-
Get Contents of URL…
-
Save File
-
Get Name
-
If
-
Delete Files
-
Text
-
Get Contents of URL…
-
Save File
-
If
-
Delete Files
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Show AlertNot Found
-
If
-
Get File
-
Open File
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Show NotificationChart downloaded
-
If
-
Get File
-
Open File
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Show NotificationChart downloaded
-
Choose from MenuView
-
Get Dictionary Value
-
Choose from List
-
Get File
-
Open File
-
Choose from MenuManage
-
Get Dictionary Value
-
Choose from List
-
If
-
Vibrate Device
-
If
-
Play Sound
-
Show Alert
-
Repeat with Each
-
Split Text
-
Get Item from List
-
Get Item from List
-
Get File
-
Delete Files
-
Choose from MenuUpdate
-
If
-
Text
-
Choose from Menu…
-
Choose from MenuUpdate
-
Get Dictionary Value
-
Match Text
-
Text
-
URLworkflow://shortcuts/…
-
Open URLs
-
Choose from MenuIgnore
-
Run Shortcut
-
If
-
Show AlertNo update available
-
Run Shortcut
-
Choose from MenuAbout
-
Show AlertAbout getCharts
-
Run Shortcut
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#define mac false
#include 'actions/web'
#include 'actions/device'
#define color violet
/*
getCharts by TiltedLandingGear
Easy way to get airport charts.
Changelog
V2.3.7.1
- Fixed a bug where the shortcut would throw an error when it tries to restart (again)
V2.3.7
- Improved iPad compatibility by playing a sound instead of vibrating when the shortcut detects iPad as the device model
- Removed shortcut version in shortcut name
V2.3.6.2
- Fixed a bug where the shortcut would throw an error when it tries to restart
V2.3.6.1
- Closing about menu now restarts the shortcut instead of closing it
V2.3.6
- Added update checking on startup
V2.3.5
- Updating the shortcut now skips the iCloud screen
V2.3.4
- Shortcut automatically creates folder on first run
V2.3.3
- Replaced UpdateKit with embedded updater. That didn't last long did it?
V2.3.2.1
- Added alert when user doesn't have UpdateKit installed
V2.3.2
- Changed folder location
- Integrated UpdateKit
V2.3.1
- Added alert when trying to download a chart that is already downloaded
V2.3
- Added menu for managing downloaded charts
V2.2
- Added a new charts source
V2.1
- Added About page
- Optimizations
V2.0
- Added menu system for downloading and viewing downloaded charts
V1.0
- Initial release
*/
@version += "2.3.7.1"
@shortcutName += "getCharts"
getDeviceDetail("Device Model")
@deviceModel
@RoutineHubURL += "https://routinehub.co/api/v1/shortcuts/6121/versions/latest"
const ContentsOfURL = downloadURL(@RoutineHubURL)
@newVersion += ContentsOfURL['Version']
if @version != @newVersion {
@notes += ContentsOfURL['Notes']
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
alert(, "Update available")
} else {
}
const File = getFile("getCharts/Charts/", false)
if !File {
createFolder("getCharts/Charts")
}
const File1 = getFile("getCharts/Charts/", false)
for _ in File1 {
getName(@RepeatItem)
@fileList += "{}"
}
for _ in @fileList {
const SplitText = splitText(@RepeatItem, ":")
getListItems(SplitText, 0, 0)
getListItems(SplitText, 0, 0)
setValue(@dict)
@dict
}
menu "getCharts Menu" {
item "Download":
const ProvidedInput = prompt("Airport ICAO Code")
uppercase(ProvidedInput)
@ICAO
if @fileList contains @ICAO {
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
alert("Chart for {@ICAO} has already been downloaded. Do you want to continue?", "Chart Already Downloaded")
}
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
showNotification("Downloading chart...", false, @ICAO)
const ContentsOfURL1 = downloadURL()
const SavedFile = saveFile("getCharts/Charts/", ContentsOfURL1, true)
const Name = getName(SavedFile)
if Name contains "404" {
deleteFiles(SavedFile)
const ContentsOfURL2 = downloadURL()
const SavedFile1 = saveFile("getCharts/Charts/", ContentsOfURL2, true)
if SavedFile1['File Extension'] != "pdf" {
deleteFiles(SavedFile1)
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
alert("Chart not available", "Not Found")
} else {
const File2 = getFile("getCharts/Charts/{@ICAO}.pdf")
openFile(File2, false)
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
showNotification("Chart downloaded", false)
}
} else {
const File3 = getFile("getCharts/Charts/{@ICAO}.pdf")
openFile(File3, false)
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
showNotification("Chart downloaded", false)
}
item "View":
const DictionaryValue = getValue(@dict, "")
chooseFromList(DictionaryValue, "Downloaded Charts")
const File4 = getFile("getCharts/Charts/{}.pdf")
openFile(File4, false)
item "Manage":
const DictionaryValue1 = getValues(@dict)
const ChosenItem = chooseFromList(DictionaryValue1, "Select Charts to Delete", true)
if @deviceModel == "iPhone" {
vibrate()
} else {
playSound(nil)
}
alert("Delete the selected files?", "")
for _ in ChosenItem {
const SplitText1 = splitText(@RepeatItem, ":")
const ItemFromList = getListItems(SplitText1, 0, 0)
getListItems(ItemFromList, 0, 0)
const File5 = getFile("getCharts/Charts/{}.pdf")
deleteFiles(File5)
}
item "Update":
if @version != @newVersion {
menu {
item "Update":
containsText(, "[^\/]+$")
const URL = url("workflow://shortcuts/{}")
openURL(URL)
item "Ignore":
run(@shortcutName, nil)
}
} else {
alert("Latest version is already installed.", "No update available")
runSelf()
}
item "About":
alert("getCharts V{@version}\nMade by TiltedLandingGear", "About getCharts")
runSelf()
}
Å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
Du vil måske også kunne lide
Annonce