SDSS-V LVM Enclosure Control Package
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
Clone this repository.
$ git clone https://github.com/sdss/lvmecp
$ cd lvmecp
$ poetry install
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
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 :