i3status: add weather
This commit is contained in:
parent
8f4782633b
commit
2c6ceab813
4 changed files with 24 additions and 0 deletions
|
@ -65,6 +65,12 @@ format = "{percentage}% {time}"
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "notify"
|
block = "notify"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "weather"
|
||||||
|
format = "{location}: {weather} {temp}°, {wind} m/s {direction}"
|
||||||
|
autolocate = true
|
||||||
|
service = { name = "openweathermap", api_key = "2a4ce7726b2f1731ec04418e64800e92", city_id = "2950159", units = "metric" }
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
format = "%Y/%m/%d %R"
|
format = "%Y/%m/%d %R"
|
||||||
|
|
|
@ -66,6 +66,12 @@ format = "{percentage}% {time}"
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "notify"
|
block = "notify"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "weather"
|
||||||
|
format = "{location}: {weather} {temp}°, {wind} m/s {direction}"
|
||||||
|
autolocate = true
|
||||||
|
service = { name = "openweathermap", api_key = "2a4ce7726b2f1731ec04418e64800e92", city_id = "2950159", units = "metric" }
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
format = "%Y/%m/%d %R"
|
format = "%Y/%m/%d %R"
|
||||||
|
|
|
@ -54,6 +54,12 @@ buttons = ["play", "next"]
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "notify"
|
block = "notify"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "weather"
|
||||||
|
format = "{location}: {weather} {temp}°, {wind} m/s {direction}"
|
||||||
|
autolocate = true
|
||||||
|
service = { name = "openweathermap", api_key = "2a4ce7726b2f1731ec04418e64800e92", city_id = "2950159", units = "metric" }
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
format = "%Y/%m/%d %R"
|
format = "%Y/%m/%d %R"
|
||||||
|
|
|
@ -59,6 +59,12 @@ format = "{percentage}% {time}"
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "notify"
|
block = "notify"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "weather"
|
||||||
|
format = "{location}: {weather} {temp}°, {wind} m/s {direction}"
|
||||||
|
autolocate = true
|
||||||
|
service = { name = "openweathermap", api_key = "2a4ce7726b2f1731ec04418e64800e92", city_id = "2950159", units = "metric" }
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
format = "%Y/%m/%d %R"
|
format = "%Y/%m/%d %R"
|
||||||
|
|
Loading…
Reference in a new issue