Giter Site home page Giter Site logo

hic's Introduction

HIC - GE Proficy Historian Command Line Query Tool

hic.exe is a command line tool to query sensor data from the GE Proficy Historian.

Directory Structure

/deps

This folder contains the GE Proficy Historian Client SDK assemblies. The version of the client SDK assembly must match that of the GE Historian server.

/src

This folder contains the C# hic.exe source files.

/exe

This folder contains hic executables for different versions of the GE Proficy Historian.

Building the Module

To build the module, open up the solution in Visual Studio and run the build command.

Running the module

Usage:

hic <options>
Options:
        --server <server dns or environment variable>
        --user <user name or environment variable>
        --psw <password or environment variable>
        --tags <tag names>
        --start <start time>
        --end <end time>
        --samplingMode <CurrentValue | Interpolated | Trend | RawByTime | RawByNumber | Calculated | Lab | InterpolatedToRaw | TrendToRaw | LabToRaw | RawByFilterToggling | Trend2 | TrendToRaw2>
        --calculationMode <Average | StandardDeviation | Total | Minimum | Maximum | Count | RawAverage | RawStandardDeviation | RawTotal | MinimumTime | MaximumTime | TimeGood | StateCount | StateTime | OPCAnd | OPCOr | FirstRawValue | FirstRawTime | LastRawValue | LastRawTime | TagStats>
        --intervalMicroseconds <sample interval in 1/1000000 seconds>
        [--numberOfSamples <number of samples>]
        [--out <output csv file>]

Parameters can also be supplied as enviroment variables - just specify the name of the variable as the value of the command line option. This is useful to avoid hardcoded credentials in scripts.

Examples:

Get average values:

hic --server HOSTNAME --user USERNAME --psw PASSWORD --tags SOME_TAG_001,SOME_TAG_002 --start 2017-05-21T00:00:00Z --end 2017-05-31T00:00:00Z --samplingMode Calculated --calculationMode Average --intervalMicroseconds 60000 --numberOfSamples 14400 --out out.txt --size 2147483647

Get current values

hic --server HOSTNAME --user USERNAME --psw PASSWORD --tags SOME_TAG_001,SOME_TAG_002 --samplingMode CurrentValue   --out out.txt --size 2147483647

hic's People

Contributors

henrikbulldog avatar

Stargazers

 avatar

Watchers

 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.