weatherrc(5)
π weatherrc β the config file for weather(1) π
ok so bestie, you're reading the weatherrc(5) page from the File Formats Manual, and honestly? this little file is the moment. β¨
πΈ NAME πΈ
weatherrc β the configuration file format for the weather(1) utility. yes, that weather. the one you keep running. she has a config file and she's thriving.
π DESCRIPTION π
So the whole vibe of the weatherrc file format is: you're defining a set of aliases that group together URIs for METAR station conditions and alert/forecast zones. but that's not all, bestie β other command-line options and flags for the weather utility can be specified too. it's giving "one file to rule them all" π
The file is organized as an INI-format config. alias name goes in [] brackets, and the associated parameter/value pairs go on the lines right after it. Parameters and their values are separated by = or : characters. and here's the iconic part β multi-word values do not need quoting. no quotes, no stress, we love a low-maintenance queen π«Ά
These parameters are supported...
alertβ include local alert notices. possible values areFalseandTrueor0and1.atypesβ list of alert notification types to display. ex:tornado,urgent_weather_message.cacheβ control all caching. possible values areFalseandTrueor0and1.cache_dataβ control retrieved data caching. possible values areFalseandTrueor0and1.cache_searchβ control search result caching. possible values areFalseandTrueor0and1.cacheageβ duration in seconds to refresh cached data. ex:900.cachedirβ directory for storing cached searches and data. ex:~/.weather.conditionsβ output current conditions. possible values areFalseandTrueor0and1.defargsβ list of default command-line arguments. ex:avl,rdu.forecastβ include a local forecast. possible values areFalseandTrueor0and1.headersβ list of conditions headers to display. ex:temperature,wind.imperialβ filter/convert conditions for US/UK units. possible values areFalseandTrueor0and1.metricβ filter/convert conditions for metric units. possible values areFalseandTrueor0and1.quietβ skip preambles and don't indent. possible values areFalseandTrueor0and1.setpathβ directory search path for correlation sets. ex:.:~/.weather.verboseβ show full decoded feeds. possible values areFalseandTrueor0and1.
β¨ EXAMPLES β¨
ok so here's the tea β the following is an example ~/.weather/weatherrc defining a couple aliases named home and work, to be displayed when running the utility with no aliases specified...
[default]
defargs = home,work
[home]
description = Conditions and Forecast at Home
forecast = True
metar = http://tgftp.nws.noaa.gov/data/observations/metar/decoded/KRDU.TXT
zone_forecast = http://tgftp.nws.noaa.gov/data/forecasts/zone/nc/ncz041.txt
[work]
description = Conditions at Work
metar = http://tgftp.nws.noaa.gov/data/observations/metar/decoded/KGSO.TXT
Now if weather is invoked by itself on the command line, it will output conditions for home and work, and also a forecast for home only. no cap. it just does that. π¦
π AUTHOR π
Specification and manual written by Jeremy Stanley <fungi@yuggoth.org>. shoutout to the author, fr fr. π«Ά
π SEE ALSO π
and that's the whole page, bestie!! this was version 2.5.0, dated 2024-05-11, and honestly? iconic. go configure something. mwah π πβ¨
π¦ where this page comes from
- debian trixie: weather-util 2.5.0-1 Β· ISC
- nixos 26.05: weather 2.5.0
- nixpkgs unstable: weather 2.5.0
- ubuntu questing: weather-util 2.5.0-1
- ubuntu resolute: weather-util 2.5.0-1build1 Β· ISC
- ubuntu stonking: weather-util 2.5.0-1build1 Β· ISC
- Copyright (c) 2006-2024 Jeremy Stanley <fungi@yuggoth.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms