skynet
Welcome to the Logima measurement server!
Logima skynet is a robust, flexible and fast API backend for storing and retrieving timebased measurement series.
This measurement server instance currently stores the environmental sensor data of the Logima office.
The git repository of the source code is hosted at Bitbucket.
Explore the code
Head over to Jira for bugtracking and open tasks.
Start working
Store Measurements
You can submit new measurement results to the measurement server via the API.
Retrieve Measurements
You can fetch measurement results from the measurement server viat the API.
// Make sure your token has the 'write-measurements' scope
var accessToken = 'eyJ0eXAiOiJKV1Qi...';

$.ajax({
    type: 'POST',
    url: '/api/measurements',
    headers: { 'Authorization':'Bearer ' + accessToken },
    contentType: 'application/json; charset=utf-8',
    dataType: 'json',    
    data: { 
        'sensor':'AA',
        'unit':'temperature',
        'result':22.4
    },
});
// Make sure your token has the 'read-measurements' scope
var accessToken = 'eyJ0eXAiOiJKV1Qi...';

$.support.cors = true;

$.ajax({
	type: 'GET',
	url: '/api/sensors/AA/units/temperature/measurements',
	accepts: { text: 'application/json' },
	headers: { 'Authorization':'Bearer ' + accessToken },
	crossDomain : true,
	cache: false,
	dataType: 'json'
});
Developed and maintained by michal.jacko@logima.de.
Laravel v8.83.27 (PHP v8.1.29)