Skip to content

Commit

Permalink
Remove references to obsolete forecast.io backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kordianbruck committed Jun 4, 2023
1 parent bd38b5e commit d5fc743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")

Expand Down

0 comments on commit d5fc743

Please sign in to comment.