From 2c6ceab8138aee3c6b643976419ebc25064d4c54 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Mon, 1 Mar 2021 10:59:51 +0100 Subject: [PATCH] i3status: add weather --- i3status.d/7DPQTN2.toml | 6 ++++++ i3status.d/90PKL63.toml | 6 ++++++ i3status.d/annoyance.toml | 6 ++++++ i3status.d/silence.toml | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/i3status.d/7DPQTN2.toml b/i3status.d/7DPQTN2.toml index 1b46fe3..ffdc98e 100644 --- a/i3status.d/7DPQTN2.toml +++ b/i3status.d/7DPQTN2.toml @@ -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" diff --git a/i3status.d/90PKL63.toml b/i3status.d/90PKL63.toml index 46d956e..6a6ca43 100644 --- a/i3status.d/90PKL63.toml +++ b/i3status.d/90PKL63.toml @@ -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" diff --git a/i3status.d/annoyance.toml b/i3status.d/annoyance.toml index 9d5c401..23942a5 100644 --- a/i3status.d/annoyance.toml +++ b/i3status.d/annoyance.toml @@ -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" diff --git a/i3status.d/silence.toml b/i3status.d/silence.toml index 2677b8d..b555dfd 100644 --- a/i3status.d/silence.toml +++ b/i3status.d/silence.toml @@ -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"