panoptes.pocs.utils.cli package¶
Submodules¶
panoptes.pocs.utils.cli.camera module¶
panoptes.pocs.utils.cli.config module¶
- class panoptes.pocs.utils.cli.config.HostInfo(*, host: str = '127.0.0.1', port: int = 6563, verbose: bool = False)[source]¶
Bases:
BaseModel
Metadata for the Config Server
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- property url¶
- panoptes.pocs.utils.cli.config.get_value(key: str | None = <typer.models.ArgumentInfo object>, parse: bool = <typer.models.OptionInfo object>)[source]¶
Get an item from the config
- panoptes.pocs.utils.cli.config.restart()[source]¶
Restart the config server process via supervisorctl
panoptes.pocs.utils.cli.main module¶
panoptes.pocs.utils.cli.mount module¶
- panoptes.pocs.utils.cli.mount.get_target_coords(target: str, location: dict, is_comet: bool = False)[source]¶
Get the coordinates of the target.
- panoptes.pocs.utils.cli.mount.park_mount(confirm: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028410>] = False)[source]¶
Parks the mount.
Warning: This will move the mount to the park position but will not do any safety checking. Please make sure the mount is safe to park before running this command.
- panoptes.pocs.utils.cli.mount.search_for_home(confirm: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028a10>] = False)[source]¶
Searches for the mount home position.
Warning: This will move the mount to the home position but will not do any safety checking. Please make sure the mount is safe to move before running this command.
- panoptes.pocs.utils.cli.mount.set_park_position(confirm: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028380>] = False)[source]¶
Sets the park position.
Warning: This will move the mount to the park position but will not do any safety checking. Please make sure the mount is safe to move before running this command.
- panoptes.pocs.utils.cli.mount.setup_mount(confirm: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028ad0>] = False)[source]¶
Sets up the mount port, type, and firmware.
- panoptes.pocs.utils.cli.mount.slew_to_home(confirm: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028290>] = False)[source]¶
Slews the mount home position.
Warning: This will move the mount to the home position but will not do any safety checking. Please make sure the mount is safe to move before running this command.
- panoptes.pocs.utils.cli.mount.slew_to_target(confirm: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028200>] = False, target: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7fe7330286b0>] = None, comet: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7fe733028770>] = False)[source]¶
Slews the mount target position.
panoptes.pocs.utils.cli.network module¶
panoptes.pocs.utils.cli.notebook module¶
- panoptes.pocs.utils.cli.notebook.restart()[source]¶
Restart the jupyter server process via supervisorctl
panoptes.pocs.utils.cli.power module¶
panoptes.pocs.utils.cli.run module¶
panoptes.pocs.utils.cli.sensor module¶
- panoptes.pocs.utils.cli.sensor.monitor(sensor_name: str, endpoint: str | None = <typer.models.OptionInfo object>, store: bool = <typer.models.OptionInfo object>, read_frequency: int = <typer.models.OptionInfo object>, verbose: bool = False)[source]¶
Continuously read remote sensor, optionally storing results.
panoptes.pocs.utils.cli.weather module¶
- class panoptes.pocs.utils.cli.weather.HostInfo(host: str = 'localhost', port: str = '6566')[source]¶
Bases:
object
- property url¶
- panoptes.pocs.utils.cli.weather.common(context: ~typer.models.Context, host: str = <typer.models.OptionInfo object>, port: str = <typer.models.OptionInfo object>)[source]¶
- panoptes.pocs.utils.cli.weather.config(context: Context, page='config')[source]¶
Get the configuration of the weather station.