owntracks / docker-recorder

Docker image for OwnTracks Recorder
151 stars 68 forks source link

Environment variable OTR_TOPICS has no effect #49

Closed saesh closed 2 years ago

saesh commented 2 years ago

When passing the environment variable OTR_TOPICS to the docker container it is not overriding what is written in the recorder.conf file.

$ docker inspect owntracks-recorder
...
"Config": {
            "Env": [
                ...
                "OTR_TOPICS=owntracks/some-user/#",
            ],
}

When looking at the logs of the container it subscribes to the topic defined in the default recorder.conf:

$ docker logs owntracks-recorder
ot-recorder[11]: Subscribing to owntracks/# (qos=2)

And the recorder.conf:

$ cat owntracks-recorder-volume/config/recorder.conf
OTR_TOPICS = "owntracks/#"
jpmens commented 2 years ago

That is correct: OTR_TOPICS is not retrieved from the environment and is documented thusly in the Recorder README, in the table of OTR_ settings.

jpmens commented 2 years ago

I have opened an an enhancement issue at our Recorder repository, so I am closing here. Thanks for reporting.

saesh commented 2 years ago

Thank you @jpmens!