Skip to content

Commit

Permalink
Fix path of url weather icons
Browse files Browse the repository at this point in the history
  • Loading branch information
lejubila committed Jul 16, 2022
1 parent 3d0d360 commit 10045d5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.6.4 - 03/10/2021
- Fix path of url weather icons

# 0.6.4 - 03/10/2021
- Add support for sensor: moisture, temperature, fertility, illuminance
- Add command line: sensor_status, sensor_status_all, sensor_status_set
Expand Down
36 changes: 18 additions & 18 deletions drv/openweathermap/common.include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@ function drv_openweathermap_get_ico {

declare -A w

w["01d"]="http://icons.wxug.com/i/c/k/clear.gif"
w["01n"]="http://icons.wxug.com/i/c/k/nt_clear.gif"
w["02d"]="http://icons.wxug.com/i/c/k/partlycloudy.gif"
w["02n"]="http://icons.wxug.com/i/c/k/nt_partlycloudy.gif"
w["03d"]="http://icons.wxug.com/i/c/k/cloudy.gif"
w["03n"]="http://icons.wxug.com/i/c/k/nt_cloudy.gif"
w["04d"]="http://icons.wxug.com/i/c/k/cloudy.gif"
w["04n"]="http://icons.wxug.com/i/c/k/nt_cloudy.gif"
w["09d"]="http://icons.wxug.com/i/c/k/sleet.gif"
w["09n"]="http://icons.wxug.com/i/c/k/nt_sleet.gif"
w["10d"]="http://icons.wxug.com/i/c/k/rain.gif"
w["10n"]="http://icons.wxug.com/i/c/k/nt_rain.gif"
w["11d"]="http://icons.wxug.com/i/c/k/tstorms.gif"
w["11n"]="http://icons.wxug.com/i/c/k/nt_tstorms.gif"
w["13d"]="http://icons.wxug.com/i/c/k/snow.gif"
w["13n"]="http://icons.wxug.com/i/c/k/nt_snow.gif"
w["50d"]="http://icons.wxug.com/i/c/k/fog.gif"
w["50n"]="http://icons.wxug.com/i/c/k/nt_fog.gif"
w["01d"]="http://www.wunderground.com/static/i/c/k/clear.gif"
w["01n"]="http://www.wunderground.com/static/i/c/k/nt_clear.gif"
w["02d"]="http://www.wunderground.com/static/i/c/k/partlycloudy.gif"
w["02n"]="http://www.wunderground.com/static/i/c/k/nt_partlycloudy.gif"
w["03d"]="http://www.wunderground.com/static/i/c/k/cloudy.gif"
w["03n"]="http://www.wunderground.com/static/i/c/k/nt_cloudy.gif"
w["04d"]="http://www.wunderground.com/static/i/c/k/cloudy.gif"
w["04n"]="http://www.wunderground.com/static/i/c/k/nt_cloudy.gif"
w["09d"]="http://www.wunderground.com/static/i/c/k/sleet.gif"
w["09n"]="http://www.wunderground.com/static/i/c/k/nt_sleet.gif"
w["10d"]="http://www.wunderground.com/static/i/c/k/rain.gif"
w["10n"]="http://www.wunderground.com/static/i/c/k/nt_rain.gif"
w["11d"]="http://www.wunderground.com/static/i/c/k/tstorms.gif"
w["11n"]="http://www.wunderground.com/static/i/c/k/nt_tstorms.gif"
w["13d"]="http://www.wunderground.com/static/i/c/k/snow.gif"
w["13n"]="http://www.wunderground.com/static/i/c/k/nt_snow.gif"
w["50d"]="http://www.wunderground.com/static/i/c/k/fog.gif"
w["50n"]="http://www.wunderground.com/static/i/c/k/nt_fog.gif"

local ico=${w[$1]}

Expand Down
2 changes: 1 addition & 1 deletion piGarden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ function debug2 {

VERSION=0
SUB_VERSION=6
RELEASE_VERSION=4
RELEASE_VERSION=5

DIR_SCRIPT=`dirname $0`
NAME_SCRIPT=${0##*/}
Expand Down

0 comments on commit 10045d5

Please sign in to comment.