Config Server

Get and set values in the config server via the command line

Overview

The pocs config command offers some basic ways to interact with the mount, mostly to be used while testing or as a backup if something goes wrong.

Commands

get

Get a value from the configration. The values are separate by dot syntax, as explained in Getting and setting config entries.

(conda-pocs)  panoptes@panoptes ξ‚° pocs config get mount

{'brand': 'ioptron',
 'commands_file': 'ioptron/v310',
 'driver': 'panoptes.pocs.mount.ioptron.cem40',
 'model': 'cem40',
 'serial': {'baudrate': 115200, 'port': '/dev/ttyUSB0', 'timeout': 0.0},
 'settings': {'max_tracking_threshold': 99999,
              'min_tracking_threshold': 100,
              'non_sidereal_available': True,
              'park': {'dec_direction': 'north',
                       'dec_seconds': 15,
                       'ra_direction': 'west',
                       'ra_seconds': 15},
              'update_tracking': False}}


(conda-pocs)  panoptes@panoptes ξ‚° pocs config get mount.serial.port

'/dev/ttyUSB0'

set

Used for setting values. If successfully set, the key and value are returned.

setup

Runs the setup wizard.

restart

Restart the config (supervisorctrl) service. Use if values in config file have changed or if getting errors with the other commands.

Configuration

The config server is the config. 😏 See Configuration for details on setting up the configuration the first time.

Last updated