as always, I do not know whether it is the best solution, but I have done so
.
In the infinite main loop, I ask to owserver the list of present objects,
and store it in an array: there can be connected just one iButton at a time.
In the array will be some objects always present (master bus, switch, etc.)
that I can drop from array.
If the array is empty, no iButton connected.
Other way, I can check the object to see if it is an authorized one.

I'd like to share my source, but I need a little time, at least to
translate comments and variable_names! ;)

Giulio


2013/6/5 foster <[email protected]>

> Hi.
> I did a test with time.sleep 1 sec, and it looks like no load to raspberry.
> So 1 sec. is viable compromise.
> But I have another question:
> We solve here only one ibutton, so checking in loop if any directory has
> beeen created. But how to solve if I need to identify person with ibutton
> (20 or more people)?
> With this solution I need to check 20 directories in one sec. So it can be
> a
> little problem.
> It could be use as monitoring of entrance people.
>
>
>
>
> --
> View this message in context:
> http://owfs-developers.1086194.n5.nabble.com/My-first-1-w-circuit-Was-Monitoring-AC-power-lines-tp9652p9666.html
> Sent from the OWFS Developers mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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