more appropriate weather emojis
This commit is contained in:
parent
ab604a2016
commit
60d03dbb13
58
bot.sh
58
bot.sh
@ -107,35 +107,35 @@ curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LATITUDE}&longitude=$
|
|||||||
# Extract Weather Condition
|
# Extract Weather Condition
|
||||||
weather_condition=$(cat $weather_file | jq '.current_weather.weathercode')
|
weather_condition=$(cat $weather_file | jq '.current_weather.weathercode')
|
||||||
case $weather_condition in
|
case $weather_condition in
|
||||||
0) current_weather="☀️ Clear sky" ;;
|
0) current_weather="☀️ Clear Sky" ;;
|
||||||
1) current_weather="☀️ Mainly clear";;
|
1) current_weather="☀️ Mainly Clear" ;;
|
||||||
2) current_weather="☁️ Partly cloudy" ;;
|
2) current_weather="⛅ Partly Cloudy" ;;
|
||||||
3) current_weather="☁️ Overcast" ;;
|
3) current_weather="☁️ Overcast" ;;
|
||||||
45) current_weather="🌫️ Fog" ;;
|
45) current_weather="🌫️ Fog" ;;
|
||||||
48) current_weather="🌫️ Depositing rime fog" ;;
|
48) current_weather="🌫️🌬️ Depositing Rime Fog" ;;
|
||||||
51) current_weather="🌧️ Light drizzle" ;;
|
51) current_weather="🌦️💧 Light Drizzle" ;;
|
||||||
53) current_weather="🌧️ Moterate drizzle" ;;
|
53) current_weather="🌦️💧 Moderate Drizzle" ;;
|
||||||
55) current_weather="🌧️ Dense drizzle" ;;
|
55) current_weather="🌦️💧 Dense Drizzle" ;;
|
||||||
56) current_weather="🌧️ Light freezing drizzle" ;;
|
56) current_weather="🌦️❄️ Light Freezing Drizzle" ;;
|
||||||
57) current_weather="🌧️ Dense freezing drizzle" ;;
|
57) current_weather="🌦️❄️ Dense Freezing Drizzle" ;;
|
||||||
61) current_weather="🌦️ Slight rain" ;;
|
61) current_weather="🌧️ Slight Rain" ;;
|
||||||
63) current_weather="🌦️ Moderate rain" ;;
|
63) current_weather="🌧️ Moderate Rain" ;;
|
||||||
65) current_weather="🌦️ Heavy rain" ;;
|
65) current_weather="🌧️ Heavy Rain" ;;
|
||||||
66) current_weather="🌦️ Light freezing rain" ;;
|
66) current_weather="🌧️❄️ Light Freezing Rain" ;;
|
||||||
67) current_weather="🌦️ Heavy freezing rain" ;;
|
67) current_weather="🌧️❄️ Heavy Freezing Rain" ;;
|
||||||
71) current_weather="🌨️ Slight snow fall" ;;
|
71) current_weather="🌨️ Slight Snowfall" ;;
|
||||||
73) current_weather="🌨️ Moderate snow fall" ;;
|
73) current_weather="🌨️ Moderate Snowfall" ;;
|
||||||
75) current_weather="🌨️ Heavy snow fall" ;;
|
75) current_weather="🌨️ Heavy Snowfall" ;;
|
||||||
77) current_weather="🌨️ Snow grains" ;;
|
77) current_weather="❄️ Snow Grains" ;;
|
||||||
80) current_weather="🌧️ Slight rain showers" ;;
|
80) current_weather="🌧️🚿 Slight Rain Showers" ;;
|
||||||
81) current_weather="🌧️ Moderate rain showers" ;;
|
81) current_weather="🌧️🚿 Moderate Rain Showers" ;;
|
||||||
82) current_weather="🌧️ Violent rain showers" ;;
|
82) current_weather="🌧️🚿 Violent Rain Showers" ;;
|
||||||
85) current_weather="🌨️ Slight nnow showers" ;;
|
85) current_weather="🌨️❄️ Slight Snow Showers" ;;
|
||||||
86) current_weather="🌨️ Heavy snow showers" ;;
|
86) current_weather="🌨️❄️ Heavy Snow Showers" ;;
|
||||||
95) current_weather="⛈️ Slight thunderstorm" ;;
|
95) current_weather="⛈️ Slight Thunderstorm" ;;
|
||||||
96) current_weather="⛈️ Thunderstorm with slight hail" ;;
|
96) current_weather="⛈️🌨️ Thunderstorm with Slight Hail" ;;
|
||||||
99) current_weather="⛈️ Thunderstorm with heavy hail" ;;
|
99) current_weather="⛈️🌨️ Thunderstorm with Heavy Hail" ;;
|
||||||
*) current_weather="🌐 Weather condition not recognized" ;;
|
*) current_weather="🌐 Weather Condition Not Recognized" ;;
|
||||||
esac
|
esac
|
||||||
echo Weather checked
|
echo Weather checked
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user