Trying to access InfluxDB CLI driving me mad

I’m trying to set up long term data storage with InfluxDB, and am following this tutorial: https://dummylabs.com/post/2019-05-28-influxdb-part2/. This tutorial (and the previous one) doesn’t seem to go into how to access InfluxDB through the command line, but it still shows instances of the writer using CLI commands to check various settings.

I’ve tried using the terminal and SSH addon, but I can’t for the life of me find out how to login properly. I tried following this forum post: How to access InfluxDB cli form Hassio but I can’t get it to work.

Please someone let me know how I can access the InfluxDB CLI through the Home Assistant web interface.

Answering to you really late, but hoping some other find info useful. I had same problem that I could not login properly to influx-cli through Terminal. I tried with info from How to access InfluxDB cli form Hassio and could access influx-cli, but got permission errors.

Solution was to create new temporary Influx-DB credentials with “non-cryptic” password and after that I could use “sudo docker exec -it e036d2cbc5ed influx -username XXX -password XXX” in terminal and use influx-cli properly.

Hi,
Could you please help me? where and how exactly should I set the temporary Influx-DB credentials?
greetings
Lukas

1 Like

Apologies for the necropost, but wanted to chime in with my eventual solution.

Using the SSH and Web Terminal community addon, via the web terminal interface, I used the following command:

docker exec -it addon_a0d7b954_influxdb influx -username <username> -password <password>

For <username> and <password>, I used the values from my configuration.yaml, from where I’ve implemented the InfluxDB integration.

1 Like