Skip to content

pinussilvestrus/fpv-logfile-analyzer

Repository files navigation

fpv-logfile-analyzer

Script and Web Application for automatically analyzing fhem log-files (Forschungsprojekt Virtualisierung HS-Harz)

Build Status Greenkeeper badge FOSSA Status

image

Requirements

Setup

  1. Clone directory into local folder
  2. Go into the cloned folder and enter npm install

Run CLI

  1. Go into project folder
  2. run node lib/cli.js for generating the chart
  3. run npm run serve-chart for serving the generated chart on http://localhost:8000/

Run Web-App

  1. Go into project folder
  2. run npm run setup for prefill the mongo-db with calculation-data
  3. run npm start for serving the app on http://localhost:3100/

Develop

  1. Go into project folder
  2. run npm run setup for prefill the mongo-db with calculation-data
  3. run npm run watch for serving the app on http://localhost:3100/

Cli Usage

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

Calculation Schema

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

License

FOSSA Status

About

Script for automatically analyzing fhem log-files (Forschungsprojekt Virtualisierung HS-Harz)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •