From df9e077f2e7c364b12f5e65fc53502a119ed976f Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 21 Jul 2020 12:20:09 +0200 Subject: [PATCH] Improved weather.ps1 --- Scripts/weather.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/weather.ps1 b/Scripts/weather.ps1 index c77bc269..7ab5b319 100755 --- a/Scripts/weather.ps1 +++ b/Scripts/weather.ps1 @@ -6,5 +6,6 @@ # Source: github.com/fleschutz/PowerShell # License: CC0 # -(Invoke-WebRequest http://wttr.in/Berlin -UserAgent "curl" ).Content +$GeoLocation="" # empty means determine automatically +(Invoke-WebRequest http://wttr.in/$GeoLocation -UserAgent "curl" ).Content exit 0