…
What's New
Version 1.0
First release
What it does
37 actions-
Get Network Details
-
If
-
Show AlertWARNING! THERE NO WIFI DETECTED!
-
Stop This Shortcut
-
If
-
Choose from MenuChoose One Please!!!!!!!!!!!!!!!!!!!!!
-
Choose from MenuPing Wifi!
-
Repeat
-
Date
-
Set VariableStart
-
Text
-
Get URL Headers
-
Get Time Between Dates
-
Add to Variable
-
Calculate Statistics
-
CommentInvert sign, translate to milliseconds, divide by 2 the latency
-
Calculate
-
Round Number
-
Show AlertPing google.com
-
Choose from MenuSpeed Test Wifi!
-
Show Web Page
-
Choose from MenuShow Wifi Info!
-
Get Network Details
-
Count
-
Get IP Address
-
Set VariableInternal
-
Get IP Address
-
Set VariableExterne
-
Show AlertWi-Fi information
-
Choose from MenuShare my Wi-Fi via QR code!
-
Get Network Details
-
Add to Variable
-
Text
-
Set VariablePassword
-
Text
-
Generate QR Code
-
Quick Look
View as code
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/network'
#define color red
#define glyph alertTriangle
const NetworkDetails = getWifiDetail("")
if !NetworkDetails {
alert("WARNING! THERE NO WIFI DETECTED!", "WARNING! THERE NO WIFI DETECTED!")
stop()
} else {
}
menu "Choose One Please!!!!!!!!!!!!!!!!!!!!!" {
item "Ping Wifi!":
repeat _ for 5 {
currentDate()
@Start
getURLHeaders()
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{@Start}",
"WFTimeUntilFromDate": "{CurrentDate}",
"WFTimeUntilUnit": "Total Time"
})
@Times
}
const Average = statistic("Average", nil)
// Invert sign, translate to milliseconds, divide by 2 the latency
const CalculationResult = Average * -500
ceil(CalculationResult, "Ones Place")
alert("5 attempts took an average of {} milliseconds", "Ping google.com")
item "Speed Test Wifi!":
showWebpage("https://www.speedtest.net/")
item "Show Wifi Info!":
const NetworkDetails1 = getCellularDetail("")
count(NetworkDetails1, "Characters")
getExternalIP()
@Internal
getExternalIP()
@Externe
alert("Here's what you wanted to know\n( {NetworkDetails1} ):\n\nInternal IP: {@Internal}\nExternal IP: {@Externe}", "Wi-Fi information")
item "Share my Wi-Fi via QR code!":
getWifiDetail("")
@SSID
@Password = "Add Wi-Fi password In This Text!{Ask}"
const QRCode = makeQRCode(, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
quicklook(QRCode)
}
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 unknown-user
You Might Also Like
Advertisement