ShareShortcuts
Создать форк «Weather pro»

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

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

You can see many weather-related things about your location like the UV, the temperature, the feels-like, temperature, the sunset time and the sunrise time, and much much more! If you think I should add something or have any feedback please put them in the comment section this will help me make this shortcut better for everyone! (please don’t copy this shortcut please!) My YouTube channel: https://www.youtube.com/channel/UCcgeH0t-4nsYEqkyVlWk8oQ Get new shortcut updates first!

Что нового

Версия 2.1

This update includes the air pollutants in your area and your local air quality index.

История версий
2.1 19 авг 2022 г.

This update includes the air pollutants in your area and your local air quality index.

2.0 15 мая 2022 г.

In this update the things added/fixed include: added Wind Speed, fixed a text mistake (an extra pm in sunset time) and more detailed daily forecast description.

1.0 10 дек 2020 г.

First release

Что делает

Действий: 63
  1. Dictionary
  2. Text
  3. Create Folder
  4. Get IP Address
  5. If
  6. Show Result
  7. Stop This Shortcut
  8. If
  9. Speak Text
  10. Choose from Menu
    Weather☁️pro
  11. Choose from Menu
    Login
  12. Get File
  13. Set Variable
    Passcode
  14. Ask for Input
    What is your password?
  15. If
  16. Show Result
  17. If
  18. Choose from Menu
    Create a passcode
  19. Ask for Input
    What is your new password?
  20. Set Variable
    Newpassword
  21. Save File
  22. Show Result
  23. Get Current Location
  24. Get Current Weather
  25. Set Variable
    ✅location
  26. Location
  27. Number
  28. Repeat
  29. Get Current Weather
  30. Date
  31. Set Variable
    Date
  32. Text
  33. Choose from Menu
    …
  34. Choose from Menu
    Hourly forcast
  35. Get Weather Forecast
  36. Show Result
  37. Choose from Menu
    Daily forcast
  38. Get Weather Forecast
  39. Show Result
  40. Choose from Menu
    UV index
  41. Get Details of Weather
  42. Show Result
  43. Choose from Menu
    Feels like
  44. Get Details of Weather
  45. Show Result
  46. Choose from Menu
    Sunrise time
  47. Get Details of Weather
  48. Show Result
  49. Choose from Menu
    Sunset time
  50. Get Details of Weather
  51. Show Result
  52. Choose from Menu
    Wind direction
  53. Get Details of Weather
  54. Show Result
  55. Choose from Menu
    Wind speed
  56. Get Details of Weather
  57. Show Result
  58. Choose from Menu
    air pollutants
  59. Get Details of Weather
  60. Show Result
  61. Choose from Menu
    air quality index
  62. Get Details of Weather
  63. Show Result

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

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

#include 'actions/text'
#include 'actions/network'
#include 'actions/documents'
#define color yellow
#define glyph trueTone

createFolder("Weather☁️pro/")
const CurrentIPAddress = getExternalIP()

if !CurrentIPAddress {
	show("Your internet connection appears to be offline.")
	stop()
} else {
}
speak("Welcome to Weather☁️pro")

menu "Weather☁️pro" {
item "Login":
	getFile("Weather☁️pro/passcode.txt")
	@Passcode
	const ProvidedInput = prompt("What is your password?")
	if ProvidedInput == @Passcode {
		show("You have logged in.")
	} else {
	}
item "Create a passcode":
	prompt("What is your new password?")
	@Newpassword
	saveFile("Weather☁️pro/passcode.txt", @Newpassword)
	show("You have created a new password.")
}
const CurrentLocation = getCurrentLocation()
getCurrentWeather(CurrentLocation)
@location
location(@location)
const Number = 10000000000000000

repeat _ for Number {
	getCurrentWeather(@location)
	currentDate()
	@Date
	menu  {
	item "Hourly forcast":
		getWeatherForecast("Hourly")
		show("Hourly forecast: {}")
	item "Daily forcast":
		getWeatherForecast()
		show("Daily forecast (top one is today): {}")
	item "UV index":
		getWeatherDetail(@location, "UV Index")
		show("UV:{}")
	item "Feels like":
		getWeatherDetail(@location, "Feels Like")
		show("feels like: {}")
	item "Sunrise time":
		getWeatherDetail(@location, "Sunrise Time")
		show("Sunrise time: {}")
	item "Sunset time":
		getWeatherDetail(@location, "Sunset Time")
		show("sunset time: {} ")
	item "Wind direction":
		getWeatherDetail(@location, "Wind Direction")
		show("Wind direction: {}")
	item "Wind speed":
		getWeatherDetail(@location, "Wind Speed")
		show("Wind speed: {}")
	item "air pollutants":
		getWeatherDetail(@location, "Air Pollutants")
		show("Air pollutants: {}")
	item "air quality index":
		getWeatherDetail(@location, "Air Quality Index")
		show("Air quality index: {}")
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

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

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

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

Реклама

Ещё от gooey321

См. все

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

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