A library and actor to communicate with an SDSS-V LVM Enclosure
Project description
lvmecp
SDSS-V LVM Enclosure Control Package
Features
- CLU Actor based interface
- Supports DirectLogic 205 (Micro Modular PLC)
Prerequisite
Install Poetry by using PyPI.
$ pip install poetry
$ python create_setup.py
$ pip install -e .
Install RabbitMQ by using apt-get.
$ sudo apt-get install -y erlang
$ sudo apt-get install -y rabbitmq-server
$ sudo systemctl enable rabbitmq-server
$ sudo systemctl start rabbitmq-server
Install CLU by using PyPI.
$ pip install sdss-clu
Installation
Clone this repository.
$ git clone https://github.com/sdss/lvmecp
$ cd lvmecp
$ poetry install
Quick Start
Start the actor
Before you start the actor, you must have the PLC or simulator.
Start lvmecp
actor.
$ lvmecp start
In another terminal, type clu
and lvmecp ping
for test.
$ clu
lvmecp ping
07:41:22.636 lvmecp >
07:41:22.645 lvmecp : {
"text": "Pong."
}
Stop lvmecp
actor.
$ lvmecp stop
Example
In terminal which you are turning clu on, you can use the command for lvmecp.
$ clu
lvmecp help
13:05:25.386 lvmecp >
13:05:25.387 lvmecp : {
"help": [
"Usage: lvmecp [OPTIONS] COMMAND [ARGS]...",
"",
"Options:",
" --help Show this message and exit.",
"",
"Commands:",
" dome tasks for Dome",
" estop activate the emergency status.",
" get_schema Returns the schema of the actor as a JSON schema.",
" help Shows the help.",
" keyword Prints human-readable information about a keyword.",
" light tasks for lights",
" monitor return the status of HVAC system and air purge system.",
" ping Pings the actor.",
" telemetry return the status of the enclosure",
" version Reports the version."
]
}
lvmecp dome status
13:05:56.294 lvmecp >
13:05:56.295 lvmecp i {
"text": "checking the Dome"
}
13:05:56.302 lvmecp i {
"status": {
"Dome": "CLOSE"
}
}
13:05:56.302 lvmecp :
lvmecp dome move
13:06:21.701 lvmecp >
13:06:21.703 lvmecp i {
"text": "moving the Dome"
}
13:06:21.708 lvmecp i {
"status": {
"Dome": "OPEN"
}
}
13:06:21.709 lvmecp :
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sdss_lvmecp-0.8.4.tar.gz
.
File metadata
- Download URL: sdss_lvmecp-0.8.4.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33ed32103795ff3007226c690163126d3b2c86090efe4110070f0d2ab07a4ec7 |
|
MD5 | d9a3d42069b16129faada8bab1584018 |
|
BLAKE2b-256 | fe25cd1db055ac9cbdf9068f2e748410f29e52d6f2cfb9d9d8d8b0755bbdf9db |
Provenance
The following attestation bundles were made for sdss_lvmecp-0.8.4.tar.gz
:
Publisher:
release.yml
on sdss/lvmecp
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sdss_lvmecp-0.8.4.tar.gz
- Subject digest:
33ed32103795ff3007226c690163126d3b2c86090efe4110070f0d2ab07a4ec7
- Sigstore transparency entry: 146276610
- Sigstore integration time:
- Predicate type:
File details
Details for the file sdss_lvmecp-0.8.4-py3-none-any.whl
.
File metadata
- Download URL: sdss_lvmecp-0.8.4-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c0997a3e2d827fe907db62a4be3f0c03d11bd0b9bb7418f5a71482a893663c |
|
MD5 | 0e4f8342bf72cf91154729913e4c3be9 |
|
BLAKE2b-256 | d53c028f139f99bc5829c43a98bca73003ea633fd612d4d773d800e4cef5ffb6 |
Provenance
The following attestation bundles were made for sdss_lvmecp-0.8.4-py3-none-any.whl
:
Publisher:
release.yml
on sdss/lvmecp
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sdss_lvmecp-0.8.4-py3-none-any.whl
- Subject digest:
88c0997a3e2d827fe907db62a4be3f0c03d11bd0b9bb7418f5a71482a893663c
- Sigstore transparency entry: 146276612
- Sigstore integration time:
- Predicate type: