HI
Can I create a listener for RSS json. I want to get a json in real time and put it into a panel.
I saw here is a way to put a json URL into dashboard, and it worked. but it must push a button to trigger it. The only way I thought is to create a time event, and trigger it by the time change. So I wonder if listener would be more effective
Parsing a local JSON file in Dashboard to get values for parameters
here is my way:
params.setValue('time', 0, event.getDisplay()); function callback(resultStr) { if (resultStr != null) { var json = JSON.parse(resultStr); var back = JSON.stringify(json); //ogscript.debug(back); params.setValue('dataOutput',0,back); } } ogscript.asyncPost(params.getValue('URL', 0), null, callback); ogscript.getTimerManager().getTimer('time').startTimer(true); ogscript.getTimerManager().getTimer('time').stopTimer(true); params.setValue('dataOutput',0,'');