Skip to main content

Control interface for the GL Hub

Project description

HubAxle - control interface for the GL Hub

Exposes an HTTP API for controlling the GL Hub.

There are several primary functions:

  • Update the configuration files which the GL Runtime is consuming
  • Monitor status of the GL Runtime
  • Discover and set up cameras that are accessible to the hub

Using it.

  1. Set up a user by setting the HUB_LOGINS env var to username:password Either do this through the balena dashboard, or by running
docker compose up -e HUB_LOGINS="username:password" hubaxle
  1. Open the port on the hubaxle container. (port 8000 inside the container, port 80 on the host)

  2. Open /admin/ page, and authenticate with your login

  3. Create a config entry called runtime.yaml

  4. Watch as the glruntime container does what you tell it to!

Testing

./src/manage.py test

Development:

If it's awkward to set the HUB_LOGINS env var, you can also run

./src/manage.py createsuperuser

from the hubaxle container, and then you can log in with the credentials you set.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hubaxle-0.1.7.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

hubaxle-0.1.7-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page