Weather API - Example

               
by

Published Nov 20, 2019 at 10:11
Open In Editor


Makes a request to the MetaWeather API and displays the current temperature. We use a CORS-proxy here to overcome security-problems between HTTP and HTTPS.

To change the city run this in your browser: https://www.metaweather.com/api/location/search/?query=berlin, change the last part (city) and copy the woeid from the response to `Location ID.


Example for ops:
Ops.Cables.LoadingStatus_v2 Ops.Json.HttpRequest_v3 

Licence: Public Domain Dedication

Commercial use ok, freely remix, reuse this work without restriction, please credit the author.
 



More patches made by cables users





what is cables?


Cables is a tool for creating beautiful interactive content. With an easy to navigate interface and real time visuals, it allows for rapid prototyping and fast adjustments.

cables is free to use!

Register