Bunch of scripts I use for my implementation of Hubot (called Jarvis).
- jarvis - hubot init script using forever (https://github.com/nodejitsu/forever) to make sure the process restarts if it dies
- openhab.coffee - plugin for interacting with OpenHAB (http://openhab.org) installation . This is what it can do currently:
-
hubot what is (openhab value)
Returns the value of (openhab value) -
hubot automation values matching (partial match)
Returns all the possible query options from the REST query matching (partial match), leave out the "matching..." part to return everything -
hubot graph me (openhab value) for (period)
Graphs the value of (openhab value) for (period). Period must be one of h,4h,8h,12h,D,3D,W,2W,M,2M,4M or Y -
hubot set value of (openhab value) to (value)
Sets the value of (openhab value) to (value) -
hubot when I say (x) I mean (y)
Allows for basic aliasing. For example:
hubot when I say the greenhouse temperature I mean GreenhouseTemperature
will make
hubot what is GreenhouseTemperature
or
hubot what is the greenhouse temperature
valid -
The following environment variables need to be set:
HUBOT_OPENHAB_INTERNAL_URL - the internal URL to use for openhab
HUBOT_OPENHAB_EXTERNAL_URL - the external URL to use for openhab
OPENHAB_USER - the auth user to use to access openhab
OPENHAB_PASSWORD - the auth user's password to use to access openhab
-
- rick.coffee - Some general debugging stuff