Re: [mh] One Wire sensors

Giles Godart-Brown <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
Like Jeff I also get oddball temp readings equally rarely and typically 
of about 80deg C, however  since I live in the UK I can safely filter 
anything over 30deg C  :-)

OH and I attached the wrong screenshot in my previous email, the html 
interface should be like the attached - sorry

G

On 26/12/2020 16:01, Jeff Siddall via misterhouse-users wrote:
>
> Steve,
>
> I use the MH Owfs_Item:
>
> $Basement_Thermometer = new Owfs_Item("10.651A40000800", "Basement 
> Thermometer");
>
> Use the get method to specify what to get, then read it with state:
>
>       my $temp = $Basement_Thermometer->get("temperature");
>       my $temp = $Basement_Thermometer->state();
>
> Of course you also need to install and setup owfs.
>
> To me, that seemed to me like the most logical way to use them.
>
> They are fairly reliable, but ever once in a while (maybe every 10,000 
> or 100,000 readings) I get a strange result, like an indoor 
> temperature of 80 C.  This is a minor thing, and for me only results 
> in a text saying something is too hot so I haven't tried to figure out 
> if it is a physical issue (interference), an owfs issue, or a 
> Owfs_Item issue.
>
> Also, I would definitely recommend soldering the connections.
>
> Good luck!
>
>
> On 2020-12-26 9:02 a.m., Stephen Switzer wrote:
>> Several years ago, I ordered a serial to RJ11 adapter from 
>> ibutton(something), called the link 12, and a few temperature sensors 
>> that look like the standard TO-92 transistor package. I connected it 
>> to MH, added one sensor to the network and tried to see if it worked. 
>> I had plans to place sensors all around the house.
>>
>> However, I hadn't ever seen any response from the serial port and 
>> shelved the project. I decided to look at it again yesterday and 
>> discovered how it worked... sort of:
>>
>>
>> f=First     \=Snif
>> n=Next      |=Thru
>> r=Reset     l=Level
>> b=Byt(NN+)  ^=57600
>> j=Bit(N+)   `=38400
>> p=BytW/P    ,=19200
>> ~=BitW/P    x=BusLo
>> d=Aux+      $=Scan
>> z=Aux-      *=List
>> &=Aux?      h=Help
>> (=Extend
>> t=Type      "=Iso
>>
>>
>> 420008003BE45B10
>> !,420008003BE45B10
>>
>> I found that at 9600 baud I can press h to see the help, and *, $ 
>> will also return data about the sensor that I have on the network. 
>> Wow! I finally have something to work with, but I can't figure out 
>> where to get the readings from. Pressing p, j or b all give a 1. One 
>> time I saw a B3, but it doesn't seem to be repeatable. It's 179 
>> anyway... my server room rack better not be that temperature!!
>>
>> So, I continued and looked for some MH code to read the serial port 
>> data. I found several examples, but none of them seemed to be for 
>> reading the OW data directly from a serial port. All seemed to read a 
>> dump from an external program - and all from Windows. I'm running Linux.
>>
>> So, I looked a owfs: installed it, configured it the best that I 
>> could figure out and poked around the /run/owfs filesystem...
>>
>> root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp
>> 43.1086root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp
>> 91.3275root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp
>> 14.4802root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp
>> 94.4001root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp
>> 46.0749root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp
>> 90.8667root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature
>> 36.8015root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature
>> 1.73821root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature
>> 31.6712root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature
>> 65.0987root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature
>> 27.7991root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature
>>
>> Every time I checked values, it was something different. Perhaps this 
>> is because I twisted the sensors onto the wires, instead of a more 
>> secure connection?
>>
>> Either way, I'm getting SOMETHING... so I think it's time to ask: how 
>> do YOU gather OW data? Is there a module for MH to tread it directly, 
>> or should we use something external?
>>
>> Thank you all!
>>
>> -- 
>> Best regards,
>> Steve Switzer
>>
>> ---
>> Get world-class business I.T. services and a phone system with awesome features that won't challenge your budget!
>> http://www.sbsROC.com  <http://www.sbsROC.com>
>>
>>
>> ________________________________________________________
>> To unsubscribe from this list, go to:https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
Screenshot 2020-12-26 at 16.04.39.png (image/png, 122.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.