0.0.8 • Published 6 years ago
dc_eventlog v0.0.8
dc_eventlog
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]
Option | Description |
---|---|
--host host | Connect to host:443 instead of the default localhost:443 . |
--host host: port | Connect to host: port instead of the default localhost:443 . |
--noretry | Do not try to reconnect to the web socket after the connection is closed. |
-r --raw | Do not parse events, output raw event data. |
-s --service | Do 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