htm-community / nupic.visualizations

Web application for interactive graphs, anomaly highlighting and online monitoring.
MIT License
17 stars 11 forks source link

NuPIC Visualizations

Join the chat at https://gitter.im/nupic-community/nupic.visualizations

Work with NuPIC results interactively in a nice web UI. This app is designed to consume and render CSV files output by NuPIC, but it can read any CSV file with numerical data that has a timestamp as one of its fields.

NuPIC Visualizations screenshot

Requirements

  • The data in the timestamp field can be either a number or a string in date-time format. To ensure that the app can parse the date, it is recommended that your timestamps conform to one of the following formats:
  • ISO 8601: yyyy-mm-dd[T[hh[:mm[:ss[:ms]]]]]
  • yyyy-mm-dd [hh[:mm[:ss[:ms]]]] (Like ISO 8601, but with a space separator for time instead of "T")
  • mm/dd/yyyy [hh[:mm[:ss[:ms]]]]

Launch

Online

To try this app instantly, head to the online version at https://nupic-visualizations.firebaseapp.com/
You can use an OPF file as an example.

Locally

Or you can run locally, without a need for internet connection.

First, get a copy of this repo, you can download a ZIP from Github, or clone:

git clone https://github.com/nupic-community/nupic.visualizations

Then go the the build/ directory:

cd nupic.visualizations/build/

If you have Python installed, you can launch a simple Web server with:

python -m SimpleHTTPServer 8080

Open your web browser and go to http://localhost:8080

There are demo files in examples/ for NuPIC OPF, NAB and generic CSV files.

Usage

Features

The goals of this project are:

Develop

If you are interested in developing, or modifying the code, follow these instructions:

Deploy

The build/ directory contains all the static files needed to deploy this application. You can use any static file hosting service. For example, here are instructions for deploying to firebase. You can see this sample application deployed at https://nupic-visualizations.firebaseapp.com/ via Firebase.