Naval Pilgrim's Mayflower
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

bleach-log-server

1.1.0 • Public • Published

bleach-log-server

keep track of bleach levels for a hot tub or a pool

usage

bleach-log-server OPTIONS

  Keep track of bleach levels in a hot tub or a pool.
  This command starts the server.

  -d --datadir  Store log data in this directory. Default: ./bleach-data
  -p --port     Listen for incoming http connections on this port.
  -u --uid      Drop permissions to this uid.
  -g --gid      Drop permissions to this gid.

  To log 2 cups of bleach, send a POST to /save

    $ curl -X POST -d cups=2 http://localhost:5000/save
    ok

http routes

POST /save

Send a url-encoded POST message with a number of cups of bleach to log.

GET /data

Return a

install

With npm do:

npm install -g bleach-log-server

license

MIT

install

npm i bleach-log-server

Downloadsweekly downloads

1

version

1.1.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar