raspberry_pi_iot 0.0.12 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/doc/IoT.html +6 -4
  3. data/doc/RaspberryPiIoT.html +16 -10
  4. data/doc/_index.html +197 -21
  5. data/doc/class_list.html +1 -1
  6. data/doc/file.LICENSE.html +1 -1
  7. data/doc/file.README.html +15 -6
  8. data/doc/index.html +15 -6
  9. data/doc/method_list.html +590 -30
  10. data/doc/top-level-namespace.html +2 -2
  11. data/lib/iot/bh1750.rb +6 -4
  12. data/lib/iot/receptor.rb +6 -0
  13. data/lib/raspberry_pi.rb +1 -1
  14. data/lib/raspberry_pi_iot/version.rb +1 -1
  15. data/test/test.sh +5 -0
  16. data/test/test.txt +52 -169
  17. data/test/test_bh1750.rb +5 -0
  18. data/test/test_ky008.rb +41 -0
  19. metadata +2 -29
  20. data/doc/Actuator.html +0 -145
  21. data/doc/BH1750.html +0 -541
  22. data/doc/BME280.html +0 -276
  23. data/doc/BMP280.html +0 -276
  24. data/doc/BMxSensor.html +0 -557
  25. data/doc/BinaryActuator.html +0 -177
  26. data/doc/BinaryEffector.html +0 -246
  27. data/doc/BinaryReceptor.html +0 -387
  28. data/doc/BinarySensor.html +0 -168
  29. data/doc/Bus.html +0 -126
  30. data/doc/Button.html +0 -1276
  31. data/doc/DHT11.html +0 -287
  32. data/doc/DHT22.html +0 -287
  33. data/doc/DHTxxSensor.html +0 -361
  34. data/doc/DS18B20.html +0 -339
  35. data/doc/DigitalActuator.html +0 -164
  36. data/doc/DigitalEffector.html +0 -624
  37. data/doc/DigitalReceptor.html +0 -242
  38. data/doc/DigitalSensor.html +0 -162
  39. data/doc/Effector.html +0 -257
  40. data/doc/HCSR501.html +0 -172
  41. data/doc/HumitureSensor.html +0 -453
  42. data/doc/LED.html +0 -836
  43. data/doc/MAX44009.html +0 -830
  44. data/doc/RaspberryPi.html +0 -544
  45. data/doc/Receptor.html +0 -257
  46. data/doc/Sensor.html +0 -145
  47. data/doc/TemperatureSensor.html +0 -644
@@ -1,287 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: DHT11
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "DHT11";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (D)</a> &raquo;
40
-
41
-
42
- <span class="title">DHT11</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: DHT11
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></li>
78
-
79
- <li class="next"><span class='object_link'><a href="DigitalReceptor.html" title="DigitalReceptor (class)">DigitalReceptor</a></span></li>
80
-
81
- <li class="next"><span class='object_link'><a href="DigitalSensor.html" title="DigitalSensor (class)">DigitalSensor</a></span></li>
82
-
83
- <li class="next"><span class='object_link'><a href="TemperatureSensor.html" title="TemperatureSensor (class)">TemperatureSensor</a></span></li>
84
-
85
- <li class="next"><span class='object_link'><a href="HumitureSensor.html" title="HumitureSensor (class)">HumitureSensor</a></span></li>
86
-
87
- <li class="next"><span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></li>
88
-
89
- <li class="next">DHT11</li>
90
-
91
- </ul>
92
- <a href="#" class="inheritanceTree">show all</a>
93
-
94
- </dd>
95
- </dl>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <dl>
108
- <dt>Defined in:</dt>
109
- <dd>lib/dht_sensor.rb</dd>
110
- </dl>
111
-
112
- </div>
113
-
114
- <h2>Overview</h2><div class="docstring">
115
- <div class="discussion">
116
-
117
- <p>DHT11 - junior model, lower presicion</p>
118
-
119
-
120
- </div>
121
- </div>
122
- <div class="tags">
123
-
124
-
125
- </div>
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
- <h2>
134
- Instance Method Summary
135
- <small><a href="#" class="summary_toggle">collapse</a></small>
136
- </h2>
137
-
138
- <ul class="summary">
139
-
140
- <li class="public ">
141
- <span class="summary_signature">
142
-
143
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(pin) &#x21d2; DHT11 </a>
144
-
145
-
146
-
147
- </span>
148
-
149
-
150
- <span class="note title constructor">constructor</span>
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
- <span class="summary_desc"><div class='inline'>
160
- <p>A new instance of DHT11.</p>
161
- </div></span>
162
-
163
- </li>
164
-
165
-
166
- </ul>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></h3>
179
- <p class="inherited"><span class='object_link'><a href="DHTxxSensor.html#read_data-instance_method" title="DHTxxSensor#read_data (method)">#read_data</a></span></p>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="HumitureSensor.html" title="HumitureSensor (class)">HumitureSensor</a></span></h3>
190
- <p class="inherited"><span class='object_link'><a href="HumitureSensor.html#humidity-instance_method" title="HumitureSensor#humidity (method)">#humidity</a></span>, <span class='object_link'><a href="HumitureSensor.html#read_data-instance_method" title="HumitureSensor#read_data (method)">#read_data</a></span>, <span class='object_link'><a href="HumitureSensor.html#to_s-instance_method" title="HumitureSensor#to_s (method)">#to_s</a></span></p>
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="TemperatureSensor.html" title="TemperatureSensor (class)">TemperatureSensor</a></span></h3>
201
- <p class="inherited"><span class='object_link'><a href="TemperatureSensor.html#celsius-instance_method" title="TemperatureSensor#celsius (method)">#celsius</a></span>, <span class='object_link'><a href="TemperatureSensor.html#fahrenheit-instance_method" title="TemperatureSensor#fahrenheit (method)">#fahrenheit</a></span>, <span class='object_link'><a href="TemperatureSensor.html#kelvin-instance_method" title="TemperatureSensor#kelvin (method)">#kelvin</a></span>, <span class='object_link'><a href="TemperatureSensor.html#read_data-instance_method" title="TemperatureSensor#read_data (method)">#read_data</a></span>, <span class='object_link'><a href="TemperatureSensor.html#reaumur-instance_method" title="TemperatureSensor#reaumur (method)">#reaumur</a></span>, <span class='object_link'><a href="TemperatureSensor.html#temperature-instance_method" title="TemperatureSensor#temperature (method)">#temperature</a></span>, <span class='object_link'><a href="TemperatureSensor.html#to_s-instance_method" title="TemperatureSensor#to_s (method)">#to_s</a></span></p>
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="DigitalReceptor.html" title="DigitalReceptor (class)">DigitalReceptor</a></span></h3>
218
- <p class="inherited"><span class='object_link'><a href="DigitalReceptor.html#one_wire_file-class_method" title="DigitalReceptor.one_wire_file (method)">one_wire_file</a></span></p>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></h3>
229
- <p class="inherited"><span class='object_link'><a href="Receptor.html#model_name-instance_method" title="Receptor#model_name (method)">#model_name</a></span>, <span class='object_link'><a href="Receptor.html#name-instance_method" title="Receptor#name (method)">#name</a></span></p>
230
- <div id="constructor_details" class="method_details_list">
231
- <h2>Constructor Details</h2>
232
-
233
- <div class="method_details first">
234
- <h3 class="signature first" id="initialize-instance_method">
235
-
236
- #<strong>initialize</strong>(pin) &#x21d2; <tt><span class='object_link'><a href="" title="DHT11 (class)">DHT11</a></span></tt>
237
-
238
-
239
-
240
-
241
-
242
- </h3><div class="docstring">
243
- <div class="discussion">
244
-
245
- <p>Returns a new instance of DHT11</p>
246
-
247
-
248
- </div>
249
- </div>
250
- <div class="tags">
251
-
252
-
253
- </div><table class="source_code">
254
- <tr>
255
- <td>
256
- <pre class="lines">
257
-
258
-
259
- 26
260
- 27
261
- 28</pre>
262
- </td>
263
- <td>
264
- <pre class="code"><span class="info file"># File 'lib/dht_sensor.rb', line 26</span>
265
-
266
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span>
267
- <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='comma'>,</span> <span class='int'>11</span><span class='rparen'>)</span>
268
- <span class='kw'>end</span></pre>
269
- </td>
270
- </tr>
271
- </table>
272
- </div>
273
-
274
- </div>
275
-
276
-
277
- </div>
278
-
279
- <div id="footer">
280
- Generated on Wed Dec 26 18:10:08 2018 by
281
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
- 0.9.16 (ruby-2.3.3).
283
- </div>
284
-
285
- </div>
286
- </body>
287
- </html>
@@ -1,287 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: DHT22
8
-
9
- &mdash; Documentation by YARD 0.9.16
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "DHT22";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (D)</a> &raquo;
40
-
41
-
42
- <span class="title">DHT22</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: DHT22
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></li>
78
-
79
- <li class="next"><span class='object_link'><a href="DigitalReceptor.html" title="DigitalReceptor (class)">DigitalReceptor</a></span></li>
80
-
81
- <li class="next"><span class='object_link'><a href="DigitalSensor.html" title="DigitalSensor (class)">DigitalSensor</a></span></li>
82
-
83
- <li class="next"><span class='object_link'><a href="TemperatureSensor.html" title="TemperatureSensor (class)">TemperatureSensor</a></span></li>
84
-
85
- <li class="next"><span class='object_link'><a href="HumitureSensor.html" title="HumitureSensor (class)">HumitureSensor</a></span></li>
86
-
87
- <li class="next"><span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></li>
88
-
89
- <li class="next">DHT22</li>
90
-
91
- </ul>
92
- <a href="#" class="inheritanceTree">show all</a>
93
-
94
- </dd>
95
- </dl>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <dl>
108
- <dt>Defined in:</dt>
109
- <dd>lib/dht_sensor.rb</dd>
110
- </dl>
111
-
112
- </div>
113
-
114
- <h2>Overview</h2><div class="docstring">
115
- <div class="discussion">
116
-
117
- <p>DHT11 - senior model, higher presicion</p>
118
-
119
-
120
- </div>
121
- </div>
122
- <div class="tags">
123
-
124
-
125
- </div>
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
- <h2>
134
- Instance Method Summary
135
- <small><a href="#" class="summary_toggle">collapse</a></small>
136
- </h2>
137
-
138
- <ul class="summary">
139
-
140
- <li class="public ">
141
- <span class="summary_signature">
142
-
143
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(pin) &#x21d2; DHT22 </a>
144
-
145
-
146
-
147
- </span>
148
-
149
-
150
- <span class="note title constructor">constructor</span>
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
- <span class="summary_desc"><div class='inline'>
160
- <p>A new instance of DHT22.</p>
161
- </div></span>
162
-
163
- </li>
164
-
165
-
166
- </ul>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></h3>
179
- <p class="inherited"><span class='object_link'><a href="DHTxxSensor.html#read_data-instance_method" title="DHTxxSensor#read_data (method)">#read_data</a></span></p>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="HumitureSensor.html" title="HumitureSensor (class)">HumitureSensor</a></span></h3>
190
- <p class="inherited"><span class='object_link'><a href="HumitureSensor.html#humidity-instance_method" title="HumitureSensor#humidity (method)">#humidity</a></span>, <span class='object_link'><a href="HumitureSensor.html#read_data-instance_method" title="HumitureSensor#read_data (method)">#read_data</a></span>, <span class='object_link'><a href="HumitureSensor.html#to_s-instance_method" title="HumitureSensor#to_s (method)">#to_s</a></span></p>
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="TemperatureSensor.html" title="TemperatureSensor (class)">TemperatureSensor</a></span></h3>
201
- <p class="inherited"><span class='object_link'><a href="TemperatureSensor.html#celsius-instance_method" title="TemperatureSensor#celsius (method)">#celsius</a></span>, <span class='object_link'><a href="TemperatureSensor.html#fahrenheit-instance_method" title="TemperatureSensor#fahrenheit (method)">#fahrenheit</a></span>, <span class='object_link'><a href="TemperatureSensor.html#kelvin-instance_method" title="TemperatureSensor#kelvin (method)">#kelvin</a></span>, <span class='object_link'><a href="TemperatureSensor.html#read_data-instance_method" title="TemperatureSensor#read_data (method)">#read_data</a></span>, <span class='object_link'><a href="TemperatureSensor.html#reaumur-instance_method" title="TemperatureSensor#reaumur (method)">#reaumur</a></span>, <span class='object_link'><a href="TemperatureSensor.html#temperature-instance_method" title="TemperatureSensor#temperature (method)">#temperature</a></span>, <span class='object_link'><a href="TemperatureSensor.html#to_s-instance_method" title="TemperatureSensor#to_s (method)">#to_s</a></span></p>
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="DigitalReceptor.html" title="DigitalReceptor (class)">DigitalReceptor</a></span></h3>
218
- <p class="inherited"><span class='object_link'><a href="DigitalReceptor.html#one_wire_file-class_method" title="DigitalReceptor.one_wire_file (method)">one_wire_file</a></span></p>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></h3>
229
- <p class="inherited"><span class='object_link'><a href="Receptor.html#model_name-instance_method" title="Receptor#model_name (method)">#model_name</a></span>, <span class='object_link'><a href="Receptor.html#name-instance_method" title="Receptor#name (method)">#name</a></span></p>
230
- <div id="constructor_details" class="method_details_list">
231
- <h2>Constructor Details</h2>
232
-
233
- <div class="method_details first">
234
- <h3 class="signature first" id="initialize-instance_method">
235
-
236
- #<strong>initialize</strong>(pin) &#x21d2; <tt><span class='object_link'><a href="" title="DHT22 (class)">DHT22</a></span></tt>
237
-
238
-
239
-
240
-
241
-
242
- </h3><div class="docstring">
243
- <div class="discussion">
244
-
245
- <p>Returns a new instance of DHT22</p>
246
-
247
-
248
- </div>
249
- </div>
250
- <div class="tags">
251
-
252
-
253
- </div><table class="source_code">
254
- <tr>
255
- <td>
256
- <pre class="lines">
257
-
258
-
259
- 33
260
- 34
261
- 35</pre>
262
- </td>
263
- <td>
264
- <pre class="code"><span class="info file"># File 'lib/dht_sensor.rb', line 33</span>
265
-
266
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='rparen'>)</span>
267
- <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_pin'>pin</span><span class='comma'>,</span> <span class='int'>22</span><span class='rparen'>)</span>
268
- <span class='kw'>end</span></pre>
269
- </td>
270
- </tr>
271
- </table>
272
- </div>
273
-
274
- </div>
275
-
276
-
277
- </div>
278
-
279
- <div id="footer">
280
- Generated on Wed Dec 26 18:10:09 2018 by
281
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
- 0.9.16 (ruby-2.3.3).
283
- </div>
284
-
285
- </div>
286
- </body>
287
- </html>