Git Product home page Git Product logo

weblogclient's Introduction

WebLogClient

WebLogClient is a front-end package to display log records in an easy to read table format. The client requests and receives information from the required WebLog program. WebLogClient uses http requests written in javascript with active webpage elements (ASP) to communicate with a server. Controllers programmed in Automation Studio have an intergrated web server included and enabled by default. This package is designed for Automation Studio, is not an official package, and is provided as-in under the GNU GPL v3.0 license.

WebLogClient sample table

Features

  • All WebLog features
    • Refresh
    • Seek backward (down)
    • Seek forward (up) requests
    • Filtering (planned)

Installation

  • Download and unarchive the WebLogClient package
  • Create two directies User\web\ in the Logical View of the Automation Studio project
  • Add the WebLogClient package to the web directory
    • This directory may be renamed, through the name will be used to access the web page
    • Example user directory for WebLogClient
  • Specify the user directory under installation settings
    • The installation settings are accessed once the project is built and prompted to download
    • User partition files
  • Add pre-build event to generate ASP data
    • PowerShell -ExecutionPolicy ByPass -File $(WIN32_AS_PROJECT_PATH)\Logical\User\web\log\initialize.ps1 $(WIN32_AS_PROJECT_PATH)
    • Access the CPU properties, under the Build Events tab, populate the Pre-Build Step with the command above
    • Pre-Build Step
  • Install the project and access the web page with <ip_address>/log
  • All directories User, web, log, may be renamed
    • Note the necessary changes to these installation steps when changing the names of the directories
    • The integrated web server's default root directory is web\, changing the client directory name will require the user to change the integrated web server's root directory path.

Customization

Modifications such as number of records (number of rows in table) can be made in the script.js and initialize.ps1 files.

  • script.js
    • numRecords (default 20) Number of records (table rows)
    • taskName (default "WebLog") Name of program in Automation Studio project
  • initialize.ps1
    • $RecordMax (default 20) Number of records (table rows)
    • $ProgramName (default "WebLog") Name of program in Automation Studio project
    • $ProjectPath (default "\Logical\User\web\log") Relative path in project to WebLogClient

Dependencies

  • WebLog
  • Integrated web server in Automation Studio project (enabled by default with root path web\)

Acknowledgements

weblogclient's People

Contributors

tmatijevich avatar

Stargazers

 avatar Artur Trzebunia avatar

Watchers

James Cloos avatar Artur Trzebunia 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.