Skip to content

Commit

Permalink
Update icons.js to reflect current OpenWeathermap spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dodoradio committed Feb 12, 2023
1 parent 17e4a8d commit 09f979d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var iconNameByOwmCode = {
'602': 'ios-snow-outline',
'611': 'ios-snow-outline',
'612': 'ios-snow-outline',
'613': 'ios-snow-outline',
'615': 'ios-snow-outline',
'616': 'ios-snow-outline',
'620': 'ios-snow-outline',
Expand All @@ -50,25 +51,16 @@ var iconNameByOwmCode = {
'741': 'ios-cloudy-outline',
'751': 'ios-cloudy-outline',
'761': 'ios-cloudy-outline',
'762': 'ios-cloudy-outline',
'771': 'ios-cloudy-outline',
'781': 'ios-cloudy-outline',

'800': 'ios-sunny-outline',

'801': 'ios-partly-sunny-outline',
'802': 'ios-cloudy-outline',
'803': 'ios-cloudy-outline',
'804': 'ios-cloudy-outline',

'903': 'ios-snow-outline',
'904': 'ios-flame-outline',
'905': 'ios-sunny-outline',
'906': 'ios-snow-outline',

'950': 'ios-sunny-outline',
'951': 'ios-sunny-outline',
'952': 'ios-sunny-outline',
'953': 'ios-sunny-outline',
'954': 'ios-sunny-outline',
'955': 'ios-sunny-outline',
'956': 'ios-sunny-outline',
};

function getIconName(iconName) {
Expand Down

0 comments on commit 09f979d

Please sign in to comment.