Skip to content

Commit

Permalink
Update Readme - use public axis_ptz_utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Jun 20, 2024
1 parent 9746e97 commit c92d458
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 616 deletions.
19 changes: 12 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ services:
options:
max-size: "10M"
max-file: "10"
template:
image: iqtlabs/edgetech-template:latest
build:
context: ./template
dockerfile: ./Dockerfile
skyscan-c2:
networks:
- skyscan
image: iqtlabs/edgetech-skyscan-c2:latest
volumes:
- ./data/mapping:/data/mapping
#build:
# context: ./skyscan-c2
# dockerfile: ./Dockerfile
restart: unless-stopped
depends_on:
depends_on:
- mqtt
- object-ledger
logging:
driver: "json-file"
options:
max-size: "10M"
max-file: "10"
env_file:
- template.env
- skyscan-c2.env
8 changes: 6 additions & 2 deletions skyscan-c2.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ MANUAL_OVERRIDE_TOPIC=/${PROJECT_NAME}/${HOSTNAME}/Manual_Override/skyscan-c2/JS
TRIPOD_LATITUDE=<TRIPOD_LATITUDE>
TRIPOD_LONGITUDE=<TRIPOD_LONGITUDE>
TRIPOD_ALITUDE=<TRIPOD_ALITUDE>
OBJECT_DISTANCE_THRESHOLD=1000000000.0
MAPPING_FILEPATH=/data/mapping/occlusion.json
OBJECT_DISTANCE_THRESHOLD=1000000000.0 # Maximum distance in meters for the selected aircraft
MIN_ALTITUDE = 0.0 # Minimum altitude in meters for the selected aircraft
MAX_ALTITUDE = 1000000.0 # Maximum altitude in meters for the selected aircraft
MIN_TILT = 0.0 # Minimum altitude in meters for the selected aircraft
LOG_LEVEL=INFO
MAPPING_FILEPATH=/data/mapping/occlusion.json

6 changes: 6 additions & 0 deletions skyscan-c2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM iqtlabs/edgetech-core:latest
RUN apt-get update && \
apt-get install -y wget && \
apt-get clean -y
COPY pyproject.toml .
COPY poetry.lock .
RUN pip3 install poetry==1.5.1
RUN poetry config virtualenvs.create false
RUN poetry install --no-dev
ADD ./c2_pub_sub.py .
ADD ./axis_ptz_utilities.py .

RUN wget https://github.com/IQTLabs/edgetech-axis-ptz-controller/raw/main/axis-ptz-controller/axis_ptz_utilities.py

ENTRYPOINT [ "python3", "c2_pub_sub.py" ]
Loading

0 comments on commit c92d458

Please sign in to comment.