# How to use openweathermap in cesium?

**URL:** <https://community.cesium.com/t/how-to-use-openweathermap-in-cesium/10411>\
**Category:** CesiumJS\
**Created:** [July 31, 2020, 8:24am UTC](https://community.cesium.com/t/how-to-use-openweathermap-in-cesium/10411 "2020-07-31T08:24:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_hong](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/robin_hong/32/2814_2.png) [@Robin\_hong](https://community.cesium.com/u/Robin_hong)\
**Post date:** [July 31, 2020, 8:24am UTC](https://community.cesium.com/t/how-to-use-openweathermap-in-cesium/10411/1 "2020-07-31T08:24:14Z")

</div>

Hi, I want to use the openweathermap in cesium. But i could not load out . Below is my code

```
    var imageryLayers = viewer.imageryLayers;

     imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider({

         url: 'http://maps.openweathermap.org/maps/2.0/weather/TA2/{z}/{x}/{y}?date=1527811200&opacity=0.9&fill_bound=true&appid=mykey',

        layer: 'Clouds',

         style: 'default',

         format: 'image/png',

         tileMatrixSetID: 'a',

         maximumLevel: 18,

         proxy: new Cesium.DefaultProxy('/proxy/')

     }));
```

---

<div class="post-metadata">

**Author:** ![Scott\_Reynolds](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_reynolds/32/2014_2.png) [@Scott\_Reynolds](https://community.cesium.com/u/Scott_Reynolds)\
**Post date:** [July 31, 2020, 4:14pm UTC](https://community.cesium.com/t/how-to-use-openweathermap-in-cesium/10411/2 "2020-07-31T16:14:29Z")

</div>

I was able to get this to work using the 1.0 API (since it’s free).

 ![image](https://global.discourse-cdn.com/cesium/original/3X/4/4/44b544003ce7cf2272cd30ff1741cefb3fc784c8.png)

Hope that helps.

---

<div class="post-metadata">

**Author:** ![Robin\_hong](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/robin_hong/32/2814_2.png) [@Robin\_hong](https://community.cesium.com/u/Robin_hong)\
**Post date:** [August 1, 2020, 1:56am UTC](https://community.cesium.com/t/how-to-use-openweathermap-in-cesium/10411/3 "2020-08-01T01:56:12Z")

</div>

Thanks a lot Scott!!  
Working now !

Best regards.
