wtfutil / wtf

The personal information dashboard for your terminal
http://wtfutil.com
Mozilla Public License 2.0
15.71k stars 799 forks source link

Weather module: Weather data is unavailable: no city data #1586

Closed tolga-balci closed 1 year ago

tolga-balci commented 1 year ago

Hi Team,

What's broken?

Following yaml block results in the error below on version 0.43 (latest):

   weather_istanbul:
      type: weather
      apiKey: "123apiKey456"
      compact: false
      city_ids:
        - 745042
      enabled: true
      colors: 
        current: "blue"
      position:
        top: 1
        left: 0
        height: 1
        width: 1
    refreshinterval: 1h
    tempUnit: "C"
    useEmoji: false

image

Running the curl command with the same parameters returns the weather data correctly:

curl "http://api.openweathermap.org/data/2.5/forecast?id=745042&appid=123apiKey456"

Any ideas why that would be the case?

Thanks! Tolga

PS: FYI, I rm'd the config.yml file and recreated it from scratch, but this did not help. Edit: added version information.

tolga-balci commented 1 year ago

Found out the issue: it was about ZScaler Root CA missing from the trusted certificates in WSL2. Imported the certicate and now the module works. Therefore closing the issue.