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,172 +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: HCSR501
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 = "HCSR501";
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 (H)</a> &raquo;
40
-
41
-
42
- <span class="title">HCSR501</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: HCSR501
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="BinarySensor.html" title="BinarySensor (class)">BinarySensor</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="BinaryReceptor.html" title="BinaryReceptor (class)">BinaryReceptor</a></span></li>
80
-
81
- <li class="next"><span class='object_link'><a href="BinarySensor.html" title="BinarySensor (class)">BinarySensor</a></span></li>
82
-
83
- <li class="next">HCSR501</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
- </dl>
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
- <dl>
102
- <dt>Defined in:</dt>
103
- <dd>lib/hcsr501.rb</dd>
104
- </dl>
105
-
106
- </div>
107
-
108
- <h2>Overview</h2><div class="docstring">
109
- <div class="discussion">
110
-
111
- <p>HCSR501 - PIR sensor</p>
112
-
113
-
114
- </div>
115
- </div>
116
- <div class="tags">
117
-
118
-
119
- </div>
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
- <h2>Method Summary</h2>
140
-
141
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="BinaryReceptor.html" title="BinaryReceptor (class)">BinaryReceptor</a></span></h3>
142
- <p class="inherited"><span class='object_link'><a href="BinaryReceptor.html#high%3F-instance_method" title="BinaryReceptor#high? (method)">#high?</a></span>, <span class='object_link'><a href="BinaryReceptor.html#initialize-instance_method" title="BinaryReceptor#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="BinaryReceptor.html#low%3F-instance_method" title="BinaryReceptor#low? (method)">#low?</a></span></p>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></h3>
153
- <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>
154
- <div id="constructor_details" class="method_details_list">
155
- <h2>Constructor Details</h2>
156
-
157
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="BinaryReceptor.html#initialize-instance_method" title="BinaryReceptor#initialize (method)">BinaryReceptor</a></span></p>
158
-
159
- </div>
160
-
161
-
162
- </div>
163
-
164
- <div id="footer">
165
- Generated on Wed Dec 26 18:10:11 2018 by
166
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
- 0.9.16 (ruby-2.3.3).
168
- </div>
169
-
170
- </div>
171
- </body>
172
- </html>
@@ -1,453 +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: HumitureSensor
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 = "HumitureSensor";
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 (H)</a> &raquo;
40
-
41
-
42
- <span class="title">HumitureSensor</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: HumitureSensor
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="TemperatureSensor.html" title="TemperatureSensor (class)">TemperatureSensor</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">HumitureSensor</li>
86
-
87
- </ul>
88
- <a href="#" class="inheritanceTree">show all</a>
89
-
90
- </dd>
91
- </dl>
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- <dl>
104
- <dt>Defined in:</dt>
105
- <dd>lib/humiture_sensor.rb</dd>
106
- </dl>
107
-
108
- </div>
109
-
110
- <h2>Overview</h2><div class="docstring">
111
- <div class="discussion">
112
-
113
- <p>HumitureSensor - combined humidity &amp; temperature sensor</p>
114
-
115
-
116
- </div>
117
- </div>
118
- <div class="tags">
119
-
120
-
121
- </div><div id="subclasses">
122
- <h2>Direct Known Subclasses</h2>
123
- <p class="children"><span class='object_link'><a href="BMxSensor.html" title="BMxSensor (class)">BMxSensor</a></span>, <span class='object_link'><a href="DHTxxSensor.html" title="DHTxxSensor (class)">DHTxxSensor</a></span></p>
124
- </div>
125
-
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="#humidity-instance_method" title="#humidity (instance method)">#<strong>humidity</strong> &#x21d2; Object </a>
144
-
145
-
146
-
147
- </span>
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
- <span class="summary_desc"><div class='inline'>
158
- <p>Humidity in per cents.</p>
159
- </div></span>
160
-
161
- </li>
162
-
163
-
164
- <li class="public ">
165
- <span class="summary_signature">
166
-
167
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; HumitureSensor </a>
168
-
169
-
170
-
171
- </span>
172
-
173
-
174
- <span class="note title constructor">constructor</span>
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
- <span class="summary_desc"><div class='inline'>
184
- <p>A new instance of HumitureSensor.</p>
185
- </div></span>
186
-
187
- </li>
188
-
189
-
190
- <li class="public ">
191
- <span class="summary_signature">
192
-
193
- <a href="#read_data-instance_method" title="#read_data (instance method)">#<strong>read_data</strong> &#x21d2; Object </a>
194
-
195
-
196
-
197
- </span>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- <span class="summary_desc"><div class='inline'></div></span>
208
-
209
- </li>
210
-
211
-
212
- <li class="public ">
213
- <span class="summary_signature">
214
-
215
- <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
216
-
217
-
218
-
219
- </span>
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
- <span class="summary_desc"><div class='inline'>
230
- <p>Temperature &amp; humidity as a string.</p>
231
- </div></span>
232
-
233
- </li>
234
-
235
-
236
- </ul>
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="TemperatureSensor.html" title="TemperatureSensor (class)">TemperatureSensor</a></span></h3>
249
- <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#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></p>
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="DigitalReceptor.html" title="DigitalReceptor (class)">DigitalReceptor</a></span></h3>
266
- <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>
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Receptor.html" title="Receptor (class)">Receptor</a></span></h3>
277
- <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>
278
- <div id="constructor_details" class="method_details_list">
279
- <h2>Constructor Details</h2>
280
-
281
- <div class="method_details first">
282
- <h3 class="signature first" id="initialize-instance_method">
283
-
284
- #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="HumitureSensor (class)">HumitureSensor</a></span></tt>
285
-
286
-
287
-
288
-
289
-
290
- </h3><div class="docstring">
291
- <div class="discussion">
292
-
293
- <p>Returns a new instance of HumitureSensor</p>
294
-
295
-
296
- </div>
297
- </div>
298
- <div class="tags">
299
-
300
-
301
- </div><table class="source_code">
302
- <tr>
303
- <td>
304
- <pre class="lines">
305
-
306
-
307
- 8
308
- 9
309
- 10</pre>
310
- </td>
311
- <td>
312
- <pre class="code"><span class="info file"># File 'lib/humiture_sensor.rb', line 8</span>
313
-
314
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
315
- <span class='ivar'>@humidity</span><span class='comma'>,</span> <span class='ivar'>@temperature</span> <span class='op'>=</span> <span class='id identifier rubyid_read_data'>read_data</span>
316
- <span class='kw'>end</span></pre>
317
- </td>
318
- </tr>
319
- </table>
320
- </div>
321
-
322
- </div>
323
-
324
-
325
- <div id="instance_method_details" class="method_details_list">
326
- <h2>Instance Method Details</h2>
327
-
328
-
329
- <div class="method_details first">
330
- <h3 class="signature first" id="humidity-instance_method">
331
-
332
- #<strong>humidity</strong> &#x21d2; <tt>Object</tt>
333
-
334
-
335
-
336
-
337
-
338
- </h3><div class="docstring">
339
- <div class="discussion">
340
-
341
- <p>Humidity in per cents</p>
342
-
343
-
344
- </div>
345
- </div>
346
- <div class="tags">
347
-
348
-
349
- </div><table class="source_code">
350
- <tr>
351
- <td>
352
- <pre class="lines">
353
-
354
-
355
- 17
356
- 18
357
- 19</pre>
358
- </td>
359
- <td>
360
- <pre class="code"><span class="info file"># File 'lib/humiture_sensor.rb', line 17</span>
361
-
362
- <span class='kw'>def</span> <span class='id identifier rubyid_humidity'>humidity</span>
363
- <span class='ivar'>@humidity</span>
364
- <span class='kw'>end</span></pre>
365
- </td>
366
- </tr>
367
- </table>
368
- </div>
369
-
370
- <div class="method_details ">
371
- <h3 class="signature " id="read_data-instance_method">
372
-
373
- #<strong>read_data</strong> &#x21d2; <tt>Object</tt>
374
-
375
-
376
-
377
-
378
-
379
- </h3><table class="source_code">
380
- <tr>
381
- <td>
382
- <pre class="lines">
383
-
384
-
385
- 12
386
- 13
387
- 14</pre>
388
- </td>
389
- <td>
390
- <pre class="code"><span class="info file"># File 'lib/humiture_sensor.rb', line 12</span>
391
-
392
- <span class='kw'>def</span> <span class='id identifier rubyid_read_data'>read_data</span>
393
- <span class='lbracket'>[</span><span class='ivar'>@humidity</span><span class='comma'>,</span> <span class='ivar'>@temperature</span><span class='rbracket'>]</span>
394
- <span class='kw'>end</span></pre>
395
- </td>
396
- </tr>
397
- </table>
398
- </div>
399
-
400
- <div class="method_details ">
401
- <h3 class="signature " id="to_s-instance_method">
402
-
403
- #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
404
-
405
-
406
-
407
-
408
-
409
- </h3><div class="docstring">
410
- <div class="discussion">
411
-
412
- <p>Temperature &amp; humidity as a string</p>
413
-
414
-
415
- </div>
416
- </div>
417
- <div class="tags">
418
-
419
-
420
- </div><table class="source_code">
421
- <tr>
422
- <td>
423
- <pre class="lines">
424
-
425
-
426
- 22
427
- 23
428
- 24</pre>
429
- </td>
430
- <td>
431
- <pre class="code"><span class="info file"># File 'lib/humiture_sensor.rb', line 22</span>
432
-
433
- <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
434
- <span class='id identifier rubyid_sprintf'>sprintf</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%5.2f°, %5.2f %%</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='ivar'>@temperature</span><span class='comma'>,</span> <span class='ivar'>@humidity</span>
435
- <span class='kw'>end</span></pre>
436
- </td>
437
- </tr>
438
- </table>
439
- </div>
440
-
441
- </div>
442
-
443
- </div>
444
-
445
- <div id="footer">
446
- Generated on Wed Dec 26 18:10:12 2018 by
447
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
448
- 0.9.16 (ruby-2.3.3).
449
- </div>
450
-
451
- </div>
452
- </body>
453
- </html>