node-susi
This node.js module supports SUSI driver function from ADVANTECH platform.
Installation
$ npm install node-susi
Usage
This module uses the SUSI driver that requires access to /open/mem. Because of this, you will typically run node with admin privileges.
The first step is initialization(select) specifying the sensor or IO type . It should work for SUSI HWM function. If the initialization succeeds when you can call the read function to obtain the latest readout from the ADVANTECH platform. Readout values contains a temperature...etc property.
First Example
This sample queries the SUSI HWM CPU temperature and displays the result on the console.
var sensorLib = ;var cpuIndex = 0;var sensor ={var readout = sensorLib;console;;};sensor;
Reference for building from source
Standard node-gyp commands are used to build the module.
- Generate the configuration files
$ node-gyp configure
- Build the component
$ node-gyp build
References
[3]: SUSI Driver download (by platform)- http://support.advantech.com.tw/support/SearchResult.aspx?keyword=AIMB-215 B1&searchtabs= Utility,Software Utility,Software API