Skip to content

Commit

Permalink
Updates to camera module
Browse files Browse the repository at this point in the history
  • Loading branch information
meadej committed Apr 18, 2023
1 parent 5d3210e commit 756e558
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion axis-ptz/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def moveCamera(ip, username, password, mqtt_client):
get_jpeg_request()
capture_metadata = get_json_request()
mqtt_client.publish(
"skyscan/captures/data",
publish_topic,
json.dumps(capture_metadata),
0,
False
Expand Down Expand Up @@ -816,6 +816,7 @@ def main():
global cameraConfig
global flight_topic
global object_topic
global publish_topic
global logging_directory
global Active

Expand Down Expand Up @@ -892,6 +893,12 @@ def main():
action="store_true",
help="Verbose output"
)
parser.add_argument(
"--publish-topic",
type=str,
help="The topic to publish capture information to",
default="skyscan/captures/data"
)
parser.add_argument(
"-f",
"--flat-file-structure",
Expand Down Expand Up @@ -956,6 +963,7 @@ def main():

flight_topic = args.mqtt_flight_topic
object_topic = args.mqtt_object_topic
publish_topic = args.publish_topic
print(
"connecting to MQTT broker at "
+ args.mqtt_host
Expand Down

0 comments on commit 756e558

Please sign in to comment.