Giter Site home page Giter Site logo

sharp-replay's Introduction

sharp-replay

sharp-replay is a kind of replay tool which is in pure Javascript. It could send Prism message and simulate data streaming, recomputation to the Prism platform.

Features

  • Well Creation
  • Job Creation
  • Job Setup
  • Channel data streaming
  • Auto-Recomputation
  • Delete well by well Id
  • Delele wells by name like

Quick Start

Runtime

Node Npm
v12+ v6+

Install

# install pkg
npm i -g sharp-replay --registry=http://163.184.146.22/repo/

Run

sprt

By default, the tool will run infinitly with auto-recompution every 1 min, the recompution range would be random.The data source file would loop send message, it would go from begining if the data item at the end.

Auto create well and job, start streaming with recomputation (sprt)

Auto create well and job, start streaming without recomputation (sprt -nr)

Delete wells by well name like '-NodeJ-'

Parameters

Usage: sprt [options]

Options:

  • -v, --version (output the current version)
  • -p, --path <filepath> (Specify the channel data csv file path)
  • -w, --well <wellId> (Specify the well id to send)
  • -j, --job <jobId> (Specify the job id)
  • -d, --delete <wellId> (Delete a well by id)
  • -nr, --no-recompute (Send data without recomputation)
  • -c, --clean <wellName> (Clean wells by keykwords of well name, e.g "NodeJ")
  • -h, --help (display help for command)

How to switch environment

Windows

set targetEnv=demohelios
set consulUri=https://xxx.xxx.xxx/
sprt

Linux

targetEnv=demohelios
consulUri=https://xxx.xxx.xxx/
sprt

License

MIT

sharp-replay's People

Contributors

czhang13 avatar zhangchenyue avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.