Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 871 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 871 Bytes

Example Connector

example.py includes example configurations and classes for a basic connector. The example will read in custom configuration values from example.yaml, create a connection to InOrbit based on the environment variables in example.env, and create a custom execution loop that:

  1. Publishes the connector_config as a robot_key_value topic
  2. Publishes random CPU/RAM/HDD usage values

To run the example:

  1. Create an InOrbit API Key and add it to example.env
  2. Install the inorbit_connector library in a virtual environment:
    virtualenv .venv
    source .venv/bin/activeate
    pip install .
  3. Source your environment file:
    source scripts/example.env
  4. Run the example connector:
    python scripts/example.py

To kill the connector, use ctrl-c in the terminal.