temper
temper copied to clipboard
Add support for TEMPer2_V4.1
I bought a device that reports itself as TEMPer2_V4.1. This PR adds support for that device.
Thanks a lot! It's working. I just bougth this one too 3 weeks ago. But it does have a humidity sensor. Does it not work?
Also if you could give me a hint my readings are the following
sudo ./temper.py
Bus 001 Dev 029 3553:a001 TEMPer2_V4.1 30.87C 87.57F - - - -
If the cable is plugged is the external temperature right, if it's not connected is the internal right? The -- at the right were supose to be the humidity?
You're quite welcome!
Regarding humidity: the device I have doesn't seem to have a humidity sensor (unless I'm missing something). When I press the TXT button on my device, it outputs something like this:
www.pcsensor.com
temper2 v4.1
caps lock;on/off/==
num lock;off/on/--
type;inner-tx;outer-tx
inner-temp outer-temp interval
18.31 [c] 19.25 [c] 1s
18.31 [c] 19.25 [c] 1s
Does your device report humidity as well?
Regarding the external sensor - when you have the external sensor plugged in, you should see two separate readings like so:
Bus 003 Dev 014 3553:a001 TEMPer2_V4.1 23.68C 74.62F - 25.56C 78.01F -
The external plug on my device needed a lot of force to connect. Try pushing the connector in further, perhaps?
Thanks a lot again. Just saw I was deceived by the seller. Yes you are right it's only temperature. Thanks again regards
Just wring to confirm that this works with my Temper version 4.1 too, for anyone else who finds this. Thank you.
I can confirm here also. Works perfectly well with this commit, temperature only, internal and external (included cable). Thank you!
sudo ./temper.py --json
[
{
"vendorid": 13651,
"productid": 40961,
"manufacturer": "PCsensor",
"product": "TEMPer2",
"busnum": 1,
"devnum": 21,
"devices": [
"hidraw6",
"hidraw8"
],
"port": "1-3",
"firmware": "TEMPer2_V4.1",
"hex_firmware": "54454d506572325f56342e3100000000",
"hex_data": "80800a024e20000080010a604e200000",
"internal temperature": 25.62,
"external temperature": 26.56
}
]