Script for automatically analyzing fhem log-files (Forschungsprojekt Virtualisierung HS-Harz)
GPL-3.0 License
Script and Web Application for automatically analyzing fhem log-files (Forschungsprojekt Virtualisierung HS-Harz)
npm install
node lib/cli.js
for generating the chartnpm run serve-chart
for serving the generated chart on http://localhost:8000/
npm run setup
for prefill the mongo-db with calculation-datanpm start
for serving the app on http://localhost:3100/
npm run setup
for prefill the mongo-db with calculation-datanpm 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):