js.dataplotter.dataPlotterService.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openmuc-webui-dataplotter Show documentation
Show all versions of openmuc-webui-dataplotter Show documentation
Data Plotter plug-in for the WebUI of the OpenMUC framework.
The newest version!
(function () {
var injectParams = ['$http', 'SETTINGS', 'RestServerAuthService'];
var DataPlotterService = function ($http, SETTINGS, RestServerAuthService) {
this.getConfigFile = function () {
var url = SETTINGS.DATAPLOTTER_CONFIG_URL;
var req = {
method: 'GET',
dataType: 'json',
url: url,
headers: {
'Authorization': RestServerAuthService.getAuthHash()
}
};
return $http(req).then(r => r.data.plotters);
};
};
DataPlotterService.$inject = injectParams;
angular.module('openmuc.dataplotter').service('DataPlotterService', DataPlotterService);
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy