Open DD102 opened 6 years ago
Hi! Thanks for checking out this repository.
The database is set in the influxdb.conf file on your server. First of all you will have to specify a UDP listener. Just look for the part that looks like this :
[[udp]]
enabled = true
bind-address = "your.ip.add.ress:8089"
database = "statistics"
I'm using Unraid to host InfluxDB in a docker container. This does not have a config file. I have added INFLUXDB_UDP_ENABLED set to true in the container variables however.
When I type the address of the server into the interface it does not seem to connect and how do I tell the ESP which database to select?
I have tried changing the char SENSOR_LOCATION[20] = "test"; // This location is used for the "device=" part of the InfluxDB update
from test to the name of my database but I dont think this is correct.
So apparently there seems to be a way to override the database from a remote source https://github.com/influxdata/influxdb-php
However, in this sourcecode this is not possible yet, but feel free to fork the code and create a pull request when you've patched this feature in the code.
I must say, at this moment there is no intention to make a remote database selection unless it is really easy to fix, but then again, Just fork the repo, make the changes and create a pull request. thats the easiest way.
How do I configure my InfluxDB server or select which database it will use?