Custom APP access to trends - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11) +--- Thread: Custom APP access to trends (/showthread.php?tid=3495) |
Custom APP access to trends - Smeagol - 01.08.2021 Hi, When building a custom app, is it possible to access the trend log data? This is so I can create my visualization entirely custom with angular and use the trend log data in a chart. I have captured a call made by the trend log app (via chrome dev tools) and recreated such a request. The endpoint is: 'http://IPLM/scada-vis/trends/fetch'. It appears to be a POST request with Form Data. I have set the basic auth header and all looks identical, still i get a 404. Is there not an easier way to access trend data from outside the LM? Kind regards! RE: Custom APP access to trends - admin - 02.08.2021 You are probably missing the "X-Requested-With: XMLHttpRequest" header in your request. RE: Custom APP access to trends - Smeagol - 04.08.2021 (02.08.2021, 07:18)admin Wrote: You are probably missing the "X-Requested-With: XMLHttpRequest" header in your request. Wow that could have eluded me for days! The addition of this header indeed led me on the right path. I have been able to get the data via postman. Next step will be via angular, but that should not be a problem. Thanks! |