You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- user metrics folder!
- (total log disk space / visible data disk space) in graph status
- server uptime on terminal page
- new dependency: merge package (get latest packages.json and run `npm
update` to get it)
- updated nedb to 1.8, json5 to 0.5, request to 2.75, console-stamp to
0.2.4
- removed old neDB upgrade script (gateway_NeDB-2-Binary.js)
SMB1_ON : {name:'B1',regexp:/(BTN1|SSR|RLY)\:1/i,value:'ON',pin:1,graph:1,logValue:1,graphOptions: {/* already defined above for 'B1', no need to repeat */}},
The purpose of this folder is to have a place to put custom user definitions for metrics, motes, events, custom functions and variables etc., without the need to directly edit the main metrics.js which might get overwritten during an upgrade.
6
+
7
+
###How to use:
8
+
- place your custom metrics/motes/events in this folder
9
+
- whatever objects you define here will be merged with the contents of metrics.js
10
+
- if a matching metric/mote/event is redefined in a file this folder, it will override the default from metrics.js, that also means that if duplicates are found, the last one in the last file (alphabetically) will be the winner
11
+
- follow the same definition/syntax pattern as in main metrics.js definition file
12
+
- each metric could be broken into its own separate file or everything could be in a single file just like in metrics.js, it all gets merged into the main `metricsDef` object
13
+
- a basic example is provided as a starting point in _example.js
/*this sample metric will override that which is already defined in main metrics.js*/
2
+
/*you can redefine defaults or write your own new custom metrics in 1 or more files in this folder, separate them as you'd like - they all get merged together when the app loads*/
3
+
exports.metrics={
4
+
V : {name:'V',regexp:/(?:V?BAT|VOLTS|V)\:([\d\.]+)v?/i,value:'',unit:'v',graph:1,graphOptions:{legendLbl:'VOLTZ!',lines: {fill:true,lineWidth:1},yaxis: {min: 0,autoscaleMargin: 0.5}}}
0 commit comments