i3status: add weather

This commit is contained in:
Konstantin Koslowski 2021-03-01 10:59:51 +01:00
parent 8f4782633b
commit 2c6ceab813
4 changed files with 24 additions and 0 deletions

View file

@ -65,6 +65,12 @@ format = "{percentage}% {time}"
[[block]]
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 = "time"
format = "%Y/%m/%d %R"

View file

@ -66,6 +66,12 @@ format = "{percentage}% {time}"
[[block]]
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 = "time"
format = "%Y/%m/%d %R"

View file

@ -54,6 +54,12 @@ buttons = ["play", "next"]
[[block]]
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 = "time"
format = "%Y/%m/%d %R"

View file

@ -59,6 +59,12 @@ format = "{percentage}% {time}"
[[block]]
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 = "time"
format = "%Y/%m/%d %R"