From: Bruce W. <wi...@ch...> - 2005-04-09 20:37:17
|
J Wynia wrote: > The software (FMA: http://fma.sourceforge.net/index2.htm), is used to > interface with bluetooth enabled phones, primarily the Sony Ericsson > T610 and Z600. I'd like to start using my Z600 with MisterHouse. > > FMA basically monitors when the phone is within range and triggers a > scriptable event for "Proximity = Near" and "Proximity = Away" when you > leave the area. There are also events for disconnects where somehow the > proximity didn't get triggered, etc. This would pretty slick! I don't have a bluetooth phone, but would switch to one if we could get this to work. > 2. The best way to hook up the FMA proximity event to trigger a > MisterHouse event. While I'm sure I can hack something together, I'd > rather see what the "best" way to do this might be. Probably a number of ways to do this. The simplest might be to have the fma code write out a status file, than have mh monitor it with something like this: $proximity_bruce_file = new File_Item 'path_to_file'; $proximity_bruce = new Generic_Item; set $proximity_bruce read_all $proximity_bruce_file if file_changed $proximity_bruce_file; Bruce |