# st-logger

> SmartThings CLI event logger

Latest version **1.0.0** (published 2017-02-28) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install st-logger
pnpm add st-logger
yarn add st-logger
bun add st-logger
```

Provides the command `st-logger`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-28 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| Author | Dav Glass |
| Maintainers | davglass |

## Links

- npm: https://www.npmjs.com/package/st-logger
- npm.io page: https://npm.io/package/st-logger

## Dependencies (4)

- [ws](https://npm.io/package/ws.md) ^2.1.0
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [yargs](https://npm.io/package/yargs.md) ^6.6.0
- [request](https://npm.io/package/request.md) ^2.79.0

## Recent versions

- 1.0.0 (latest) — 2017-02-28

## README

SmartThings CLI Live Log Viewer
===============================

This is a simple CLI tool that queries the SmartThings "Live Logging" server
and prints some nice colorful logs.

This is a total hack and it uses some dirty tricks under the hood to make
the connection. It may work for a while and they may change their setup and 
break it. You can use this until they do :)

install
-------

Required Node.js 6+ and npm

`npm -g install st-logger`

usage
-----

If you don't pass `-u` or `-p` you will be prompted, this cli tool does not store the information,
it simply passes it along to ST for a login cookie and then uses that. The auth details and cookie are
lost once the cli exits.

    Streaming Live Logging from the SmartThings Graph API
    Usage: bin/st-logger -u <user> -p <pass>

    Options:
      --user, -u     Your SmartThings username (email)                      [string]
      --pass, -p     Your SmartThings password                              [string]
      --type, -t     Filter the event types: event,info,debug,trace (comma
                     seperated)         [string] [default: "event,info,debug,trace"]
      -h, --help     Show help                                             [boolean]
      -v, --version  Show version number                                   [boolean]

---
_Source: https://npm.io/package/st-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
