Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New sensor type TEMPer2_M12_V1.3 #139

Open
safrye opened this issue Aug 2, 2024 · 3 comments
Open

New sensor type TEMPer2_M12_V1.3 #139

safrye opened this issue Aug 2, 2024 · 3 comments

Comments

@safrye
Copy link

safrye commented Aug 2, 2024

Hi,
I got the warning about a new sensor type:
WARNING:temperusb.temper:Unrecognised sensor type 'TEMPer2_M12_V1.3'. Trying to guess communication format. Please add the configuration to 'device_library.py' and submit to https://github.com/padelt/temper-python/issues to benefit other users.
Lsusb showed:
Bus 003 Device 002: ID 0c45:7401 Microdia TEMPer Temperature Sensor
This is a metal body TEMPer2 with a TXT button.

Cheers.

@davet2001
Copy link
Collaborator

Thanks @safrye! Did it connect ok and give a valid temperature reading?

@safrye
Copy link
Author

safrye commented Aug 3, 2024

It connected fine after I installed the USB permission and gave valid reading.
Interestingly, also the old pcsensor program did not work before I installed the permissions, which was also the reason why I looked for a newer version. I use OpenSuse Tumbleweed and at least a year ago pcsensor didn't complain about not finding the device.
Just to be complete here also the output of the TXT feature, without the external probe:

www.pcsensor.com
  type:fm75
   caps lock:on/off/++ fw:1.3
    num lock:Off/on/--  
    date	time	c	c	interval
			inside	outside
					25.50	err	1
							25.50	err	1
									25.63	err	1

Cheers and
Thanks for the nice program.

P.S.: I recognized that temper-python only gives one decimal place for the temperature while pcsensor gives two. Any special reason for this?

@davet2001 davet2001 changed the title New sensor type New sensor type TEMPer2_M12_V1.3 Aug 18, 2024
@davet2001
Copy link
Collaborator

@safrye Regarding the 1decimal place output, this is just how the output is formatted in the statement that prints the number to the screen, e.g.

output += '%0.1f; ' % reading[sensor][dict_key]

If you want more decimal places, you could import the library, create a TemperDevice() instance, then call get_temperature(). This will return a floating point value.

But do bear in mind the finite resolution, noise, measurement uncertainty and calibration error of these sensors if looking at the second decimal point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants