Im trying to create a LIVE weather app using liquid in Business Catalyst.
I can get the live data from http://openweathermap.org/
using this: http://api.openweathermap.org/data/2.5/weather?q=dubbo
And i thought i could insert it into an include using:
{module_json json="http://api.openweathermap.org/data/2.5/weather?q=dubbo" template="/_System/Includes/tpl/current.tpl"}
Im just not sure what exactly to call in the template. Am i going about this all wrong?
I know there has to be a way to call the Json data not sure if the tag supports external urls...
Please help and if you know how you would call the data that would be great too.
No, the module_json
tag does not support accessing external JSON data. When attempting to use it in that way, it will only render:
<!-- No input data found -->