GithubHelp home page GithubHelp logo

desilamps's Introduction

DESI calibration system software tools (desilamps)

Tools for the DESI calibration system (illumination system on the upper ring + screen).

L. Le Guillou, last updated 2019-11-09

============================================================================================

desi-calib-ctrl: generic tool to control the calibration PDUs. Python script, using the snmptools (snmpget/snmpset/snmptable) which should be installed. It also needs the PDU MIB (in the ./mibs directory).


Examples:

Getting the status of all the outlets of box DESI-CALIB-02:

  desi-calib-ctrl DESI-CALIB-02 all

  PDU DESI-CALIB-02 [2]: LEDs                 [1] OFF
  PDU DESI-CALIB-02 [2]: Halogen-Blue-Filter  [2] OFF
  PDU DESI-CALIB-02 [2]: Halogen-No-Filter    [3] OFF
  PDU DESI-CALIB-02 [2]: Cd                   [4] OFF
  PDU DESI-CALIB-02 [2]: Xe                   [5] OFF
  PDU DESI-CALIB-02 [2]: Ne                   [6] OFF
  PDU DESI-CALIB-02 [2]: Kr                   [7] OFF
  PDU DESI-CALIB-02 [2]: HgAr                 [8] OFF

Getting a full status, with the currents and power usage:

  desi-calib-ctrl --full DESI-CALIB-02 all

  PDU DESI-CALIB-02 [2]: LEDs                [1] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  0 Wh
  PDU DESI-CALIB-02 [2]: Halogen-Blue-Filter [2] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy: 39 Wh
  PDU DESI-CALIB-02 [2]: Halogen-No-Filter   [3] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  6 Wh
  PDU DESI-CALIB-02 [2]: Cd                  [4] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  1 Wh
  PDU DESI-CALIB-02 [2]: Xe                  [5] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  2 Wh
  PDU DESI-CALIB-02 [2]: Ne                  [6] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  4 Wh
  PDU DESI-CALIB-02 [2]: Kr                  [7] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  3 Wh
  PDU DESI-CALIB-02 [2]: HgAr                [8] OFF  Curr.: 0.000 A  Act. Power: 0.0 W  Act. Energy:  7 Wh

Turning on the Xenon lamp on box DESI-CALIB-01:

  desi-calib-ctrl DESI-CALIB-01 Xe on

  PDU DESI-CALIB-01 [1]: Xe           [5] OFF
  PDU DESI-CALIB-01 [1]: Xe           [5]  ON

Turning off the Xenon lamp on box DESI-CALIB-01:

  ./desi-calib-ctrl DESI-CALIB-01 Xe off

  PDU DESI-CALIB-01 [1]: Xe           [5]  ON
  PDU DESI-CALIB-01 [1]: Xe           [5] OFF

Getting the temperature & humidity sensors values for DESI-CALIB-00:

  ./desi-calib-ctrl DESI-CALIB-00 SENSORS

  PDU DESI-CALIB-00 [0]: SENSORS: 
      SerialNumber  Name                  State                 Value
      AEH7401748    Temperature 1         normal                25.1  degreeC
      AEI7400538    Temperature 2         normal                25.3  degreeC
      AEI7400538    Relative Humidity 1   normal                48.0  percent
      AEH7401747    Temperature 3         normal                24.3  degreeC

Usage:

  desi-calib-ctrl [--no-check] [--verbose] [--full] <pdu> [ <outlet> [ON|OFF] | SENSORS ]

    Command-line tool to control the DESI calibration boxes PDUs.
    This command has two modes:

    * Display/change PDU outlet state (turning ON/OFF outlets):

      desi-calib-ctrl <pdu> <outlet> [ON|OFF]

        <pdu> may be:
          A number [0-3]
          A calibration box name: 
              DESI-CALIB-00 to DESI-CALIB-03
          Or the 'all' value.

        <outlet> may be:
          A number [1-8]
          A name in the following device list: 
              LEDs
              Halogen-Blue-Filter
              Halogen-No-Filter
              Continuum  [ = all continuum lamps ]              
              Cd
              Xe
              Ne
              Kr
              HgAr
              Arcs [ = all arc lamps ]
          Or the 'all' value.

        Without ON/OFF specified, the current outlet state
        will be displayed.

    * Display PDU sensors state:

      desi-calib-ctrl <pdu> SENSORS

        <pdu> may be:
          A number [0-3]
          A calibration box name:
              DESI-CALIB-00 to DESI-CALIB-03 
          Or the 'all' value.
    

Options:
  -h, --help      show this help message and exit
  -n, --no-check  Do not check the current state (after action)
  -v, --verbose   Verbose output
  -f, --full      Display all the details (outlet power, current, active
                  energy, etc.)

============================================================================================

desilamps's People

Contributors

julienguy avatar laurent-le-guillou avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.