Script and Web Application for automatically analyzing fhem log-files (Forschungsprojekt Virtualisierung HS-Harz)
- Clone directory into local folder
- Go into the cloned folder and enter
npm install
- Go into project folder
- run
node lib/cli.js
for generating the chart - run
npm run serve-chart
for serving the generated chart on http://localhost:8000/
- Go into project folder
- run
npm run setup
for prefill the mongo-db with calculation-data - run
npm start
for serving the app on http://localhost:3100/
- Go into project folder
- run
npm run setup
for prefill the mongo-db with calculation-data - run
npm run watch
for serving the app on http://localhost:3100/
Usage: node lib/cli.js [options]
Options:
-V, --version output the version number
-i, --input-file <path> Add an input file, e.g. 'logs/Stck2-21122017-1415Uhr.txt'
-o, --output-file <path> Add an output file, e.g. 'index.html'
-d, --data-factor <number> Add an data-factor, e.g. 100
-f, --fetch-energy <boolean> Whether to fetch energy or power data
-m, --data-points-method <number> Which method to choose for the data points, see dataPointsHelper.js, default is useBlockAverage
-t, --timestamp-offset <number> Offset for converting all timestamps
-h, --help output usage information
The Guideline for the current calculation schema can be found here (Permission has to be granted by owner!). Following calculation properties are arrays in the schema for selecting multiple measurements on the dashboard (real value will be calculated by the average):
- eComputerAlt
- eZeroClient