The ultimate Off the Grid Hubot companion.
hubot offthegrid list - Pulls a list of all Off the Grid locations
hubot offthegrid <location name> - Pulls today's hours and vendors for a given location
hubot offthegrid - Pulls today's hours and vendors for the configured location
If you don't want to supply a location to hubot offthegrid
every time, you can set up a default location. To do this, you'll need to get the name of the location you want to default to via hubot offthegrid list
Then supply that location name to hubot offthegrid id
.
Once you have that internal ID, set it to the HUBOT_OFF_THE_GRID_LOCATION_ID
environment variable, and the you can use hubot offthegrid
without passing in a location.
% heroku config:add HUBOT_OFF_THE_GRID_LOCATION_ID="38"
% export HUBOT_OFF_THE_GRID_LOCATION_ID="38"
- Edit
package.json
and addhubot-offthegrid
as a dependency. - Add
"hubot-offthegrid"
to yourexternal-scripts.json
file. npm install
- Reboot Hubot.
- Get hungry.