mpv icon indicating copy to clipboard operation
mpv copied to clipboard

osd-ext-info.lua: osd-weather modality fails with curl: (6)

Open blue-sky-r opened this issue 7 years ago • 1 comments

osd-weather modality fails with:

[osd_ext_info] curl: (6) Could not resolve host: query.yahooapis.com [osd_ext_info] [osd_ext_info] [osd_ext_info] stack traceback: [osd_ext_info] /home/robert/.config/mpv/scripts/osd-ext-info.lua:427: in function 'osd_weather_msg' [osd_ext_info] /home/robert/.config/mpv/scripts/osd-ext-info.lua:544: in function 'fn' [osd_ext_info] mp.defaults:202: in function 'fn' [osd_ext_info] mp.defaults:60: in function 'handler' [osd_ext_info] mp.defaults:339: in function 'handler' [osd_ext_info] mp.defaults:459: in function 'call_event_handlers' [osd_ext_info] mp.defaults:493: in function 'dispatch_events' [osd_ext_info] mp.defaults:452: in function mp.defaults:451 [osd_ext_info] [C]: in ? [osd_ext_info] [C]: in ? [osd_ext_info] Lua error: /home/robert/.config/mpv/scripts/osd-ext-info.lua:427: attempt to index local 'tab' (a nil value) [osd_ext_info] Exiting...

blue-sky-r avatar Feb 21 '19 15:02 blue-sky-r

Unfortunately as of 2019/03/02 Yahoo has retired the free public weather service (query.yahooapis.com), see details here:

Yahoo Weather API

To query Yahoo server an App registration is required. Every attempt to register returns "internal error":

An internal error occurred (eid 1882225).

Obviously there is no contact nor help link on the page to resolve this issue.

Hey Yahoo, Job well done !

Will try to pass app registration in next few days ... However, if anyone knows about other free public weather API service, just let me know, would like to bring back to life osd-weather modality

blue-sky-r avatar Feb 22 '19 08:02 blue-sky-r