-
-
Notifications
You must be signed in to change notification settings - Fork 296
Open
Description
Hello,
I would like to use the weather-api-widget. I noticed strange temperatures.
awesome v4.3-1681-g0f950cbb-dirty (Too long)
• Compiled against Lua 5.3.6 (running with Lua 5.3)
• API level: 4
• D-Bus support: yes
• xcb-errors support: no
• execinfo support: yes
• xcb-randr version: 1.6
• LGI version: 0.9.2
• Transparency enabled: yes
• Custom search paths: no
Widget configuration in rc.lua:
┊ ┊ ┊ weather_widget({
┊ ┊ ┊ ┊ api_key='API_key',
┊ ┊ ┊ ┊ coordinates = {52.36, 10.76},
┊ ┊ ┊ ┊ time_format_12h = false,
┊ ┊ ┊ ┊ units = 'metric',
┊ ┊ ┊ ┊ both_units_widget = false,
┊ ┊ ┊ ┊ font_name = 'Carter One',
┊ ┊ ┊ ┊ icons = 'VitalyGorbachev',
┊ ┊ ┊ ┊ icons_extension = '.svg',
┊ ┊ ┊ ┊ -- icons = 'weather-underground-icons',
┊ ┊ ┊ ┊ -- icons_extension = '.png',
┊ ┊ ┊ ┊ show_hourly_forecast = true,
┊ ┊ ┊ ┊ show_daily_forecast = true,
┊ ┊ ┊ ┊ timeout = 180,
┊ ┊ ┊ }),
generates:
DEBUG: coordinates: table: 0x5e9abaffea70
DEBUG: args.coordinates 1: 52,36
DEBUG: args.coordinates 2: 10,76
DEBUG: coordinates 1: 52,36
DEBUG: coordinates 2: 10,76
DEBUG: weather_api call: https://api.weatherapi.com/v1/forecast.json?q=52,36,10,76&key=API_key&units=metric&lang=de&days=3
---> Mexico
In the API call the coordinates should be with point instead of comma.
https://api.weatherapi.com/v1/forecast.json?q=52.36,10.76&key=API_key&units=metric&lang=de&days=3
--> Germany
Any hint how I can set the coordinates right in the configuration?
Metadata
Metadata
Assignees
Labels
No labels