2 Replies Latest reply on Oct 30, 2017 10:03 AM by giri RSS
    pwright Newbie

    How to access external data feed through javascript

    Hello,

     

    I have a thing created which feeds a live data feed into studio (just a python script i'm using for testing right now). I want to be able to access the value of this live data feed in javascript so I can manipulate it for several purposes (alter the text of a widget based on the data being between a certain range, apply math to the raw value to make it within a certain range, etc.).

     

    I've been trying code like the following, which doesn't work:

     

    $scope.app.mdl['DataTest'].svc['MockData1'];

    $scope.app.mdl['DataTest'].data.current['MockData1'];


    suggestions?