0.2.1 • Published 10 years ago

oml v0.2.1

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

OML Client for Node.js

NPM version Build Status

% npm install oml

An OML (client) module for node.js

Project status:

  • Expected to work

Not yet:

  • Completely stable APIs
  • Reading from environment variables
  • Supporting XML config files
  • Comprehensive tests
  • Measured test coverage
  • Comprehensive documentation
  • Known to be used in production (if anyone is using it in production, do let me know)

API

var oml = require('oml');

// Initialise module first
//
oml.init({appName: 'myApp'});

// Creating a measurement point called 'm1' 
// which will report the voltage of a specific generator
var m1 = oml.mp('foo', [['generator', oml.T.string], ['voltage', oml.T.double]]);

// Send a measurement every 1 second
var i = 0;
var step = 15 / 180;
setInterval(function() {
  m1('gen1', Math.sin(i));
  i += step
});

Check out the examples directory for more examples.

To get a full list of command line flags, start your application with the --oml-help flag.

License

MIT

0.2.1

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago