-
Notifications
You must be signed in to change notification settings - Fork 636
InfluxDB
CmPi edited this page Jun 2, 2019
·
6 revisions
InfluxDB is not included/compiled/supported/enabled by default.
To add it to all your modules, an easy way is to add the following defines in the custom.h and to add the compilation flag USE_CUSTOM_H.
Defines | Description | Sample value |
---|---|---|
INFLUXDB_SUPPORT |
Include InfluxDB module | 1 |
INFLUXDB_ENABLED |
Enable InfluxDB module | 1 |
INFLUXDB_HOST |
Hostname | db.acme.com |
INFLUXDB_PORT |
IP Port | 8090 |
INFLUXDB_DATABASE |
Database | dev_db |
INFLUXDB_USERNAME |
Username | dev_usr |
INFLUXDB_PASSWORD |
Passwword | ******* |
For example I added those lines in my custom.h:
#ifdef INFLUXDB_SUPPORT
#undef INFLUXDB_SUPPORT
#endif
#define INFLUXDB_SUPPORT 1
#ifdef INFLUXDB_ENABLED
#undef INFLUXDB_ENABLED
#endif
#define INFLUXDB_ENABLED 1
#ifdef INFLUXDB_HOST
#undef INFLUXDB_HOST
#endif
#define INFLUXDB_HOST "db.acme.com"
[...]
Value name | Description |
---|---|
uptime | in seconds |
freeheap | |
rssi |
Value name | Description |
---|---|
relay | relay state (0,1) |
Value name | Description |
---|---|
current | |
voltage | |
power | |
reactive | |
apparent | |
factor | |
energy |
If you're looking for support:
- Issues: this is the most dynamic channel at the moment, you might find an answer to your question by searching open or closed issues.
- Wiki pages: might not be as up-to-date as we all would like (hey, you can also contribute in the documentation!).
- Gitter channel: you have better chances to get fast answers from project contributors or other ESPurna users. (also available with any Matrix client!)
- Issue a question: as a last resort, you can open new question issue on GitHub. Just remember: the more info you provide the more chances you'll have to get an accurate answer.
- Backup the stock firmware
- Flash a pre-built binary image
- Flash a virgin Itead Sonoff device without opening
- Flash TUYA-based device without opening
- Flash Shelly device without opening
- Using PlatformIO
- from Visual Studio Code
- Using Arduino IDE
- Build the Web Interface
- Over-the-air updates
- Two-step updates
- ESPurna OTA Manager
- NoFUSS
- Troubleshooting
- MQTT
- REST API
- Domoticz
- Home Assistant
- InfluxDB
- Prometheus metrics
- Thingspeak
- Alexa
- Google Home
- Architecture
- 3rd Party Plugins
- Coding style
- Pull Requests