tag-it 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +50 -2
  2. data/VERSION +1 -1
  3. metadata +4 -4
data/README.rdoc CHANGED
@@ -1,6 +1,54 @@
1
- = tag-it
1
+ = Tag-it
2
+ == RFID integration in Ruby
3
+
4
+ Active RFID can be a game changer in certain fields (time-clock, fleet tracking, etc). Why are you still doing it the old fashioned way?
5
+
6
+ Tag-it is a ruby gem that you can start up to monitor an RFID receiver; just create an observer to watch the tag events roll in and you can automatically tell your webservice or other system when things arrive and depart without having to do any data input at all.
7
+
8
+ == Installation
9
+
10
+ The recommended way is that you get the gem hosted on rubygems.org:
11
+
12
+ gem install tag-it
13
+
14
+ I suggest you use ruby 1.8.7, I've had problems so far with ruby 1.9.x and this project.
15
+
16
+ == Prerequisites:
17
+
18
+ 1) You will need the hardware (an RFID receiver and RFID tags). I bought mine from http://cliste.sailwhatcom.com/, and these are the only ones the library will work with out of the box yet.
19
+
20
+ 2) you will need the serial-to-usb port driver for your OS installed: http://www.prolific.com.tw/eng/downloads.asp?ID=31
21
+
22
+ 3) tag-it uses the 'ruby-serialport' gem for device communication. Make sure you have that installed and working.
23
+
24
+
25
+ == Example usage
26
+
27
+ Typical usage involves building an observer like this:
28
+
29
+ class YourCustomObserver
30
+ def update(tag,strength,event)
31
+ if event == :tag_arrived
32
+ # do something because a tag has come into range
33
+ elsif event == :tag_departed
34
+ # do something because a tag has gone out of range
35
+ end
36
+ end
37
+ end
38
+
39
+ And then attaching it to a tag-it tag_tracker like this:
40
+
41
+ require "tag_it"
42
+ port = SerialPort.new("/dev/tty.yourport",{:baud=>9600})
43
+ tracker = TagIt::TagTracker.new(port)
44
+ watcher = YourCustomObserver.new
45
+ tracher.add_observer(watcher)
46
+ tracker.start!
47
+
48
+ the tracker will run indefinately, pulling in tag ids as they come into range and leave the area, and dispatch the necessary events. Right now there are 2 events -- :tag_arrived when the tag comes into range, and :tag_departed when it leaves. The other parameters to the update method are the tag id ("1nrw") and the Relative Signal Strength (an integer: 34, 86, etc) indicating how close to the source the tag is.
49
+
50
+ Happy Tagging!
2
51
 
3
- Description goes here.
4
52
 
5
53
  == Note on Patches/Pull Requests
6
54
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tag-it
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - evizitei
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-17 00:00:00 -05:00
18
+ date: 2010-10-18 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency