This is what I have at the end of my weewx.conf :

# This section configures the mqtt driver

[wxMesh]
driver = user.wxMesh


# MQTT specifics
host = 192.168.1.181 #localhost
client = weewx_mqtt
username = replace_with_your_broker_user
password = replace_with_your_broker_password
topic = weewx
poll_interval = 2


[[label_map]]
barometer = barometer
pressure = pressure
altimeter = altimeter
inTemp = inTemp
outTemp = outTemp
inHumidity = inHumidity
outHumidity = outHumidity
windSpeed = windSpeed
windDir = windDir
windGust = windGust
windGustDir = windGustDir
rainRate = rainRate
rain = rain
dewpoint = dewpoint
windchill = windchill
heatindex = heatindex
ET = ET
radiation = radiation
UV = UV
extraTemp1 = extraTemp1
extraTemp2 = extraTemp2
extraTemp3 = extraTemp3
soilTemp1 = soilTemp1
soilTemp2 = soilTemp2
soilTemp3 = soilTemp3
soilTemp4 = soilTemp4
leafTemp1 = leafTemp1
leafTemp2 = leafTemp2
extraHumid1 = extraHumid1
extraHumid2 = extraHumid2
soilMoist1 = soilMoist1
soilMoist2 = soilMoist2
soilMoist3 = soilMoist3
soilMoist4 = soilMoist4
leafWet1 = leafWet1
leafWet2 = leafWet2
rxCheckPercent = rxCheckPercent
txBatteryStatus = txBatteryStatus
consBatteryVoltage = consBatteryVoltage
hail = hail
hailRate = hailRate
heatingTemp = heatingTemp
heatingVoltage = heatingVoltage
supplyVoltage = supplyVoltage
referenceVoltage = referenceVoltage
windBatteryStatus = windBatteryStatus
rainBatteryStatus = rainBatteryStatus
outTempBatteryStatus = outTempBatteryStatus
inTempBatteryStatus = inTempBatteryStatus



Note you have to set your username/password for mqtt connexion (if you have 
configured one).
if you don't use username/password for mqtt, maybe you need to comment some 
lines in the driver, I'm not sure.

if the connexion to broker is successful, you should see it in mosquitto 
log  (/var/log/mosquitto/mosquitto.log )

I publish my sensors on:
weewx/outTemp
weewx/outHumidity
etc....

The topic prefix "weewx" is defined in weewx.conf  (you can see below, just 
above "poll interval")
You can change the labels also, if you wish to use different mqtt topics.
For example, if you want to use topic  "weewx/out_T", you have to set   
outTemp = out_T  in label map

But to keep it simple, I don't use this, I prefer keep same labels in mqtt 
topic than in weewx.


I hope that helps ?




 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/af8f7bac-0895-4be0-a071-5ad770876721%40googlegroups.com.

Reply via email to