You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I purchased a batch of Temper2 devices from modmypi.com having bought 30-40 Temper devices over the past 5 years for various projects from the Temper1, Temper2 (Metal Body), and Temper2 (White Plastic Body) and recently it seems the internals have changed and now report as 413d:2107 with no vendor description.
After successfully installing Go on Raspbian Jessie Lite I can read the temperature on the device (the humidity is stuck on 200 as this isn't a feature of the Temper2) but the temperature appears to be the internal temperature and not the external probe.
Has anyone successfully been able to modify the Go script to output the other temperature? I'm new to Go and more versed in Python and C when dealing with these devices.
The text was updated successfully, but these errors were encountered:
So after some more digging online I found this post: edorfaus/TEMPered#51 which indicates the device I have actually returns two lines of data, so I changed line 93 in temperx.go from:
if buf, err := device.Read(-1, 1*time.Second); err == nil {
to:
if buf, err := device.Read(-2, 1*time.Second); err == nil {
and this appears to return the temperature from the second set of data, I'm still testing this to make sure that's actually what is being returned but as my understanding of interacting with USB devices is lacking I might be barking up the wrong tree with this. Hopefully this might help someone with a bit more knowledge than me figure it out as a quick google search shows this lack of continuity from PCSensor even within the same models to cause a lot of problems for people.
I purchased a batch of Temper2 devices from modmypi.com having bought 30-40 Temper devices over the past 5 years for various projects from the Temper1, Temper2 (Metal Body), and Temper2 (White Plastic Body) and recently it seems the internals have changed and now report as 413d:2107 with no vendor description.
After successfully installing Go on Raspbian Jessie Lite I can read the temperature on the device (the humidity is stuck on 200 as this isn't a feature of the Temper2) but the temperature appears to be the internal temperature and not the external probe.
Has anyone successfully been able to modify the Go script to output the other temperature? I'm new to Go and more versed in Python and C when dealing with these devices.
The text was updated successfully, but these errors were encountered: