Skip to main content

A library and actor to communicate with an SDSS-V LVM Enclosure

Project description

lvmecp

Versions Code style: black Test Documentation Status Docker codecov

SDSS-V LVM Enclosure Control Package

Features

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdss_lvmecp-0.8.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

sdss_lvmecp-0.8.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file sdss_lvmecp-0.8.0.tar.gz.

File metadata

  • Download URL: sdss_lvmecp-0.8.0.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for sdss_lvmecp-0.8.0.tar.gz
Algorithm Hash digest
SHA256 be33fcde86c352dd0dd514f7ada69e29e35230461c641ef487ff145c81272144
MD5 756a9b58d5577c6da9f9dd7761ab257e
BLAKE2b-256 20aad0f7a5997a93a2d378718d6e217c88d7b3065c52cff49e2962c6542c662f

See more details on using hashes here.

File details

Details for the file sdss_lvmecp-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: sdss_lvmecp-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for sdss_lvmecp-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52334e35b53ba8fbf207edcc75508b8fe03f4276dc6c9df0fa31f9a0d2ee01e0
MD5 c643f5c622e816221cd866f6f831430c
BLAKE2b-256 32d3fa854d5c0356c900bc9fb2f9149251c5a3e0d6602219d4311b6cc78b1a2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page