Paul, For the parsing of your analog humidity sensor we need probably a look up table, as we have used similar for the soul moisture and leaf-wetness sensor data.
There is a positive relation between the raw humidity value and the temperature as you can see in the attached table. Each set with the same raw humidity codes has different humidity percentages as result of different outTemps. For the look up table I will need the raw data over a as big humidity range as possible. 0-100 % would be ideal, but let's see how far we come. Paul, what are the lowest and highest humidity values you have recorded the last months? With this range we got to work. And which driver you use on your other computer? Is this the weewx-vantage driver? I suggest we do the following: 1. I modify both weewx-vantage and weewx-rtldriver so, that they will output a debug line showing the raw values (rtldavis) and decoded values (vantage). 2. You run both programs during a week. The RPI saves 8 days of syslog. 3. Assuming both computers running these drivers have about the same system times, we can combine these two sets of debug data in one table and come with a table similar as attached below, but with a greater range. 4. With this set we can try to find a correlation formula. 5. When a correlation formula could not be found, I will compose a lookup table with segments where the values within can be interpolated lineair. What do you think? Luc
Table showing the raw humidity values of the weewx-rtldavis driver and the measured humidity and temperature values of the weewx-vantage driver. humcod outHumidity outTemp 1299 65,5 54,4 1299 65,6 54,4 1299 65,6 54,5 1299 65,6 54,6 1300 65,4 54,3 1300 65,5 54,4 1300 65,4 54,4 1300 65,7 54,7 1301 65,2 54,2 1301 65,3 54,3 1301 65,8 54,8 1301 65,8 54,8 1302 65,1 54,3 1302 64,9 54,4 1302 65,1 54,4 1302 65,9 54,8 1302 65,9 54,9 1302 66,0 55,1 1303 66,0 55,3 1303 66,0 55,4 1304 64,8 54,4 1304 64,7 54,4 1304 64,6 54,5 1304 66,0 55,5 1304 66,1 55,7 1304 66,1 55,9 1304 66,1 56,2 1305 66,0 56,3 1305 66,0 56,4 1305 65,9 56,4 1305 65,8 56,4 1305 65,8 56,4 1305 65,8 56,4 1305 65,8 56,4 1305 65,7 56,4 1306 65,7 56,4 1306 65,6 56,4 1307 65,6 56,4 1307 65,6 56,5 1308 65,5 56,5 1308 65,6 56,5 1309 65,5 56,4 1310 65,5 56,4 1310 65,5 56,4 1311 65,5 56,4 1312 65,5 56,4 1312 65,5 56,4 1313 65,0 56,3 1313 65,0 56,3 1313 65,5 56,4 1314 65,1 56,3 1314 65,1 56,3 1314 64,8 56,3 1314 65,4 56,4 1314 64,9 56,4 1315 64,7 56,3 1315 65,2 56,4 1315 65,4 56,4 1315 65,3 56,4 1315 65,3 56,4 1316 64,7 56,3 1316 64,6 56,3 1316 64,5 56,3 1317 64,5 56,2 1318 64,5 56,1 1319 64,6 56,0 1320 64,6 56,0 1321 64,6 55,8 1322 64,7 55,7 1324 64,6 55,7 1325 64,6 55,7 1326 64,6 55,7 1327 64,5 55,7 1329 64,2 55,7 1329 64,4 55,7 1329 64,4 55,7 1329 64,3 55,7 1329 64,3 55,7 1329 64,1 55,8 1329 64,0 55,8 1330 63,8 56,0 1331 63,7 56,1 1331 63,6 56,1 1332 63,4 56,2 1333 63,3 56,3 1334 63,2 56,3 1335 63,1 56,3 1335 63,1 56,3 1336 63,1 56,3 1337 63,1 56,3 1338 63,1 56,2 1339 63,1 56,2 1342 63,1 56,3 1346 62,9 56,4 1351 62,9 56,5 1353 62,4 57,2 1354 62,8 56,6 1354 62,3 57,4 1355 62,7 56,9 1355 62,6 57,0 1355 62,5 57,1 1356 62,3 57,6 1356 62,1 57,8 1357 62,8 56,7 1361 62,0 58,1 1364 61,6 58,8 1365 56,2 66,7 1366 61,2 59,4 1369 60,6 60,0 1369 56,1 66,9 1370 60,4 60,3 1371 60,4 60,2 1372 56,1 66,9 1373 60,5 60,3 1376 60,5 60,3 1377 56,4 66,3 1380 60,6 60,2 1384 56,5 65,8 1386 60,7 60,3 1389 56,4 65,8 1394 60,5 60,6 1394 59,8 62,2 1395 59,4 62,6 1395 58,9 63,5 1396 60,1 61,6 1396 56,7 65,9 1397 60,4 61,0 1397 57,0 65,7 1398 59,2 63,1 1399 58,9 63,2 1400 59,1 63,0 1400 58,1 64,7 1401 58,5 64,1 1401 57,6 65,3
