wtfutil/wtf

Weather module: Weather data is unavailable: no city data

tolga-balci opened this issue · 1 comments

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.

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.