Results 1 to 5 of 5

Thread: wifiproximity - generic AP based events processor

  1. #1
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494

    wifiproximity - generic AP based events processor

    This is a generic daemon (GPL) I wrote that will integrate with NetworkManager and perform a number of actions when pre-defined wifi access points are within range of the system.

    This is useful for doing things like automatic synchronization with home PC's when you arrive home. It can also perform these events after the access point goes out of range as well.

    It's really rough right now, but it's a good start. This won't be a part of the OpenICE 1.0 platform, but hopefully it will be accepted in 2.0 as it matures.

    If anyone is willing to make a simple event editor GUI, that would be awesome!

    Here is an example "event" that will create a file, and issue an rsync command in my home dir:

    Code:
    <event  ssid="linksys" trigger="OnAdded" strengthMin="20" connect="true">
    	<command type="system" bin="/usr/bin/touch" >
    		<arg>/home/kev/rsync/linksys-was-in-range.txt</arg>
    	</command>
    	<command type="system" bin="/usr/bin/rsync">
    		<arg>-arvuz</arg>
    		<arg>/home/kev/rsync/</arg>
    		<arg>/home/kev/rsync-dest</arg>
    	</command>
    </event>
    Hope it comes in handy! The source is in the linuxice repo: https://linuxice.svn.sourceforge.net.../wifiproximity
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  2. #2
    Constant Bitrate
    Join Date
    Aug 2007
    Location
    Northern VA
    Posts
    135
    Dude, you are a madman! I'll put this in my top 10 of useful tools for a carputer so look forward to checking it out.

  3. #3
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    UPDATE:

    I just added a couple new features and fixed some bugs:

    * use "Auto" device to have wifiproximity use the first managed wifi device
    * use "HwAddr" in addition to "Ssid" for access point identification (in case there are many "linksys" access points out there, and you don't want to connect to all of them heaven forbid...)
    * wifiproximity will not longer connect to the AP, if a connection has already been made (in the case of networkmanager auto connecting before wifiproximity does).
    * -D switch to run in daemon mode, or regular mode (default).

    I just realized this, and it could be a cool feature in the future: You could run multiple instances of wifiproximity with different devices and have them do different things based upon what they see... WarDriving ftw? I'll have to add the -e [/path/to/eventfile] option.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  4. #4
    Variable Bitrate nottastocker's Avatar
    Join Date
    Jun 2003
    Location
    Shenandoah, VA
    Posts
    332
    I like the idea you have here. I am working on a configuration gui for this app, but I was hoping you could give me a breakdown of what tag has what attributes, what sub tags it can have, etc.

  5. #5
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,494
    Quote Originally Posted by nottastocker View Post
    I like the idea you have here. I am working on a configuration gui for this app, but I was hoping you could give me a breakdown of what tag has what attributes, what sub tags it can have, etc.
    Awesome!

    Here's a more full example:
    https://linuxice.svn.sourceforge.net...src/events.xml

    All possible attributes and nodes are in that example.

    In an event there are only two types of triggers "OnAdded" and "OnRemoved". Obviously, strengthMin and connect attributes don't apply to an event with an OnRemoved trigger.

    Right now, the only valid children for an event are <command> nodes. Also, the "type" attribute on the <command> node is ignored right now. Everything is treated as a system command.

    <arg> has no attributes.

    Let me know if you have any other questions. I'm looking forward to seeing the GUI in action.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

Similar Threads

  1. Core Duo / Core 2 Duo Mini-ITX boards
    By RedGTiVR6 in forum General Hardware Discussion
    Replies: 153
    Last Post: 10-03-2010, 10:30 PM
  2. RR 01/2009 ... Plenty of news..
    By guino in forum Road Runner
    Replies: 167
    Last Post: 02-23-2010, 10:12 AM
  3. Triggering events based on GPS location
    By electron in forum GPS
    Replies: 5
    Last Post: 09-16-2004, 11:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •