bemasher / rtlamr-collect

Data aggregation for rtlamr.
GNU Affero General Public License v3.0
171 stars 29 forks source link

COLLECT_INFLUXDB_HOSTNAME undefined #4

Closed deroses closed 6 years ago

deroses commented 6 years ago

I've followed rtlamr instructions and can happily stream that data.

I've verified that the rtlamr-collect prerequisites are installed and working, but I've got some error with my env file. Whether I attempt to pipe rtlamr output to rtlamr-collect, or just attempt to run rtlamr-collect directly: I get COLLECT_INFLUXDB_HOSTNAME undefined as a response.

I'm not sure how to get it to correctly read rtlamr-collect.env. I am on a macbook pro (sierra).

Apologies for the setup question - thank you for the work on this project. Happy to help better define or diagnose the issue that I am having.

jreiners commented 6 years ago

You just need to add the 2 environmental variables from the .env to your Mac I'm pretty sure. Rtlamr collect needs them for influxdb.

Bemasher has a good write-up in his readme as well, and I also got stuck on that part.

On Feb 7, 2018 5:52 AM, "Adam Rose" notifications@github.com wrote:

I've followed rtlamr instructions and can happily stream that data.

I've verified that the rtlamr-collect prerequisites are installed and working, but I've got some error with my env file. Whether I attempt to pipe rtlamr output to rtlamr-collect, or just attempt to run rtlamr-collect directly: I get COLLECT_INFLUXDB_HOSTNAME undefined as a response.

I'm not sure how to get it to correctly read rtlamr-collect.env. I am on a macbook pro (sierra).

Apologies for the setup question - thank you for the work on this project. Happy to help better define or diagnose the issue that I am having.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bemasher/rtlamr-collect/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AHjzfBsW6OWdS2W8qQHRm7afnNOUt-mmks5tSY5ogaJpZM4R8let .

bemasher commented 6 years ago

Keep in mind that rtlamr-collect.env is only used when running rtlamr-collect as a systemd unit where it is loaded and provides it's contents as environment variables to the process.

If you are not running rtlamr-collect as a systemd unit, you will need to set those environment variables before running the application, I would recommend exporting the variables in a script that also launches rtlamr-collect.

deroses commented 6 years ago

Thanks to you both - that fixed my problem!