diff --git a/Dockerfile b/Dockerfile index c6baa0f..22388ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ LABEL permissions='\ "5420/tcp": {}\ },\ "HostConfig": {\ - "Binds":["/root/.config/blueos/extensions/$IMAGE_NAME:/root/.config"],\ + “Binds”:[“/usr/blueos/extensions/ping-survey:/app/logs”],\ "ExtraHosts": ["host.docker.internal:host-gateway"],\ "PortBindings": {\ "5420/tcp": [\ diff --git a/app/main.py b/app/main.py index 4b276f8..38914e0 100644 --- a/app/main.py +++ b/app/main.py @@ -12,7 +12,7 @@ distance_url = 'http://host.docker.internal/mavlink2rest/mavlink/vehicles/1/components/194/messages/DISTANCE_SENSOR' #10.144.19.16 gps_url = 'http://host.docker.internal/mavlink2rest/mavlink/vehicles/1/components/1/messages/GLOBAL_POSITION_INT' yaw_url= 'http://host.docker.internal/mavlink2rest/mavlink/vehicles/1/components/1/messages/ATTITUDE' -log_file = '/app/sensordata.csv' +log_file = '/app/logs/sensordata.csv' log_rate = 2 #Desired rate in Hz data = [] row_counter = 0