https://github.com/attpc/attpc_sentry

A HTTP server to monitor the status of AT-TPC DAQ workstaions

https://github.com/attpc/attpc_sentry

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

A HTTP server to monitor the status of AT-TPC DAQ workstaions

Basic Info
  • Host: GitHub
  • Owner: ATTPC
  • Language: Rust
  • Default Branch: main
  • Size: 86.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

attpc_sentry

CI

A HTTP server to monitor the status of the AT-TPC DAQ workstations and organize run datafiles.

Installation

The only external dependency of attpc_sentry is the Rust toolchain. Installation instructions for the Rust toolchain can be found here.

Then to install attpcsentry dowload this repository using `git clone https://github.com/gwm17/attpcsentry.git`. After the repository is dowloaded move to the repository root and run the following command:

bash cargo run --release

This will build and run the attpc_sentry program.

Server API

The sentry server has three endpoints

  • /status: query the status of data on the workstation
  • /catalog: move the DAQ run datafiles to a run-specific location

All endpoints return the status as the following JSON:

json { "disk": "some_disk", "process": "some_process", "data_path": "/some/path/", "data_written_gb": 0.0, "data_path_files": 0, "disk_avail_gb": 0.0, "disk_total_gb": 0.0 }

Status Route

The status route checks the status of the dataRouter/DataExporter process, the amount of data written (since last check). This route is accessed using an HTTP GET request.

Catalog Route

This route moves DAQ data files to a experiment/run specific location This route is accessed using HTTP POST request with the following JSON data

json { "experiment": "some_experiment", "run_number": 0, }

Environment variables

The following variables should be defined in a .env file at the location from which attpc_sentry should be run.

bash DISK_NAME="Macintosh HD" DATA_PATH="/Users/attpc/Data/mm#" PROCESS_NAME="DataExporter"

Extra scripts

Also included in the repo are two scripts: attpc.sentry.plist and mmStartSentry.sh These are used in the AT-TPC DAQ workstations to autostart the sentry with the other DAQ tools. Generally they won't need modified.

Owner

  • Name: AT-TPC Group
  • Login: ATTPC
  • Kind: organization

GitHub Events

Total
  • Delete event: 7
  • Issue comment event: 7
  • Push event: 17
  • Pull request event: 18
  • Create event: 12
Last Year
  • Delete event: 7
  • Issue comment event: 7
  • Push event: 17
  • Pull request event: 18
  • Create event: 12

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 12
  • Average time to close issues: N/A
  • Average time to close pull requests: 19 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.5
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 12
Past Year
  • Issues: 0
  • Pull requests: 12
  • Average time to close issues: N/A
  • Average time to close pull requests: 19 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.5
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 12
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (12)
Top Labels
Issue Labels
Pull Request Labels
dependencies (12) rust (5)

Dependencies

Cargo.lock cargo
  • 121 dependencies
Cargo.toml cargo