two_net 0.0.1 → 0.1.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +88 -1
  3. data/lib/two_net/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bbf714ae37d8f6c39b9b11a0e5cd4b0fede0e67
4
- data.tar.gz: cd3038f5156c30c9894121a3ca47838da8d97f2a
3
+ metadata.gz: 9ada21320ebe7cbc8919d209b037d336793d0e18
4
+ data.tar.gz: 7b81640a178caa4ddfa9a506ee82a209b86f1080
5
5
  SHA512:
6
- metadata.gz: 94696ce978f6a5f6477bcb70346ca1a77c077e55b0e338326f92462368f628c99fbd34bfe906d5d4541f9c839b5892b3c55c4b1f7b01d6a3219f93444b30372c
7
- data.tar.gz: 99175b4d8493fff9ec075c78ae181efd5c0c115494c8ddaa37f67e6f479d3fc8e6ff889e6afdc50c2cc165c9f0d8c11439e8a8fa129600f0cd4476ee56751bbe
6
+ metadata.gz: d9a6b1e37612e601a3ce27dafea6b659464889433dc7a9f27a891f552ce17be17658958c92bab8a96cf1ac46b9b28f8097f184c2495e91e5ef001ccef73a5a73
7
+ data.tar.gz: c437cdc349865ed2fd6511006d9e43037de46024863ccefb124f54f3e17f3acc21cf5fa5cebb3249eaf5f23ccc150cdfa8aae513718d6fc83179425bc9c5b741
data/README.rdoc CHANGED
@@ -1,3 +1,90 @@
1
1
  = TwoNet
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ TwoNet Gem is to connect to the Qualcomm 2net health system.
4
+
5
+ Information on 2net is at http://www.qualcommlife.com/wireless-health, with developer infomation at http://www.qualcommlife.com/2net-developer-tools
6
+
7
+ = Installing
8
+ Add the gem to the Gemfile
9
+ gem 'two_net'
10
+
11
+ = Access
12
+ Add the following environment variables.
13
+
14
+ Command line:
15
+ export TWONET_URL='<Your 2net URL>'
16
+ export TWONET_KEY='<Your 2net Key>'
17
+ export TWONET_SECRET='<Your 2net Secret>'
18
+
19
+ Application.rb:
20
+ ENV['TWONET_URL']='<Your 2net URL>'
21
+ ENV['TWONET_KEY']='<Your 2net Key>'
22
+ ENV['TWONET_SECRET']='<Your 2net Secret>'
23
+
24
+ = Usage
25
+ Sample of the commands in the library
26
+
27
+
28
+ == Generate GUID
29
+ TwoNet::Client.generate_guid
30
+ Generate a GUID
31
+
32
+ ==Get errors
33
+ TwoNet::Client.get_error
34
+ Display the last error
35
+
36
+ ==Show last error
37
+ TwoNet::Client.clear_error
38
+ Clear the last error
39
+
40
+ == Register
41
+ TwoNet::Client.register_user(guid)
42
+ Register the guid
43
+
44
+ == Delete
45
+ TwoNet::Client.delete_user(guid)
46
+ Delete the guid
47
+
48
+ == List GUIDS
49
+ TwoNet::Client.get_guids(guid)
50
+ List all guids in the system
51
+
52
+ == List System Sensors
53
+ TwoNet::Client.list_all_sensors(guid)
54
+ List all the sensors that a user can have
55
+
56
+ == Add Sensors
57
+ TwoNet::Client.add_sensor(guid,properties)
58
+ Add a sensor to a guid.
59
+
60
+ Returns track id
61
+ properties of the form
62
+
63
+ properties =
64
+ {:name=>:make, :value=> make },
65
+ {:name=>:model, :value=>model},
66
+ {:name=>:serialNumber, :value=>identification},
67
+ {:name=>:qualifier, :value=>1}
68
+
69
+ == Latest Data
70
+ TwoNet::Client.latest_reading(opts={})
71
+ guid = opts[:guid]
72
+ track_guid = opts[:track_guid]
73
+ Show the latest data for the track
74
+
75
+
76
+ == Latest Activity
77
+ TwoNet::Client.latest_activity(opts={})
78
+ guid = opts[:guid]
79
+ track_guid = opts[:track_guid]
80
+ timezone = opts[:timezone]
81
+ Show the latest data for the track
82
+
83
+ == Filtered Activity
84
+ TwoNet::Client.filtered_activity(opts={})
85
+ guid = opts[:guid]
86
+ track_guid = opts[:track_guid]
87
+ timezone = opts[:timezone]
88
+ start_date = opts[:start_date]
89
+ end_date = opts[:end_date]
90
+ Filter on a date/time
@@ -1,3 +1,3 @@
1
1
  module TwoNet
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: two_net
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Evaniew
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-05 00:00:00.000000000 Z
11
+ date: 2014-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -98,7 +98,7 @@ files:
98
98
  - test/dummy/README.rdoc
99
99
  - test/test_helper.rb
100
100
  - test/two_net_test.rb
101
- homepage: http://github.com
101
+ homepage: https://github.com/JustinJruby/two_net
102
102
  licenses: []
103
103
  metadata: {}
104
104
  post_install_message:
@@ -120,7 +120,7 @@ rubyforge_project:
120
120
  rubygems_version: 2.0.7
121
121
  signing_key:
122
122
  specification_version: 4
123
- summary: API Gem to connect to Qualcomm 2Net.
123
+ summary: Connect to Qualcomm 2Net.
124
124
  test_files:
125
125
  - test/dummy/app/assets/javascripts/application.js
126
126
  - test/dummy/app/assets/stylesheets/application.css