tempER et Linux

J’ai récemment récupéré un dongle USB pour mesurer la température et l’humidité. Ce dongle est supporté sous Linux sous la référence suivante : 1130:660c Tenx Technology, Inc., je suis assez content de voir que pas mal de projets autour de ce dongle existent. J’en ai trouvé un qui semble pas mal marcher se trouvant ici. Il ne vous reste qu’a le prendre et compiler, cela vous donne (lors du premier démarrage) :

./temper
Found device: 413c:2106
Found device: 046d:c00e
Found device: 1d6b:0001
Found device: 067b:2303
Found device: 1d6b:0001
Found device: 1d6b:0001
Found device: 1d6b:0001
Found device: 1130:660c
Found deviceNum 0
Trying to detach kernel driver
detach successful
detach successful
sending bytes 10, 11, 12, 13, 0, 0, 2, 0
sending bytes 82, 0, 0, 0, 0, 0, 0, 0
sending bytes 10, 11, 12, 13, 0, 0, 1, 0
Other Stuff (232 bytes):
57 58 14 00 14 00 53 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
sending bytes 10, 11, 12, 13, 0, 0, 2, 0
sending bytes 84, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 0, 0, 0, 0, 0, 0, 0, 0
sending bytes 10, 11, 12, 13, 0, 0, 1, 0
temperature 75.20F 24.00C

Notez la température à la fin. Il ne reste à présent qu’à modifier le fichier C pour en faire ce que vous voulez. A savoir qu’il existe également une classe perl pour le gérer et enfin, vous pouvez aussi l’ajouter à cacti.