-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow changing units of measure for reporting
Added "default_units" to the config file. This globally overrides/forces the setting which can be: metric(m) US(u) or metric except wind(M). These values may also be specified at the end of a `!weather location` call from a chat prefixed by 'u:" to indicate you are specifying the unit to use. So you can do something like: !weather Chicago, Il u:m To get the weather in Chicago reported in Celcius. closes #3
- Loading branch information
Showing
2 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# Specify a location to use when just !weather is used | ||
default_location: Columbus, Oh | ||
|
||
# default units to use. This is directly passed to wttr.in, so it must be one of: | ||
# m - metric (SI) | ||
# u - US units (USCS) | ||
# M - metric (SI), but wind in m/s | ||
# blank will automatically determin units based on source IP | ||
default_units: | ||
|
||
# show a link to the wttr.in page | ||
show_link: false | ||
|
||
# display the image of the forecast | ||
show_image: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters