1.0.1 • Published 10 years ago

tripping-octo-nemesis v1.0.1

Weekly downloads
4
License
WTFPL
Repository
github
Last release
10 years ago

tripping-octo-nemesis

Code Climate Build Status Dependency Status Coverage Status

I love choosing repo names from suggestions

Module to book stuff from 3t. Note that this does not use any "official" API, so you should use at your own risk.

Requirements

  • Node.js
  • npm

Setup

  • Install the required modules (npm install)
  • Copy the file default.config.yml to config.yml and run with node starter.js

If you want to use it as a module, you then

var octo = require('tripping-octo-nemesis');

Settings

You should look up what business unit you want to book. Other settings should be self-explanatory (Just remember that sunday = day 0 and saturday = day 6).

At the time of writing, these are the businessUnit codes:

  • 3t Rosten: 1
  • 3t Leangen: 2
  • 3t Steinkjer: 5
  • 3t Sluppen: 6

Run weekly with cron.

  • Edit your crontab (for example with crontab -e)
  • Add the following line (used for booking on fridays): 01 08 * * 5 cd /path/to/script && node starter.js > /dev/null

Contribute

Contributions are welcome, although I would be pleasantly surprised :)

Remember to run all tests with make test

Licence

WTFPL

1.0.1

10 years ago

1.0.0

10 years ago

0.1.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago