Skip to content

Instantly share code, notes, and snippets.

@johnc219
Created June 13, 2016 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnc219/247d55f3ca0c3987ebd3ec417571993d to your computer and use it in GitHub Desktop.
Save johnc219/247d55f3ca0c3987ebd3ec417571993d to your computer and use it in GitHub Desktop.
// get supplied command line args
var args = require('./args');
// the BellBot config
var config = {
proto: args.proto || 'http',
addr: Number(args.port) || 3000,
url: '',
startAt: Number(args.start) || 70,
strikeAt: Number(args.strike) || 95,
servoPin: Number(args.pin) || 8,
servoDelay: Number(args.sdelay) || 500,
processDelay: Number(args.pdelay) || 1000,
key: args.key || null
};
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment