Hi,
I’ve installed InfluxDB on my raspberry.
I have a wonderful script running that stores data from my sound sensor in my influxdb Database.
Now, I want to connect my laptop to the database on my Raspberry, where I want to use a python script to get the data.
How should I configure influx on the Raspberry so I can get my data out?
reesulting in the following error:
ConnectionError: HTTPConnectionPool(host=‘http’, port=80): Max retries exceeded with url: // raspberry-ip:8086/query?q=CREATE+DATABASE+%22TEST%22 (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x00000231CD7466A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed’))
We don’t get anywhere with such imprecise information.
What exactly is not working? Error messages?
I assume both devices are on the same internal network? Can you ping the Raspberry from the Laptop?
Before I would start with a Python script - which itself can contain errors - I would first check the basics!?
Off course, I always ssh into my RPi. I can ping it as well, no worries. And yes, they are on the same internal network.
I even have Grafana installed on hass.io that can connect to my Raspberry to retrieve all the data from the RPi.
Hope to get some good suggestions on how to connect to the InfluxDB on my RPi remotely.
Then the connection works.
I don’t know what you have in mind, so I don’t know what the next steps would be.
Read the documentation and expand this simple script bit by bit: