Get Current Weather / GetCurrentWeather (internally is.workflow.actions.weather.currentconditions)

This action requires that Shortcuts has permission to use WFWeatherAttributionAccessResource,WFLocationAccessResource.

description

summary

Gets the current weather conditions at the specified location.

usage

GetCurrentWeather at=("Current Location" | "Custom Location" | variable) location="string"

arguments


at: Enumeration (Docs)

Default Value: "Current Location"

Accepts a string containing one of the options:

  • Current Location
  • Custom Location

location: Location (Docs)

Placeholder: "Cupertino, CA" Allows Variables: true

Only enabled if: argument WFWeatherLocation == Custom Location

Accepts a string or text with the text.


source json (for developers)

{
	"ActionClass": "WFGetCurrentWeatherConditionsAction",
	"ActionKeywords": [
		"current",
		"temperature",
		"visibility",
		"humidity",
		"pressure",
		"wind",
		"sunrise",
		"sunset"
	],
	"AppIdentifier": "com.apple.weather",
	"Category": "Location",
	"Description": {
		"DescriptionAttribution": {
			"Description": "Weather information provided by ${Link}",
			"Link": {
				"Text": "The Weather Channel",
				"URL": "https://www.weather.com"
			}
		},
		"DescriptionSummary": "Gets the current weather conditions at the specified location."
	},
	"IconName": "Weather.png",
	"InputPassthrough": false,
	"Name": "Get Current Weather",
	"Output": {
		"Multiple": false,
		"OutputName": "Weather Conditions",
		"Types": [
			"WFWeatherData"
		]
	},
	"Parameters": [
		{
			"Class": "WFEnumerationParameter",
			"DefaultValue": "Current Location",
			"DisallowedVariableTypes": [
				"Ask",
				"Variable"
			],
			"Items": [
				"Current Location",
				"Custom Location"
			],
			"Key": "WFWeatherLocation",
			"Label": "At"
		},
		{
			"Class": "WFLocationFieldParameter",
			"HintDisplayMode": "Never",
			"Key": "WFWeatherCustomLocation",
			"Label": "Location",
			"Placeholder": "Cupertino, CA",
			"RequiredResources": [
				{
					"WFParameterKey": "WFWeatherLocation",
					"WFParameterValue": "Custom Location",
					"WFResourceClass": "WFParameterRelationResource"
				}
			],
			"TextAlignment": "Right"
		}
	],
	"RequiredResources": [
		"WFWeatherAttributionAccessResource",
		"WFLocationAccessResource"
	],
	"Subcategory": "Weather",
	"UnsupportedEnvironments": [
		"Background"
	]
}