fix: default DEM URL to api.open-elevation.com
No configuration needed out of the box; --dem-url only required to override the default with a self-hosted or alternative endpoint.
This commit is contained in:
+2
-5
@@ -25,7 +25,7 @@ console = Console()
|
||||
@click.option("--strava-client-secret", default=None, envvar="STRAVA_CLIENT_SECRET",
|
||||
help="Strava API client secret. Also reads STRAVA_CLIENT_SECRET env var.")
|
||||
@click.option("--dem-url", default=None, envvar="DEM_URL",
|
||||
help="Base URL of an Open-Elevation-compatible API (enables 'Recalculate elevation' button).")
|
||||
help="Base URL of an Open-Elevation-compatible API (default: https://api.open-elevation.com).")
|
||||
def edit(
|
||||
data_dir: Optional[str],
|
||||
port: int,
|
||||
@@ -78,10 +78,7 @@ def edit(
|
||||
console.print(f"Strava sync: [green]enabled[/green] (client {strava_client_id})")
|
||||
else:
|
||||
console.print("Strava sync: [yellow]disabled[/yellow] (pass --strava-client-id to enable)")
|
||||
if dem_url:
|
||||
console.print(f"DEM: [green]enabled[/green] ({dem_url})")
|
||||
else:
|
||||
console.print("DEM: [yellow]disabled[/yellow] (pass --dem-url to enable elevation recalculation)")
|
||||
console.print(f"DEM: [cyan]{srv.dem_url}[/cyan]")
|
||||
|
||||
uvicorn.run(srv.app, host="127.0.0.1", port=port, log_level="warning")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user