using hw.sensors in own software

2006-06-05 Thread Wijnand Wiersma
Hi all, for a monitoring system I am reading the hw.sensors sysctls using sysctl(3). To know what that sensor is trying to say to me I check sensor.desc to see what that sensor is measuring. lm0 tells me: hw.sensors.8=lm0, Temp1, temp, 33.00 degC / 91.40 degF hw.sensors.9=lm0, Temp2, temp,

Re: using hw.sensors in own software

2006-06-05 Thread Theo de Raadt
Is reading the sensor.desc the right way to do this, and if so, is the information in sensor.desc consistent across all drivers? When it comes to i2c devices, we have no idea what is a particular pin on the measuring chip is wired to. There is just no information at all. Only the vendor knows.

Re: using hw.sensors in own software

2006-06-05 Thread Theo de Raadt
Is reading the sensor.desc the right way to do this, and if so, is the information in sensor.desc consistent across all drivers? When it comes to i2c devices, we have no idea what is a particular pin on the measuring chip is wired to. There is just no information at all. Only the

Re: using hw.sensors in own software

2006-06-05 Thread Wijnand Wiersma
2006/6/5, Theo de Raadt [EMAIL PROTECTED]: Is reading the sensor.desc the right way to do this, and if so, is the information in sensor.desc consistent across all drivers? When it comes to i2c devices, we have no idea what is a particular pin on the measuring chip is wired to. There is just

Re: using hw.sensors in own software

2006-06-05 Thread Wijnand Wiersma
2006/6/5, Theo de Raadt [EMAIL PROTECTED]: Ok, thank you. I was just wondering about the strings placed in sensors.desc. If they are consistent among all drivers I can use that reliably. We are trying to be somewhat consistant. But don't rely on that. You can't. And you will see what we