Vince and everyone,
I have a RAK7244 LoRa (chirpstack) setup on my LAN that is getting data from two LHT65 temp/hum sensors. All seems to be working correctly.
My goal is to import the data into weewx which I have running on an rpi. Not being a programmer, I seem to be WAY OVER my head with how to set up mqtt and deal with json files. I have tried the python program kindly offered by Ralph Underwood and it seems to be subscribing to the json data:
MQTT_SERVER = "192.168.1.10"
MQTT_TOPIC = "application/#" *** [using '#' to get everything]
Connected with result code 0
application/7/device/a8404117b18312e9/rx {"applicationID":"7","applicationName":"LHT65","deviceName":"LHT65x","devEUI":"a8404117b18312e9","txInfo":{"frequency":905100000,"dr":0},"adr":true,"fCnt":1376,"fPort":2,"data":"y+wJUAHgAQlHf/8=","object":{"BatV":3.052,"Ext_sensor":"Temperature Sensor LHT65","Hum_SHT":"48.0","TempF_DS":"74.75","TempF_SHT":"74.91"}}
{"applicationID":"7","applicationName":"LHT65","deviceName":"LHT65x","devEUI":"a8404117b18312e9","txInfo":{"frequency":905100000,"dr":0},"adr":true,"fCnt":1376,"fPort":2,"data":"y+wJUAHgAQlHf/8=","object":{"BatV":3.052,"Ext_sensor":"Temperature Sensor LHT65","Hum_SHT":"48.0","TempF_DS":"74.75","TempF_SHT":"74.91"}}
application/7/device/a84041468182b4da/rx {"applicationID":"7","applicationName":"LHT65","deviceName":"LHT65-1","devEUI":"a84041468182b4da","txInfo":{"frequency":904300000,"dr":0},"adr":true,"fCnt":1367,"fPort":2,"data":"y9ELFQGRAQr2f/8=","object":{"BatV":3.025,"Ext_sensor":"Temperature Sensor LHT65","Hum_SHT":"40.1","TempF_DS":"82.51","TempF_SHT":"83.07"}}
{"applicationID":"7","applicationName":"LHT65","deviceName":"LHT65-1","devEUI":"a84041468182b4da","txInfo":{"frequency":904300000,"dr":0},"adr":true,"fCnt":1367,"fPort":2,"data":"y9ELFQGRAQr2f/8=","object":{"BatV":3.025,"Ext_sensor":"Temperature Sensor LHT65","Hum_SHT":"40.1","TempF_DS":"82.51","TempF_SHT":"83.07"}}
At this point I'm not sure what to do to get the data into weewx. If anyone can offer a suggestion I would be most grateful.
Thanks.
Bob