NAME
Weathericon - deliver weather icons.
DESCRIPTION
Given a specific symbol number the correct weather icon is returned.
List over corresponding numbers and ids:
- 1 Sun
- 2 LightCloud
- 3 PartlyCloud
- 4 Cloud
- 5 LightRainSun
- 6 LightRainThunderSun
- 7 SleetSun
- 8 SnowSun
- 9 LightRain
- 10 Rain
- 11 RainThunder
- 12 Sleet
- 13 Snow
- 14 SnowThunder
- 15 Fog
- 20 SleetSunThunder
- 21 SnowSunThunder
- 22 LightRainThunder
- 23 SleetThunder
- 24 DrizzleThunderSun
- 25 RainThunderSun
- 26 LightSleetThunderSun
- 27 HeavySleetThunderSun
- 28 LightSnowThunderSun
- 29 HeavySnowThunderSun
- 30 DrizzleThunder
- 31 LightSleetThunder
- 32 HeavySleetThunder
- 33 LightSnowThunder
- 34 HeavySnowThunder
- 40 DrizzleSun
- 41 RainSun
- 42 LightSleetSun
- 43 HeavySleetSun
- 44 LightSnowSun
- 45 HeavysnowSun
- 46 Drizzle
- 47 LightSleet
- 48 HeavySleet
- 49 LightSnow
- 50 HeavySnow
Polar icons
Some symbol ids are used for indicating polar night. These ids are over the ordinary id + 100, the name are prefixed with Dark_. For instance, Dark_Sun is symbol id 101 (1+100). Some examples are listed underneath. This is available for the following ids: 101, 102, 103, 105, 106, 107, 108, 120, 121, 124, 125, 126, 127, 128, 129, 140, 141, 142, 143, 144 and 145.
- 101 Dark_Sun
- 102 Dark_LightCloud
- 103 Dark_PartlyCloud
- 129 Dark_HeavySnowThunderSun
It is also possible to use the regular icon numbers but add the 'is_polarnight' parameter.
Available
A list of available data may be retrieved using the 'available' action:
https://aa025kn2jhfvzrxns.api.met.no/weatherapi/weathericon/1.1/available
.
Restricted
No restriction on this product.
Parameters
- symbol -- which symbol number is wanted, mandatory
- content_type -- format of icon, mandatory
- is_night -- if moon-symbol is wanted, use is_night=1
- is_polarnight -- if polar night symbol is wanted, use is_polarnight=1
Sample request URLs:
https://aa025kn2jhfvzrxns.api.met.no/weatherapi/weathericon/1.1/?symbol=5&content_type=image/png
https://aa025kn2jhfvzrxns.api.met.no/weatherapi/weathericon/1.1/?symbol=7&is_night=1&content_type=image/png
https://aa025kn2jhfvzrxns.api.met.no/weatherapi/weathericon/1.1/?symbol=40&is_night=1&content_type=image/svg%2Bxml