46 Commits

Author SHA1 Message Date
James Lu
eb376d8554 NuWeather: use .json files from WWIS directly 2022-05-28 01:30:47 -07:00
James Lu
396dc4d20e NuWeather: fix WWIS cache TTL for current conditions 2022-05-28 01:27:43 -07:00
James Lu
58e85f3532 NuWeather: add WWIS backend
Closes #94.

WWIS uses a predetermined list of locations and doesn't provide a search facility of its own - instead we geocode the input location and find the closest city with data using a Haversine algorithm
2022-05-24 21:16:01 -07:00
James Lu
cb49620a2d NuWeather: split formatting another module; implement format_temp with only c input 2022-05-24 12:56:08 -07:00
James Lu
608a056ad7 NuWeather: remove dynamicScope hacks 2022-05-24 11:59:20 -07:00
James Lu
1eb83ea9df NuWeather: switch to OneCall API for OpenWeatherMap
This API is more complete and includes things like daily forecasts.
2020-08-03 14:13:11 -07:00
James Lu
de4d74a3a9 NuWeather: drop apixu -> weatherstack link 2020-05-25 14:02:17 -07:00
James Lu
fcef45ae77 NuWeather: fix crash with DarkSky when forecast summary is unavailable 2020-05-25 13:56:19 -07:00
Gordon Shumway
56f3e1c4f4
NuWeather: Add weatherstack geocode backend (#90) 2020-02-09 00:11:57 -08:00
James Lu
3d8e284901 NuWeather: exclude hourly and alerts info for Dark Sky; they are not used 2019-10-06 15:42:40 -07:00
James Lu
4354697a56 NuWeather: add OpenWeatherMap as a backend 2019-10-06 13:59:31 -07:00
James Lu
1678b0646e NuWeather: replace Apixu with its successor Weatherstack
Apixu goes down in only one week, so there's no point in leaving the old code here.

Closes #87.
2019-10-06 11:35:27 -07:00
James Lu
a9d0d5fe60 NuWeather: add support for current-conditions-only providers 2019-10-06 11:33:19 -07:00
James Lu
ad2a7d098c NuWeather: raise a proper error for unknown OpenCage locations 2019-09-05 19:03:02 -07:00
James Lu
8480dce3e6 NuWeather: write a proper error for unknown Nominatim locations
Reported by MetaNova on IRC.
2019-09-05 18:55:59 -07:00
James Lu
85469f9e34 NuWeather: show wind gust details 2019-09-01 19:41:12 -07:00
James Lu
971665da44 NuWeather: handle cases when DarkSky output is missing fields 2019-06-23 11:44:31 -07:00
James Lu
884ca91f66 NuWeather: remove invalid function call 2019-06-03 17:48:16 -07:00
James Lu
bf25a27e74 NuWeather: add a geolookup wrapper 2019-03-19 21:27:09 -07:00
James Lu
1dcda3b351 NuWeather: remove --list-backends for now, it doesn't quite work correctly 2019-03-19 21:25:58 -07:00
cottongin
fa4921776c NuWeather: adds ability to override both weather and geocode backends (#82) 2019-03-16 18:30:36 -07:00
James Lu
ce57415c47 NuWeather: Raise=True is not a valid keyword for callbacks.Error 2019-03-14 16:20:05 -07:00
James Lu
eb5b6df27f NuWeather: rename opencagedata -> opencage 2019-03-14 16:19:56 -07:00
cottongin
c8f951c670 NuWeather: adds OpenCage as geocode backend (#81) 2019-03-14 16:10:54 -07:00
James Lu
feb86eb3e2 NuWeather: cache geocode results by backend, not just location 2019-03-14 15:30:58 -07:00
James Lu
77f3ce23b1 NuWeather: fix naming consistency from last commit 2019-03-14 15:12:07 -07:00
Gordon Shumway
f76614c10c NuWeather: add Google Maps backend (#79) 2019-03-14 15:00:45 -07:00
James Lu
ff044013ca NuWeather: extended forecast support (!weather --forecast)
This adds pendulum as an optional dependency and a 'plugins.NuWeather.outputFormat.forecast' config option.
2019-03-09 12:37:19 -08:00
James Lu
877e841372 NuWeather: tentatively make template format a config option
Detailed configuration instructions will hopefully be written soon.
2019-01-22 23:48:52 -08:00
James Lu
93bc68654b NuWeather: fix inconsistencies in output format 2019-01-22 23:20:30 -08:00
James Lu
b8e566dfe2 NuWeather: fix inverted conversions 2019-01-22 23:19:52 -08:00
James Lu
518edf884c NuWeather: split up fetching and formatting code 2019-01-20 21:20:49 -08:00
James Lu
d282e02e91 NuWeather: avoid wrapping "Dark Sky" onto two lines 2019-01-08 09:05:34 -08:00
James Lu
53d2286aaf LastFM, NuWeather: allow DB addressing mode to be configured
These now support:
- saving users by accounts (fall back to ident@host if not registered)
- saving users by ident@host
- saving users by nick
2019-01-02 19:43:20 -08:00
James Lu
39487dc586 NuWeather: use DynamicScope.channel instead of passing msg between methods 2018-12-31 00:00:34 -08:00
James Lu
bed8a0669b NuWeather: update README 2018-12-30 23:51:07 -08:00
James Lu
2291a174d3 NuWeather: formatting improvements for OSM/Nominatim, Dark Sky 2018-12-30 23:44:02 -08:00
James Lu
7682a4b0d0 NuWeather: fix flipped max, min temps for apixu 2018-12-30 23:42:24 -08:00
James Lu
2f223dde11 NuWeather: fix geocode error if osm_id is unavailable 2018-12-30 23:42:06 -08:00
James Lu
545e8a3b8a NuWeather: minor apixu formatting tweaks 2018-12-30 23:21:19 -08:00
James Lu
8f2314add1 NuWeather: add Dark Sky as a backend 2018-12-30 23:15:06 -08:00
James Lu
80dbff83a0 NuWeather: implement geocoding from OpenStreetMap/Nominatim
This will be used by future weather fetchers.
2018-12-30 21:38:45 -08:00
James Lu
925b3b3b0b NuWeather: use a custom user agent (needed for OSM queries) 2018-12-30 21:37:34 -08:00
James Lu
57c8658adf NuWeather: make temperature display units configurable 2018-12-30 21:28:50 -08:00
James Lu
3c23e0e319 NuWeather: include apixu daily conditions text 2018-12-30 13:38:12 -08:00
James Lu
08d3f675c5 NuWeather: a new weather plugin using Apixu
Closes #71.
2018-12-30 13:01:10 -08:00