Logic node for writing time series data to InfluxDB v2.0 via HTTP REST API v2.0. This logic node can be used with Gira X1 (Hardware).
Credit to Alram Lechner for his HTTP Post example.
Currently data of type Number or Binary is supported.
- Fill in IP and Port of your InfluxDB Server.
- Use the organization name you had configured on your InfluxDB Server.
- Use a Authetification Token with write access to your bucket. (You can find/create tokens in the graphical UI of InfluxDB or using the CLI)
- Next to fill in is the name of the bucket you want to write the data to.
- Now specify the number of Inputs you want to use.
- Last but not least you'll have to configure each Input as followed
measurementName,tagKey1=tagValue,tagKey2=tagValue,...,tagKeyX=tagValue fieldKey1,fieldKey2,...,fieldKeyX
Part of config-textfield | describtion |
---|---|
measurementName | choose name of the value for _measurement |
tagKey=tagValue | car=audi as an example, (tags can be used to catagorize your data) |
fieldKey | name of the _field in InfluxDB |
For each "Input" you can write the same value to multiple _fields.
You can assign multiple tags to the value of the field you are writing to.
Example:
Tracking temperature in a house with bottom, middle and top floor and rooms which are labeled with numbers.
When you want to write to InfluxDB, you'll have to choose/create a "bucket" to write to.
e.g. bucket name = "temperatureBucket"
Assigning the temperature values to Input 1 you'll have to configure "Config 1" as follows:
temperatureBucket,floor=bottomFloor,room=roomNumber42 temperatureInFarad
With the above configuration of Input 1 you'll send temperature data of the bottom floor of room 42 to InfluxDB's bucket "temperatureBucket".
The value is written to field-value "temperatureInFarad"