google_anymote 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/discover +5 -4
- data/lib/google_anymote/version.rb +1 -1
- metadata +1 -1
data/bin/discover
CHANGED
@@ -34,7 +34,7 @@ begin
|
|
34
34
|
devices['screens'] = {}
|
35
35
|
# Find as many devices as we can in n seconds
|
36
36
|
Timeout::timeout(4) {
|
37
|
-
|
37
|
+
print "Looking for devices..."
|
38
38
|
loop do
|
39
39
|
# Wait for data to hit our socket...
|
40
40
|
data,from = listener.recvfrom(100)
|
@@ -50,13 +50,14 @@ begin
|
|
50
50
|
devices['screens'][reply[1]] = {'host' => host, 'port' => port, 'uri' => uri}
|
51
51
|
# puts " found device: #{devices['screens'][reply[1]]}"
|
52
52
|
end
|
53
|
+
|
54
|
+
# Update the display to let the user know that we are still searching
|
55
|
+
print "."
|
53
56
|
end
|
54
57
|
}
|
55
58
|
rescue Timeout::Error => e
|
56
|
-
puts "
|
57
|
-
puts devices.to_yaml.encoding
|
59
|
+
puts "\nSearch complete. I found a total of #{devices['screens'].size} GoogleTV(s).\n"
|
58
60
|
puts devices.to_yaml
|
59
|
-
puts devices.to_yaml.encoding
|
60
61
|
end
|
61
62
|
|
62
63
|
# Clean up
|