ShareShortcuts

Network Tool

This command allows you to test or view information about a Wi-Fi network

misharo
Создать форк «Network Tool»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы misharo получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
2K
Сохранено
0
Действия
74
Категория
API
Версия
1.0
Язык
EN

This command allows you to test or view information about a Wi-Fi network.

Что нового

Версия 1.0

First release

История версий
1.0 25 сен 2026 г.

First release

Что делает

Действий: 74
  1. Comment
    After testing several different network information shortcuts, I decided to merge some of them into one that's perfect for me. Credits: Network Details by @kseverin https://shareshortcuts.com/shortcuts/105-network-details.html No more secrets from y…
  2. Get Network Details
  3. Add to Variable
  4. Count
  5. If
  6. Choose from Menu
    What do you want to inspect?
  7. Choose from Menu
    Show information about Wi-Fi
  8. Get Network Details
  9. Count
  10. Get IP Address
  11. Set Variable
    Internal
  12. Get IP Address
  13. Set Variable
    Externe
  14. Show Alert
    Wi-Fi information
  15. Choose from Menu
    Do a Speed test
  16. URL
    https://fast.com
  17. Show Web Page
  18. Choose from Menu
    Test ping
  19. Repeat
  20. Date
  21. Set Variable
    Start
  22. Text
  23. Get URL Headers
  24. Get Time Between Dates
  25. Add to Variable
  26. Calculate Statistics
  27. Comment
    Invert sign, translate to milliseconds, divide by 2 the latency
  28. Calculate
  29. Round Number
  30. Show Alert
    Ping google.com
  31. Choose from Menu
    Advanced information lookup
  32. URL
    https://extreme-ip-lookup.com/json/
  33. Get Contents of URL
    …
  34. Set Variable
    Information
  35. Get Dictionary Value
  36. Set Variable
    City
  37. Text
  38. Get Dictionary Value
  39. Set Variable
    Serviceprov
  40. Get Dictionary Value
  41. Set Variable
    Reg
  42. Get Dictionary Value
  43. Set Variable
    Org
  44. Get Dictionary Value
  45. Set Variable
    Country
  46. Get Dictionary Value
  47. Set Variable
    IPname
  48. Get IP Address
  49. Get Variable
  50. Show Alert
    Remote lookup
  51. Choose from Menu
    Physical IP location (Map)
  52. URL
    https://extreme-ip-lookup.com/json/
  53. Get Contents of URL
    …
  54. Set Variable
    Dump
  55. Get Dictionary Value
  56. Set Variable
    Lat
  57. Get Dictionary Value
  58. Set Variable
    Lon
  59. Text
  60. Combine Text
  61. Show in Maps
  62. Choose from Menu
    Share my Wi-Fi via QR code
  63. Get Network Details
  64. Add to Variable
  65. Ask for Input
    What's the WiFi Password for …
  66. Text
  67. Set Variable
    Password
  68. Text
  69. Generate QR Code
  70. Quick Look
  71. If
  72. Text
  73. Show Alert
    …, We have a problem
  74. Stop This Shortcut

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#include 'actions/network'
#define color lightblue
#define glyph wifi

/*
After testing several different network information shortcuts, I decided to merge some of them into one that's perfect for me.

Credits: 
Network Details by @kseverin
https://shareshortcuts.com/shortcuts/105-network-details.html

No more secrets from your Wi-Fi by _qweryuiop_
https://shortcutsgallery.com/shortcuts/no-more-secrets-from-your-wi-fi/

Network test by @deanlyoung
https://shareshortcuts.com/shortcuts/68-network-test.html

Network Details by Simon Stevens
https://shortcutsgallery.com/shortcuts/network-details/
*/
getCellularDetail("")
@Networkwifi
const Count = count(@Networkwifi, "Characters")

if Count > 0 {
	menu "What do you want to inspect?" {
	item "Show information about Wi-Fi":
		const NetworkDetails = getCellularDetail("")
		count(NetworkDetails, "Characters")
		getExternalIP()
		@Internal
		getExternalIP()
		@Externe
		alert("Here's what you wanted to know\n({NetworkDetails}):\n\nInternal IP: {@Internal}\nExternal IP: {@Externe}", "Wi-Fi information")
	item "Do a Speed test":
		url("https://fast.com")
		showWebpage()
	item "Test ping":
		repeat _ for 5 {
			currentDate()
			@Start
			getURLHeaders()
			rawAction("is.workflow.actions.gettimebetweendates", {
				"WFInput": "{@Start}",
				"WFTimeUntilFromDate": "{CurrentDate}",
				"WFTimeUntilUnit": "Total Time"
			})
			@Times
		}
		const Average = statistic("", nil)
		// Invert sign, translate to milliseconds, divide by 2 the latency

		const CalculationResult = Average * -500
		round(CalculationResult)
		alert("5 attempts took an average of {} milliseconds", "Ping google.com")
	item "Advanced information lookup":
		url("https://extreme-ip-lookup.com/json/")
		downloadURL()
		@Information
		@City = @Information['city']
		const Text = "{@Information}"
		@Serviceprov = Text['isp']
		@Reg = @Information['region']
		@Org = @Information['org']
		@Country = @Information['country']
		@IPname = @Information['ipName']
		getExternalIP()
		// TODO: Get Variable not supported: Assign variable here to '@Information'.
		alert("The IP number is {}\n\nThe IP name is {@IPname}\n\nYour router {@Networkwifi}, is showing your country location as {@Country} and it's coming out of {@City} in {@Reg}.\nYour internet service provider is {@Org}.", "Remote lookup")
	item "Physical IP location (Map)":
		url("https://extreme-ip-lookup.com/json/")
		downloadURL()
		@Dump
		@Lat = @Dump['lat']
		@Lon = @Dump['lon']
		const Text1 = "{@Lat} {@Lon}"
		const CombinedText = joinText(Text1)
		openInMaps(CombinedText)
	item "Share my Wi-Fi via QR code":
		getCellularDetail("")
		@SSID
		prompt("What's the WiFi Password for {@SSID} ")
		@Password = "{}"
		const QRCode = makeQRCode(, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
		quicklook(QRCode)
	}
} else {
	const Name = ""
	alert("Make sure you are connected to a network!", "{Name}, We have a problem")
	stop()
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от misharo

См. все

Вам также может понравиться

См. все
Реклама