Am 08.06.2013 16:17, schrieb foster:
> It doesn't work.
> Still after removing ibutton, it returns as "detected".
> 
> import ospath
> while True:
>    if ospath.isexists('/mnt/1wire/uncached/01.4991AE150000/id'):
>       print 'detected'    
>    else:
>       print 'not detected'
>    time.sleep(1) 
> 
> 
Don't check whether the path exists. Check the *content* of

        /mnt/1wire/uncached/01.4991AE150000/present

Kind regards

        Jan

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to