ShareShortcuts

Wifi Info Giver Test! V2.0!

unknown-user
Fork “Wifi Info Giver Test! V2.0!”

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 unknown-user 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
42K
Saved
0
Actions
37
Category
API
Version
1.0
Language
EN

…

What's New

Version 1.0

First release

Version History
1.0 Apr 20, 2022

First release

What it does

37 actions
  1. Get Network Details
  2. If
  3. Show Alert
    WARNING! THERE NO WIFI DETECTED!
  4. Stop This Shortcut
  5. If
  6. Choose from Menu
    Choose One Please!!!!!!!!!!!!!!!!!!!!!
  7. Choose from Menu
    Ping Wifi!
  8. Repeat
  9. Date
  10. Set Variable
    Start
  11. Text
  12. Get URL Headers
  13. Get Time Between Dates
  14. Add to Variable
  15. Calculate Statistics
  16. Comment
    Invert sign, translate to milliseconds, divide by 2 the latency
  17. Calculate
  18. Round Number
  19. Show Alert
    Ping google.com
  20. Choose from Menu
    Speed Test Wifi!
  21. Show Web Page
  22. Choose from Menu
    Show Wifi Info!
  23. Get Network Details
  24. Count
  25. Get IP Address
  26. Set Variable
    Internal
  27. Get IP Address
  28. Set Variable
    Externe
  29. Show Alert
    Wi-Fi information
  30. Choose from Menu
    Share my Wi-Fi via QR code!
  31. Get Network Details
  32. Add to Variable
  33. Text
  34. Set Variable
    Password
  35. Text
  36. Generate QR Code
  37. Quick Look

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/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

See All

You Might Also Like

See All
Advertisement