InfluxDB 1.X#
This will help you adjust your base.json so that SolarThing starts uploading to InfluxDB.
Note
For new users, please use InfluxDB 2.X instead.
See also
Creating influxdb2.json#
This file that you create can be called anything, but we will call it influxdb2.json.
It can also be placed anywhere, but we will place it in the config directory that also contains our already created base.json.
Lets get into the config directory we need.
cd <THE DIRECTORY YOU USED IN PREVIOUS STEPS>
And now we will create influxdb2.json
nano config/influxdb2.json
Paste this into your newly created file:
{
"type": "influxdb",
"config": {
"url": "http://localhost:8086",
"username": "root",
"password": "root",
"database": "default_database",
"measurement": null,
"status_retention_policies": [
{
"frequency": 120,
"name": "autogen"
}
],
"event_retention_policy": {
"name": "autogen"
}
}
}
Adjust the username, password, and url settings to your need, then save the file.
Another page that I will add in the future will go over the other settings and what they do.
Jump to Edit base.json for a database