Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate clear weather at night vs day #88

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/forecast.io.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (c *forecastConfig) ParseDaily(db forecastDataBlock, numdays int) []iface.D
func (c *forecastConfig) parseCond(dp forecastDataPoint) (ret iface.Cond, err error) {
codemap := map[string]iface.WeatherCode{
"clear-day": iface.CodeSunny,
"clear-night": iface.CodeSunny,
"clear-night": iface.CodeClearNight,
"rain": iface.CodeLightRain,
"snow": iface.CodeLightSnow,
"sleet": iface.CodeLightSleet,
Expand Down
7 changes: 7 additions & 0 deletions frontends/ascii-art-table.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ func (c *aatConfig) formatCond(cur []string, cond iface.Cond, current bool) (ret
"\033[38;5;226m `-᾿ \033[0m",
"\033[38;5;226m / \\ \033[0m",
},
iface.CodeClearNight: {
"\033[38;5;255m * .--, \033[0m",
"\033[38;5;255m / / \033[0m",
"\033[38;5;255m | | \033[0m",
"\033[38;5;255m \\ \\ * \033[0m",
"\033[38;5;255m * `--` \033[0m",
},
iface.CodeThunderyHeavyRain: {
"\033[38;5;240;1m .-. \033[0m",
"\033[38;5;240;1m ( ). \033[0m",
Expand Down
1 change: 1 addition & 0 deletions frontends/emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (c *emojiConfig) formatCond(cur []string, cond iface.Cond, current bool) (r
iface.CodeLightSnowShowers: {"🌨"},
iface.CodePartlyCloudy: {"⛅️"},
iface.CodeSunny: {"☀️"},
iface.CodeClearNight: {"🌜"},
iface.CodeThunderyHeavyRain: {"🌩"},
iface.CodeThunderyShowers: {"⛈"},
iface.CodeThunderySnowShowers: {"⛈"},
Expand Down
1 change: 1 addition & 0 deletions iface/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
CodeLightSnowShowers
CodePartlyCloudy
CodeSunny
CodeClearNight
CodeThunderyHeavyRain
CodeThunderyShowers
CodeThunderySnowShowers
Expand Down