Weather.Opts.new/1
now returns a tuple{:ok, Weather.Opts.t()} | {:error, String.t()}
(4b825a7)
- Added
Weather.Opts.new!/1
which either returns aWeather.Opts
struct or raises anArgumentError
when given invalid input (which was the previous behavior ofWeather.Opts.new/1
) (4b825a7)
- Fix times showing up in UTC when the escript was installed via hex :| (f09eebb)
- Un-break search by zip :| (62ff335)
- Remove escript
priv
hack for Req. Now the executable works as expected after installing viamix escript.install hex weather
:) (0b6b270 and 8f70e4a)
- Update README with simplified CLI installation instructions. CLI can now be installed via
mix escript.install hex weather
(7ddb58c and 061e5b5)
- When you supply a bad API key and a ZIP code, the error message you get back now indicates the API key is bad (previously it stated the ZIP was bad) (3e63a92)
- Add a Livebook! And add "Run in Livebook" button to README (8270eee)
- Improve
--zip
docs, making it clear non-US codes are accepted (7b104d7) - Add timezone database info to readme (db8ae9e)
No notable changes. Just a README typo fix.
- Fix a bug where the hourly rain report would report rain for the current hour when no more rain was expected between and the end of the hour (752e374)
- Handle
0
for 'hours' and 'every' options (e5b4140)
- Add support for custom reports! See the Customization section in the README for more info (ba0fa30)
- Rename latitude and longitude env vars.
MY_HOME_LAT
->WEATHER_LATITUDE
,MY_HOME_LONG
->WEATHER_LONGITUDE
(fd0fd10) - Change rain icon
☔ -> 🌧️
. Arguably not a breaking change but it could be if folks match on the icon (eee817f)
- Update the README, finally! (a33eda3)
- Add
Weather.get!
(bd7aadc) - Redact
appid
when inspecting %Weather.Opts{} (927f630) - Add default args to many methods for ease of use (38710fe)
- Don't blow up when there is no "minutely" data returned (91d3c59)
- Remove ambiguity of alert time spans by including day (1181af0)
- Fix docs for minutely/hourly rain (9285c5f)
- spruce up "minutely" rain title (a08c91f)
- add 🌞 sunrise | 🌚 sunset (f7babe0)
- add hourly rain report (06f8bb1)
- spruce up "minutely" rain title (a08c91f)
- add 🌞 sunrise | 🌚 sunset (f7babe0)
- add hourly rain report (06f8bb1)
- add
--alert-titles-only
CLI switch (f4b7cf9)
- Fix a problem where test responses were not available when the library was being used as a dependency (39bce22)
- add formatter check to github actions (3ec74db)
- Fix a problem where an error would be thrown if there were multiple descriptions for the current weather (39a3e6c)
- Fix formatting bugs (1e3d3cb):
- add newline at end of unauthorized responses
- add newline at end of unexpected responses
- add newline at end of error reponses
- remove unwanted trailing whitespace at end of temp and time lines for hourly report
-
Weather.Colors.colorize
now accepts a string and a color code.@spec colorize(number, Weather.Opts.t()) :: String.t()
->@spec colorize(String.t(), integer()) :: String.t()
(3864018) -
Weather.DateUtils.time_by_hour
now accepts an integer unix time as its first arg instead of a map.@spec time_by_hour(map(), String.t(), Weather.Opts.t()) :: String.t()
->@spec time_by_hour(integer(), String.t(), Weather.Opts.t()) :: String.t()
(3864018) -
Weather.DateUtils.time_by_minute
now accepts an integer unix time as its first arg instead of a map.@spec time_by_minute(map(), String.t(), Weather.Opts.t()) :: String.t()
->@spec time_by_minute(integer(), String.t(), Weather.Opts.t()) :: String.t()
(3864018)
- Fix report spacing (5263b15)
-
Colorize alert titles and change time remaining in alert title to time span (3864018)
-
Add
--hide-alerts
switch to allow hiding weather alerts, even when alerts are available. Default is false, which shows alerts if there are any available (0709825)
- add --test option which lets you try things out without an API key, latitude, or longitude set (2c27364)
- spruce up readme with buttons and a demo gif
- change order of versions in
CHANGELOG.md
, whoops (de71d0b)
- improve pattern matching specificity for public functions (540a317)
- get env vars directly so this library can be used as a dependency (c491157)
- Move finch config to mix.exs so this library can be used as a dependency (7e6bea6)
- Initial Release