mirror of
https://github.com/chubin/wttr.in
synced 2025-01-12 12:08:47 +00:00
Replaced Invoke-WebRequest with Invoke-RestMethod
Added formatting as well.
This commit is contained in:
parent
f51fda3447
commit
d12dfcca81
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ but it's still a live weather report in your language.)
|
||||||
|
|
||||||
Or in PowerShell:
|
Or in PowerShell:
|
||||||
|
|
||||||
(Invoke-WebRequest http://wttr.in).Content
|
```PowerShell
|
||||||
|
Invoke-RestMethod http://wttr.in
|
||||||
|
```
|
||||||
|
|
||||||
Want to get the weather information for a specific location? You can add the desired location to the URL in your
|
Want to get the weather information for a specific location? You can add the desired location to the URL in your
|
||||||
request like this:
|
request like this:
|
||||||
|
|
Loading…
Reference in a new issue