summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKordian Bruck <k@bruck.me>2023-06-04 18:37:35 +0200
committerKordian Bruck <k@bruck.me>2023-06-04 18:37:35 +0200
commitd5fc7432ee39021328e637a703dfa2bb73c8ec10 (patch)
tree613d27eb27b742febfd54244dd4d114b5cd981c2
parentbd38b5ed9901a5124645c50ee7a33ee1b0ce279a (diff)
Remove references to obsolete forecast.io backend2.2
-rw-r--r--README.md4
-rw-r--r--main.go4
2 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index 53405bb..5c9dea9 100644
--- a/README.md
+++ b/README.md
@@ -63,9 +63,7 @@ go install github.com/schachmat/wego@latest
and next few days for your chosen location.
0. If you're visiting someone in e.g. London over the weekend, just run `wego 4
London` or `wego London 4` (the ordering of arguments makes no difference) to
- get the forecast for the current and the next 3 days. Unfortunately that does
- not currently work with the forecast.io backend, as it only supports
- latitude,longitude location specification.
+ get the forecast for the current and the next 3 days.
You can set the `$WEGORC` environment variable to override the default config
file location.
diff --git a/main.go b/main.go
index 0441114..50ec775 100644
--- a/main.go
+++ b/main.go
@@ -48,8 +48,8 @@ func main() {
flag.IntVar(numdays, "d", 3, "`NUMBER` of days of weather forecast to be displayed (shorthand)")
unitSystem := flag.String("units", "metric", "`UNITSYSTEM` to use for output.\n \tChoices are: metric, imperial, si, metric-ms")
flag.StringVar(unitSystem, "u", "metric", "`UNITSYSTEM` to use for output. (shorthand)\n \tChoices are: metric, imperial, si, metric-ms")
- selectedBackend := flag.String("backend", "forecast.io", "`BACKEND` to be used")
- flag.StringVar(selectedBackend, "b", "forecast.io", "`BACKEND` to be used (shorthand)")
+ selectedBackend := flag.String("backend", "openweathermap", "`BACKEND` to be used")
+ flag.StringVar(selectedBackend, "b", "openweathermap", "`BACKEND` to be used (shorthand)")
selectedFrontend := flag.String("frontend", "ascii-art-table", "`FRONTEND` to be used")
flag.StringVar(selectedFrontend, "f", "ascii-art-table", "`FRONTEND` to be used (shorthand)")