Browse Source

xmobar weather: s/KDEN/KLMO/

Brennen Bearnes 6 months ago
parent
commit
c9d406b1a4
1 changed files with 17 additions and 3 deletions
  1. 17
    3
      home/.xmobarrc

+ 17
- 3
home/.xmobarrc View File

@@ -3,16 +3,30 @@ Config { font = "xft:Bitstream Vera Sans Mono:size=14:antialias=true"
3 3
        , fgColor = "grey"
4 4
        , position = BottomW L 90
5 5
        , lowerOnStart = False
6
-       , commands = [ Run Weather "KDEN" ["-t", " <tempF>F", "-L", "64", "-H", "77", "--normal", "green", "--high", "red", "--low", "blue"] 36000
6
+
7
+       -- Recent notes on weather data: https://p1k3.com/2019/2/16
8
+
9
+       -- Source of Weather plugin: https://github.com/jaor/xmobar/blob/master/src/Xmobar/Plugins/Monitors/Weather.hs
10
+       -- Weather stations are pulled from: https://tgftp.nws.noaa.gov/data/observations/metar/decoded/
11
+       -- HTML list of METAR stations: https://www.aviationweather.gov/metar/info
12
+       -- Text list of METAR stations: https://www.aviationweather.gov/docs/metar/stations.txt
13
+
14
+       -- Denver International Airport is KDEN; was using that previously.
15
+       -- KLMO is Vance Brand Airport in Longmont, CO.
16
+       -- If you change the station, remember that you also have to update the
17
+       -- template string belong to use the new station name, otherwise you'll
18
+       -- just get an "Updating..." notice instead of the temperature.
19
+
20
+       , commands = [ Run Weather "KLMO" ["-t", " <tempF>F/<skyCondition>", "-L", "64", "-H", "77", "--normal", "green", "--high", "red", "--low", "blue"] 36000
7 21
                     , Run Cpu ["-t", "cpu <total>%", "-L", "3", "-H", "50", "--normal", "green", "--high", "red"] 10
8 22
                     , Run Memory ["-t", "mem <usedratio>%"] 10
9 23
                     , Run DynNetwork ["-L", "0", "-H", "32", "--normal", "green", "--high", "red"] 300
10 24
                     -- , Run Swap ["-t", "swap: <usedratio>%"] 10
11
-                    , Run Date "%a %b %_d %l:%M (%s)" "date" 10
25
+                    , Run Date "%a %Y-%m-%_d %l:%M (%s)" "date" 10
12 26
                     , Run BatteryP ["BAT0"] ["-t", "AC <acstatus> (<left>%)"] 500
13 27
                     , Run StdinReader
14 28
                     ]
15 29
        , sepChar = "%"
16 30
        , alignSep = "}{"
17
-       , template = "%StdinReader% }{ %cpu%|%dynnetwork%|%memory%|%battery%|<fc=#a3ddf0>%date%</fc>|%KDEN%"
31
+       , template = "%StdinReader% }{ %cpu%|%dynnetwork%|%memory%|%battery%|<fc=#a3ddf0>%date%</fc>|%KLMO%"
18 32
        }

Loading…
Cancel
Save