schachmat / wego

weather app for the terminal
ISC License
7.82k stars 476 forks source link

HTTP 403 error (Unauthorized) when using worldweatheronline #179

Closed developerbedoya closed 1 month ago

developerbedoya commented 10 months ago

Hi, I'm trying to use this excellent program, but I can't connect to the world weather online API. This is my .wegorc file, excluding the API key. Can you help me with this problem? Is a problem with the API key, or this program is no longer compatible with that API?

Thanks!

# wego configuration
# 
# This config has https://github.com/schachmat/ingo syntax.
# Empty lines or lines starting with # will be ignored.
# All other lines must look like "KEY=VALUE" (without the quotes).
# The VALUE must not be enclosed in quotes as well!

# aat-frontend: Show geo coordinates (default false)
aat-coords=false

# aat-frontend: Monochrome output (default false)
aat-monochrome=false

# BACKEND to be used (default openweathermap)
backend=worldweatheronline

# caiyun backend: the api KEY to use (default )
caiyun-api-key=

# caiyun backend: print raw requests and responses (default true)
caiyun-debug=true

# caiyun backend: the LANGUAGE to request from caiyunapp.com/ (default en)
caiyun-lang=en

# NUMBER of days of weather forecast to be displayed (default 3)
days=3

# FRONTEND to be used (default ascii-art-table)
frontend=ascii-art-table

# json frontend: do not indent the output (default false)
jsn-no-indent=false

# LOCATION to be queried (default 40.748,-73.985)
location=-19.869,-44.045

# md-frontend: Show geo coordinates (default false)
md-coords=false

# openweathermap backend: the api KEY to use (default )
owm-api-key=

# openweathermap backend: print raw requests and responses (default false)
owm-debug=false

# openweathermap backend: the LANGUAGE to request from openweathermap (default en)
owm-lang=en

# UNITSYSTEM to use for output.
# Choices are: metric, imperial, si, metric-ms (default metric)
units=metric

# worldweatheronline backend: the api KEY to use (default )
wwo-api-key=redactedredactedredacted

# worldweatheronline backend: print raw requests and responses (default false)
wwo-debug=false

# worldweatheronline backend: the LANGUAGE to request from worldweatheronline (default en)
wwo-lang=en
kordianbruck commented 1 month ago

Most likely the problem is the API key, but also I personally haven't tried that backend in a while. Could be broken by now. The http 403 error seems much more pointing to a wrong api key.

cmennens commented 1 month ago

Thank you for you time and contribution ❤️ Much appreciated - Chicago, IL