1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Display firewall status

This commit is contained in:
Chris Cummer
2018-03-31 09:16:40 -07:00
committed by Chris Cummer
parent 42ce7f4353
commit a365c1df96
5 changed files with 151 additions and 56 deletions

View File

@@ -68,7 +68,7 @@ func (widget *Widget) contentFrom(data *owm.CurrentWeatherData) string {
str = str + strings.Join(descs, ",") + "\n\n"
str = str + fmt.Sprintf("%10s: %4.1f° C\n\n", "Current", data.Main.Temp)
str = str + fmt.Sprintf("%10s: %4.1f° C\n", "Current", data.Main.Temp)
str = str + fmt.Sprintf("%10s: %4.1f° C\n", "High", data.Main.TempMax)
str = str + fmt.Sprintf("%10s: %4.1f° C\n", "Low", data.Main.TempMin)
str = str + "\n\n\n\n"
@@ -88,7 +88,7 @@ func icon(data *owm.CurrentWeatherData) string {
case "clear":
icon = "☀️"
case "clear sky":
icon = "☀️"
icon = "☀️ "
case "cloudy":
icon = "⛅️"
case "few clouds":