LogoLogo
  • Project PANOPTES
  • Overview
    • 🤷‍♀️FAQ
    • 🤖PANOPTES Units
    • ☎️Contact
  • Building Docs
    • 🔭Start Building!
      • Building Overview
      • Safety Guide
      • Parts Listing
    • 🛠️Hardware
      • Control Box
        • Electronics
        • Hardware and Assembly
        • Network Setup
        • Power Distribution
      • Camera Box
        • Camera Setup
        • Electronics
        • Hardware and Assembly
        • 4 Camera Design
      • Mount and Pier
        • Pier
          • Fabrication
          • Assembly
        • Mount
          • Assembly
          • Saddle Plate Rotation
          • Balancing
      • Weather Station
    • 👩‍💻Software
      • Installation
        • Installing OS
        • Installing POCS
        • Installing PowerBoard
      • Configuration
      • POCS Command Line
        • Mount
        • Config Server
        • PowerBoard
        • Weather Station
      • Appendix
        • SSH Access
        • Command Line & The Shell
        • tmux / byobu
        • Services
    • 📋Testing
    • 👷‍♀️Deployment
      • Site Planning
      • Camera Focus
      • Polar Alignment
        • Overview
        • Drift Method
        • Procedure
          • Find Misalignment
          • Fix Misalignment
    • 🪐Operation
      • Automatic Operation
      • Manual Operation
  • Science
    • 📊Data
Powered by GitBook
LogoLogo

Links

  • Forum
  • GitHub
  • Contact

Site

  • Getting Started
  • Teams
  • Data

2023 Project PANOPTES

On this page
  • Overview
  • Commands
  • get
  • set
  • setup
  • restart
  • Configuration
  1. Building Docs
  2. Software
  3. POCS Command Line

Config Server

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

PreviousMountNextPowerBoard

Last updated 1 year ago

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 .

(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.

(conda-pocs)  panoptes@panoptes  pocs config set mount.serial.port "/dev/ttyUSB0"

{'mount.serial.port': '/dev/ttyUSB0'}

setup

Runs the setup wizard.

(conda-pocs)  panoptes@panoptes  pocs config setup

Setting up configuration for your PANOPTES unit.
This will overwrite any existing configuration. Proceed? [y/N]: y
Enter the base directory for POCS [/home/panoptes/pocs]: 
Enter the user-friendly name for this unit [Generic PANOPTES Unit]: Alcyone
Enter the PANOPTES ID for this unit. If you don't have one yet just use the default. [PAN000]: PAN021
Enter the latitude for this unit, e.g. "19.5 deg" [19.54 deg]: 
Enter the longitude for this unit, e.g. "-154.12 deg" [-155.58 deg]: 
Enter the elevation for this unit. Use " ft" or " m" for units, e.g. "3400 m" or "12000 ft" [3400.0 m]: 
Enter the timezone for this unit [Pacific/Honolulu]: 
Enter the GMT offset for this unit [-600]: 

restart

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

(conda-pocs)  panoptes@panoptes  pocs config restart

Configuration

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

👩‍💻
😏
Getting and setting config entries