3 Replies Latest reply on Dec 19, 2017 11:55 PM by stevegr RSS
    hkim-5 Newbie

    How can I use json file in Thingworx Composer..?

    Hello, I'm Sol


    I have some questions. I wanna use Json file in Thingworx but I don't know how to use in Thingworx Composer.


    $subscriptionKey = '440dd540-8db1-3f5d-806e-9b15d5b4bece';


    function getWeather() {

    $subscriptionKey = '440dd540-8db1-3f5d-806e-9b15d5b4bece';


    $(function() {

         var params = {

                version: 1,

                city : "서울",

                county : "강남구",

                village : "도곡동"




    url: "http://apis.skplanetx.com/weather/current/minutely?" + $.param(params),

    beforeSend: function(xhrObj){

    // Request headers



    type: "GET",

    // Request body

    data: "{body}",


    .done(function(data) {







    .fail(function() {






    that is my jason file code and I wanna print this code in thingworx.





    <!DOCTYPE html>



    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>weather info</title>







        <script src="https://code.jquery.com/jquery-1.12.4.js"></script>

        <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

    <script type="text/javascript" src="test.js"></script>


    <div class="result">

    <p id="resultInfo">ggg </p>


        <script type="test/javascript">








    That information is forecast information from south Korea.

    Can I connect this kind of code with Thingworx? I just need to print weather values in Thing worx.