This is the code in the function:
var text = $scope.app.view['Home'].wdg['textInput-1']['text'];
var temperature = (9/5)*(response.data.main.temp - 273) + 32;
$scope.app.view['Home'].wdg['gauge-2']['value'] = temperature;
Works when running in preview on Thingworx studio. Does not work when running in the View App. The view app I have tried with Cellular data and the wifi network.