< Back

Write-WeatherCurrent

Sat Jan 18, 2020 6:09 pm

NAME Write-WeatherCurrent



SYNOPSIS

Writes out a colorful weather banner w/temp and symbol. Great for profile.ps1!





SYNTAX

Write-WeatherCurrent [[-City] <Object>] [[-ApiKey] <Object>] [[-Units] <String>] [[-Proxy] <Uri>] [-Inline]

[<CommonParameters>]





DESCRIPTION





PARAMETERS

-City <Object>

The name of the city or name and ISO country code (e.g. "Minneapolis" or "Minneapolis,US")



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiKey <Object>

Your app ID (API key) from OpenWeatherMap



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Units <String>

The measurement system for units desired in the response



Required? false

Position? 3

Default value imperial

Accept pipeline input? false

Accept wildcard characters? false



-Proxy <Uri>

A proxy URI to pass to Invoke-WebRequest



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Inline [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS