1.0.6 • Published 9 years ago

stormwatch v1.0.6

Weekly downloads
7
License
WTFPL
Repository
github
Last release
9 years ago

StormWatchNodePlugin

Node.js StormWatch plugin. Build Status

Installation

npm install stormwatch --save

Usage

  1. Download StormWatch app, register, add a service and obtain an API Key (soon)

  2. Use the server plugin as follows:

var stormWatch = require('stormwatch');

var stormWatchClient = stormWatch(locationCode, apiKey, pingInterval, serviceName);

var answerHeartbeat = function (err) {
    // Do something clever, check other subsystems...
	if(err) return console.log(err.message);
    stormWatchEUW.heartbeat(answerHeartbeat); //Send another heartbeat
}

stormWatchClient.handshake(function(err){
	if(err) return console.log(err.message);
	console.log('Successfully registered with StormWatch!');
	stormWatchClient.heartbeat(answerHeartbeat);
});
1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.0

9 years ago