0.0.8 • Published 6 years ago

dc_eventlog v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

dc_eventlog

npm npm

Logger for deCONZ events

Copyright © 2017 Erik Baauw. All rights reserved.

This simple logger connects to the web socket where deCONZ issues push notification events and logs the events with a timestamp on the standard output.

Usage

dc_eventlog --noretry --service--host host:port]

OptionDescription
--host hostConnect to host:443 instead of the default localhost:443.
--host host:portConnect to host:port instead of the default localhost:443.
--noretryDo not try to reconnect to the web socket after the connection is closed.
-r --rawDo not parse events, output raw event data.
-s --serviceDo not output timestamps. Useful when syslog already provides timestamps when running dc_eventlog as a service.

Installation

Make sure the Node.js JavaScript runtime node, is installed, including the npm package manager.

To install dc_eventlog just issue sudo npm -g install dc_eventlog.

To run dc_eventlog as a system service on a Raspberry Pi, create a service file dc_event.service in /etc/systemd/system:

[Unit]
Description=deCONZ: web socket event logger
After=deconz-gui.service

[Service]
User=pi
ExecStart=/usr/bin/dc_eventlog -s
Restart=on-failure
StartLimitInterval=60

[Install]
WantedBy=multi-user.target
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.4-0

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago