5959
6060influxdb :
6161 host : localhost
62- port : 8086
62+ port : 8181
6363 token : your-api-token
6464 org : your-organization
6565 bucket : your-bucket
@@ -118,7 +118,7 @@ mqtt:
118118` ` ` yaml
119119influxdb :
120120 host : localhost # InfluxDB hostname
121- port : 8086 # InfluxDB port
121+ port : 8181 # InfluxDB port
122122 token : your-api-token # API token
123123 org : your-organization # Organization name
124124 bucket : your-bucket # Default bucket
@@ -184,14 +184,14 @@ Raw strings are useful for simple MQTT messages like Tasmota power states (`ON`/
184184- ` $.payload.temperature` - Nested field (JSON only)
185185- ` $.payload.data[0]` - Array index (JSON only)
186186- ` $.topic[n]` - Topic segment (0-indexed)
187- - ` $.payload['PM2 .5']` - Field with special characters (dot, space, etc.)
187+ - ` $.payload['pm2 .5']` - Field with special characters (dot, space, etc.)
188188
189189**Special Characters:** Use bracket notation with quotes for field names containing dots, spaces, or other reserved characters:
190190
191191` ` ` yaml
192- # For payload: {"VINDRIKTNING ": {"PM2 .5": 5}}
192+ # For payload: {"air_quality_sensor ": {"pm2 .5": 5}}
193193fields:
194- pm25: $.payload.VINDRIKTNING['PM2 .5']
194+ pm25: $.payload.air_quality_sensor['pm2 .5']
195195` ` `
196196
197197# ## Environment Variables
@@ -207,7 +207,7 @@ mqtt:
207207
208208influxdb:
209209 host: ${MQTT2INFLUXDB_INFLUXDB_HOST:localhost}
210- port: ${MQTT2INFLUXDB_INFLUXDB_PORT:8086 }
210+ port: ${MQTT2INFLUXDB_INFLUXDB_PORT:8181 }
211211 token: ${MQTT2INFLUXDB_INFLUXDB_TOKEN}
212212 org: ${MQTT2INFLUXDB_INFLUXDB_ORG:default}
213213 bucket: ${MQTT2INFLUXDB_INFLUXDB_BUCKET:metrics}
0 commit comments