lobo-irl
Version:
Queries live data from the Land/Ocean Biogeochemical Observatory sensors operating in the Indian River Lagoon.
28 lines (25 loc) • 733 B
JavaScript
/**************************************************
* Lobo - Indian River Lagoon Client
* Written by Steven Hunt
* MIT License
**************************************************/
var _ = require('lodash'),
utils = require('./utils'),
config = utils.loadConfig();
/**
* @private
* Gets a list of supported measurements.
* @returns {Array} A list of measurements.
*/
exports.getMeasurements = function () {
return _.keys(config.measurements);
};
/**
* @private
* Gets detailed information about a specific measurement.
* @param key The measurement name.
* @returns {Object} Information about the measurement.
*/
exports.getMeasurement = function (key) {
return config.measurements[key] || null;
};