Project

General

Profile

Modules

Descriptions of the included Node.js Server Modules

base

The "base" module includes client-side JavaScript libraries of general interest, and server-side utility functions. Currently this consists of:

Server

base_module.js: GET_ReadLog (<server>/base/ReadLog, method GET): Reads the server.log file and returns the output. Clients may view the current server log, for remote troubleshooting.

Client

ReadServerLog.html: Performs the ReadLog call and displays the output in a textarea HTML element
AjaxPostAndGet.js: Wrapper around JQuery Ajax calls. Contains AjaxPost and AjaxGet methods, each returning a JSON-formatted response.
d3.v3.min.js: Static version of the d3.js library: d3js.org
jquery.min.js: Static version of the jquery library: api.jquery.com
MakeGraph.js: Encapsulated D3 strip-chart methods. Merely point the MakeGraph function at an HTML div and a GET_ URL, and it will do the rest!

artdaq-runcontrol

An implementation of a JavaScript RC GUI for the artdaq-demo. Includes system control, log viewing, and online monitoring.

artdaq-configuration

A Configuration Editor for ARTDAQ-runcontrol. Currently saves/loads XML files for a single-host ARTDAQ system only. Future versions will include database support and an "expert mode" for multi-host resource management.

iostat

Demonstration module which runs the 'iostat' command and returns the output

procstat

Demonstration module which reads /proc/stat and returns the output

JSRootIO

The JSRootIO package allows client-side JavaScript to read and view web-hosted ROOT files. Used by artdaq-runcontrol. Client-side code only.

runcommand

Demonstration module which accepts commands from the user, and presents a stdin input for further communication with the command. Sort of an extremely clunky terminal emulator.