# Openweather api

**URL:** <https://community.homey.app/t/openweather-api/30910>\
**Category:** Questions & Help\
**Created:** [June 6, 2020, 8:19am UTC](https://community.homey.app/t/openweather-api/30910 "2020-06-06T08:19:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 6, 2020, 8:19am UTC](https://community.homey.app/t/openweather-api/30910/1 "2020-06-06T08:19:48Z")

</div>

Trying to get the openweather api json files in variables.

This is the file:  
{“lat”:53.05,“lon”:5.67,“timezone”:“Europe/Amsterdam”,“timezone\_offset”:7200,“hourly”:[{“dt”:1591351200,“temp”:10.2,“feels\_like”:6.25,“pressure”:989,“humidity”:90,“dew\_point”:8.63,“clouds”:100,“wind\_speed”:5.2,“wind\_deg”:188,“weather”:[{“id”:501,“main”:“Rain”,“description”:“matige regen”,“icon”:“10d”}],“rain”:{“1h”:1.62}},{“dt”:1591354800,“temp”:10.34,“feels\_like”:6.89,“pressure”:989,“humidity”:88,“dew\_point”:8.44,“clouds”:100,“wind\_speed”:4.42,“wind\_deg”:208,“weather”:[{“id”:500,“main”:“Rain”,“description”:“lichte regen”,“icon”:“10d”}],“rain”:{“1h”:0.88}},{“dt”:1591358400,“temp”:11.45,“feels\_like”:7.88,“pressure”:989,“humidity”:82,“dew\_point”:8.49,“clouds”:100,“wind\_speed”:4.61,“wind\_deg”:222,“weather”:[{“id”:500,“main”:“Rain”,“description”:“lichte regen”,“icon”:“10d”}],“rain”:{“1h”:0.81}},{“dt”:1591362000,“temp”:12.31,“feels\_like”:9.16,“pressure”:989,“humidity”:79,“dew\_point”:8.78,“clouds”:100,“wind\_speed”:4.1,“wind\_deg”:242,“weather”:

This is what i tried. Any ideas for the right formula?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/8434ef6cc0aefeaeae214cc2e74100c303f291a9.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 6, 2020, 8:24am UTC](https://community.homey.app/t/openweather-api/30910/2 "2020-06-06T08:24:14Z")

</div>

`$.hourly[0].temp` (for the first hourly temperature, increase `0` for each one after that)

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 6, 2020, 8:36am UTC](https://community.homey.app/t/openweather-api/30910/3 "2020-06-06T08:36:52Z")

</div>

Robert you are fantastic. Everytime right on the spot. I can’t read json myself, each time trying, this time already for four hours long!.

It works
