Yet again I am confusing myself over the strings.ini file and posting data from an third party airquality sensor to cumulusmx.
My undestanding is that strings.ini just allows you to rename the appropriate entries on the external sensors page of CMX.
I do not use the (dead ) console so have python code reading sensors and shipping the data to CMX via the ECOWITT protocol
The appropriate section of my strings.ini is:
Code: Select all
[SoilMoistureCaptions]
Sensor1=SoilHum1
Sensor2=Sensor 2
Sensor3=Sensor 3
Sensor4=Sensor 4
Sensor5=Sensor 5
Sensor6=Sensor 6
Sensor7=Sensor 7
Sensor8=Sensor 8
.............
............
[AirQualityCaptions]
Sensor1=voc
Sensor2=Sensor 2
Sensor3=Sensor 3
Sensor4=Sensor 4
SensorAvg1=voc 24hr Avg
SensorAvg2=Sensor Avg 2
SensorAvg3=Sensor Avg 3
SensorAvg4=Sensor Avg 4
I successfully send my soil humidity from my WH51 by issuing the following (in a try/catch expression)
Code: Select all
soil_data={ 'SoilMoisture1' : int(soil_moisture), }
x = requests.post( CMX_url+"extra" , soil_data, timeout = 5)
where: CMX_url = "http://localhost:8998/station/ecowitt"
I have tried various options all to now avail.
Any pointers apprecaited.....