The token does not pass into the telegraf.conf file after the export command.
As a result, it’s impossible to run telegraf, err 401.
Can you give me a solution?
Thank you in advance for your help.
Hi.
Can you tell me which project are you following?
And at which step are you getting issues?
Regards,
Sara
Hi Sara,
In Smart Home with Raspberry Pi ESP32 and ESP8286 V1-3, in the chapter 6.3, i want collect mètres from my Raspberry with telegraf.
In Page 241, i add 3 environment variables to my Telegraf environment. INFLUX_HOST and INFLUX_ORG pass in the telegraf.conf, not INFLUX_TOKEN!
Tkx for your help.
JY
Hi.
Can you show me how does your command look like?
I suggest you copy the following to a notepad, edit with your credentials and then paste on the terminal window
export INFLUX_HOST=http://YOUR_RASPBERRY_PI_IP_ADDRESS:8086 export INFLUX_TOKEN=YOUR_API_TOKEN export INFLUX_ORG=YOUR_ORG_NAME
Let me know if this helps.
Regards,
Sara