Cylon.js for APC UPS
Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT).
This repository contains the adaptor/driver to work with APC UPS. It communicates over apcupsd daemon. It can be used to receive current APC power consumption, raise events on power lost etc.
[place for badges]
How to Install
-
Plug your APC UPS data cable into computer and install apcupsd daemon:
$ apt-get install apcupsd $ edit /etc/apcupsd/apcupsd.conf $ service apcupsd start
-
Ensure binary and log files are exists:
/sbin/apcaccess
,/var/log/apcupsd.events
-
Install cylon.js with APC support:
$ npm install cylon cylon-apcupsd
How to Use
'use strict';var Cylon = config = ; Cylon; Cylon;Cylonstart;
Documentation
Nope, sorry. Launch example and point your browser to http://127.0.0.1:3000
- you will see all available methods and events. Also, please read official documentation on cylon.js. Good luck.
License
Copyright (c) 2015. Licensed under the Apache 2.0 license.