Skip to main content

Python Lib to control lunaticoastro dragonfly

Project description

Lunaticoastro Dragonfly Controller

Python code serves as a client that controls and queries a dome (DragonFly Dome) controller over a network, allowing it to send commands, and fetch relay and sensor data remotely.

Once the Container is running you can open the API at http://<container_ip>:8080/api/ui/

DragonFly Dome Controller

This Docker container provides an isolated environment for running a server that interfaces with the DragonFly Dome controller, allowing remote command sending and data retrieval.

Getting Started

These instructions will cover usage information and for the docker container.

DockerHub

The image is available on the Docker Hub at robbrad182/dragonfly-dome-controller:latest

Prerequisites

You need Docker installed on your system. You can download it from Docker's website.

Installing

Clone the repository to get the required files:

git clone https://github.com/robbrad/lunaticoastro-dragonfly-controller.git 
cd lunaticoastro-dragonfly-controller

Building the Docker Image

Build the Docker image using the following command:

docker build -t dragonfly-dome-controller .

This command builds the Docker image with the tag dragonfly-dome-controller, using the Dockerfile in the current directory.

Environment Variables

You need to set the following environment variables:

  • DRAGONFLY_IP: IP address of the DragonFly Dome controller.
  • DRAGONFLY_PORT: Port on which the DragonFly Dome controller is listening.

These can be set directly in the docker run command or through a .env file.

Running the Container

To run the container with the environment variables set, use the following command:

bashCopy code

docker run -d -p 8080:8080 --env DRAGONFLY_IP=192.168.x.x --env DRAGONFLY_PORT=10000 dragonfly-dome-controller

Replace 192.168.x.x with the actual IP address of your DragonFly Dome controller.

Additional Commands

  • To stop the container, find the container ID with docker ps and then stop it with docker stop <container-id>.
  • To remove the container once stopped, use docker rm <container-id>.
  • To view logs from the running container, use docker logs <container-id>.

Built With

  • Python - The programming language used.
  • Docker - Containerization platform.

Authors

  • Robert Bradley - Initial work - robbrad

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

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

lunaticoastro_dragonfly_controller-0.10.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file lunaticoastro_dragonfly_controller-0.10.2.tar.gz.

File metadata

File hashes

Hashes for lunaticoastro_dragonfly_controller-0.10.2.tar.gz
Algorithm Hash digest
SHA256 5b10c3186b5a0c1f6133eff4e6b838db8f47374e07e90d17c23a09dd36b193f3
MD5 f3f490d5c1c9b818f73719dbe8b6700b
BLAKE2b-256 0b00418a65335082c6c9c9f60e3aed28ebc235ab556948a075600fc7929278df

See more details on using hashes here.

File details

Details for the file lunaticoastro_dragonfly_controller-0.10.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lunaticoastro_dragonfly_controller-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83ca8594ca3b2f0bed64210390e81562b29ab480741959c151013add30ad7c4d
MD5 2dabdbd78175172dbfd717aa67368510
BLAKE2b-256 5aeef6045995d842c63db8644ef59eee94505c9cd43fba6d559d7d5639659c9a

See more details on using hashes here.

Supported by

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