raspberry_pi_iot 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ae25f2ff44e0059630a76bbbbab6f2f71de661b
4
- data.tar.gz: 56d764313e3f77c99d2b5067090bd5a942288692
3
+ metadata.gz: 4e2405e70202230a69771af19d0e646d67acf4e0
4
+ data.tar.gz: 2053c94685c770d91a3b3acabb63e3d410d1f924
5
5
  SHA512:
6
- metadata.gz: fe7c8ae64d28e21eaa6a2a0b42fe2e89ea6a9f59bc73ed2cc749db58c939d37e7ab3350429912d4d1df45bb1058b708b8387834b966434b92ebcce24c814f2d9
7
- data.tar.gz: 2a88f43dfe79d59af39fc94b46ff450abe52338cb6996631174e4b94b416de0d1a3be962a988dbc51e53a831b2cf3450f60e07213e1e6dec8b96843f56c3edc2
6
+ metadata.gz: 94e13ef1739de22ac74013abec588095ac0e8fd81e3b4dd7ac98b6563b5037e0741988949e95b7c71ae6c29ec97c6a0c2a24987ae254c2c1b8eeac35031c0002
7
+ data.tar.gz: 2e4c08324cdbc14b43c0b129e24495aa4994d1e32e5a4e434fdc55d0d4f7001bca7d3b1419b6012c25e29888f18c4680b3a58016a068220d07f20b8c4ad332be
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
 
137
137
  <div id="footer">
138
- Generated on Thu Dec 20 18:09:46 2018 by
138
+ Generated on Wed Dec 26 18:10:11 2018 by
139
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140
140
  0.9.16 (ruby-2.3.3).
141
141
  </div>
@@ -531,7 +531,7 @@
531
531
  </div>
532
532
 
533
533
  <div id="footer">
534
- Generated on Thu Dec 20 18:09:39 2018 by
534
+ Generated on Wed Dec 26 18:10:01 2018 by
535
535
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
536
536
  0.9.16 (ruby-2.3.3).
537
537
  </div>
@@ -266,7 +266,7 @@
266
266
  </div>
267
267
 
268
268
  <div id="footer">
269
- Generated on Thu Dec 20 18:09:41 2018 by
269
+ Generated on Wed Dec 26 18:10:05 2018 by
270
270
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
271
271
  0.9.16 (ruby-2.3.3).
272
272
  </div>
@@ -266,7 +266,7 @@
266
266
  </div>
267
267
 
268
268
  <div id="footer">
269
- Generated on Thu Dec 20 18:09:41 2018 by
269
+ Generated on Wed Dec 26 18:10:04 2018 by
270
270
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
271
271
  0.9.16 (ruby-2.3.3).
272
272
  </div>
@@ -547,7 +547,7 @@
547
547
  </div>
548
548
 
549
549
  <div id="footer">
550
- Generated on Thu Dec 20 18:09:40 2018 by
550
+ Generated on Wed Dec 26 18:10:03 2018 by
551
551
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
552
552
  0.9.16 (ruby-2.3.3).
553
553
  </div>
@@ -167,7 +167,7 @@
167
167
  </div>
168
168
 
169
169
  <div id="footer">
170
- Generated on Thu Dec 20 18:09:39 2018 by
170
+ Generated on Wed Dec 26 18:10:01 2018 by
171
171
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
172
172
  0.9.16 (ruby-2.3.3).
173
173
  </div>
@@ -236,7 +236,7 @@
236
236
  </div>
237
237
 
238
238
  <div id="footer">
239
- Generated on Thu Dec 20 18:09:39 2018 by
239
+ Generated on Wed Dec 26 18:10:02 2018 by
240
240
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
241
241
  0.9.16 (ruby-2.3.3).
242
242
  </div>
@@ -377,7 +377,7 @@
377
377
  </div>
378
378
 
379
379
  <div id="footer">
380
- Generated on Thu Dec 20 18:09:40 2018 by
380
+ Generated on Wed Dec 26 18:10:02 2018 by
381
381
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
382
382
  0.9.16 (ruby-2.3.3).
383
383
  </div>
@@ -158,7 +158,7 @@
158
158
  </div>
159
159
 
160
160
  <div id="footer">
161
- Generated on Thu Dec 20 18:09:40 2018 by
161
+ Generated on Wed Dec 26 18:10:02 2018 by
162
162
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
163
163
  0.9.16 (ruby-2.3.3).
164
164
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Thu Dec 20 18:09:38 2018 by
119
+ Generated on Wed Dec 26 18:10:00 2018 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.16 (ruby-2.3.3).
122
122
  </div>
@@ -106,7 +106,7 @@
106
106
  <h2>Overview</h2><div class="docstring">
107
107
  <div class="discussion">
108
108
 
109
- <p>Button - simple push button</p>
109
+ <p>Button - simple tactile / push button</p>
110
110
 
111
111
 
112
112
  </div>
@@ -1266,7 +1266,7 @@
1266
1266
  </div>
1267
1267
 
1268
1268
  <div id="footer">
1269
- Generated on Thu Dec 20 18:09:42 2018 by
1269
+ Generated on Wed Dec 26 18:10:07 2018 by
1270
1270
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1271
1271
  0.9.16 (ruby-2.3.3).
1272
1272
  </div>
@@ -277,7 +277,7 @@
277
277
  </div>
278
278
 
279
279
  <div id="footer">
280
- Generated on Thu Dec 20 18:09:43 2018 by
280
+ Generated on Wed Dec 26 18:10:08 2018 by
281
281
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
282
  0.9.16 (ruby-2.3.3).
283
283
  </div>
@@ -277,7 +277,7 @@
277
277
  </div>
278
278
 
279
279
  <div id="footer">
280
- Generated on Thu Dec 20 18:09:44 2018 by
280
+ Generated on Wed Dec 26 18:10:09 2018 by
281
281
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
282
  0.9.16 (ruby-2.3.3).
283
283
  </div>
@@ -351,7 +351,7 @@
351
351
  </div>
352
352
 
353
353
  <div id="footer">
354
- Generated on Thu Dec 20 18:09:43 2018 by
354
+ Generated on Wed Dec 26 18:10:07 2018 by
355
355
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
356
356
  0.9.16 (ruby-2.3.3).
357
357
  </div>
@@ -329,7 +329,7 @@
329
329
  </div>
330
330
 
331
331
  <div id="footer">
332
- Generated on Thu Dec 20 18:09:46 2018 by
332
+ Generated on Wed Dec 26 18:10:11 2018 by
333
333
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
334
334
  0.9.16 (ruby-2.3.3).
335
335
  </div>
@@ -154,7 +154,7 @@
154
154
  </div>
155
155
 
156
156
  <div id="footer">
157
- Generated on Thu Dec 20 18:09:45 2018 by
157
+ Generated on Wed Dec 26 18:10:10 2018 by
158
158
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
159
159
  0.9.16 (ruby-2.3.3).
160
160
  </div>
@@ -614,7 +614,7 @@
614
614
  </div>
615
615
 
616
616
  <div id="footer">
617
- Generated on Thu Dec 20 18:09:45 2018 by
617
+ Generated on Wed Dec 26 18:10:10 2018 by
618
618
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
619
619
  0.9.16 (ruby-2.3.3).
620
620
  </div>
@@ -232,7 +232,7 @@
232
232
  </div>
233
233
 
234
234
  <div id="footer">
235
- Generated on Thu Dec 20 18:09:45 2018 by
235
+ Generated on Wed Dec 26 18:10:10 2018 by
236
236
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
237
237
  0.9.16 (ruby-2.3.3).
238
238
  </div>
@@ -152,7 +152,7 @@
152
152
  </div>
153
153
 
154
154
  <div id="footer">
155
- Generated on Thu Dec 20 18:09:46 2018 by
155
+ Generated on Wed Dec 26 18:10:10 2018 by
156
156
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
157
157
  0.9.16 (ruby-2.3.3).
158
158
  </div>
@@ -247,7 +247,7 @@
247
247
  </div>
248
248
 
249
249
  <div id="footer">
250
- Generated on Thu Dec 20 18:09:46 2018 by
250
+ Generated on Wed Dec 26 18:10:11 2018 by
251
251
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
252
252
  0.9.16 (ruby-2.3.3).
253
253
  </div>
@@ -162,7 +162,7 @@
162
162
  </div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Thu Dec 20 18:09:47 2018 by
165
+ Generated on Wed Dec 26 18:10:11 2018 by
166
166
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
167
  0.9.16 (ruby-2.3.3).
168
168
  </div>
@@ -443,7 +443,7 @@
443
443
  </div>
444
444
 
445
445
  <div id="footer">
446
- Generated on Thu Dec 20 18:09:47 2018 by
446
+ Generated on Wed Dec 26 18:10:12 2018 by
447
447
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
448
448
  0.9.16 (ruby-2.3.3).
449
449
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Thu Dec 20 18:09:39 2018 by
119
+ Generated on Wed Dec 26 18:10:00 2018 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.16 (ruby-2.3.3).
122
122
  </div>
@@ -826,7 +826,7 @@ secs, then pause for &#39;switched_off&#39; secs</p>
826
826
  </div>
827
827
 
828
828
  <div id="footer">
829
- Generated on Thu Dec 20 18:09:48 2018 by
829
+ Generated on Wed Dec 26 18:10:13 2018 by
830
830
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
831
831
  0.9.16 (ruby-2.3.3).
832
832
  </div>
@@ -820,7 +820,7 @@ applications</p>
820
820
  </div>
821
821
 
822
822
  <div id="footer">
823
- Generated on Thu Dec 20 18:09:50 2018 by
823
+ Generated on Wed Dec 26 18:10:14 2018 by
824
824
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
825
825
  0.9.16 (ruby-2.3.3).
826
826
  </div>
@@ -124,6 +124,31 @@
124
124
  <li class="public ">
125
125
  <span class="summary_signature">
126
126
 
127
+ <a href="#disk_space-class_method" title="disk_space (class method)">.<strong>disk_space</strong>(mounted = &#39;/&#39;, hash = false) &#x21d2; Object </a>
128
+
129
+
130
+
131
+ </span>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"><div class='inline'>
142
+ <p>Return used and free disk space in KB on a file system or on all (with
143
+ &#39;*&#39;).</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
127
152
  <a href="#hardware_info-class_method" title="hardware_info (class method)">.<strong>hardware_info</strong> &#x21d2; Object </a>
128
153
 
129
154
 
@@ -142,6 +167,54 @@
142
167
  <p>Return hardware info as a hash.</p>
143
168
  </div></span>
144
169
 
170
+ </li>
171
+
172
+
173
+ <li class="public ">
174
+ <span class="summary_signature">
175
+
176
+ <a href="#host_ip-class_method" title="host_ip (class method)">.<strong>host_ip</strong> &#x21d2; Object </a>
177
+
178
+
179
+
180
+ </span>
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+ <span class="summary_desc"><div class='inline'>
191
+ <p>Return host ip-addresses as an Array.</p>
192
+ </div></span>
193
+
194
+ </li>
195
+
196
+
197
+ <li class="public ">
198
+ <span class="summary_signature">
199
+
200
+ <a href="#host_name-class_method" title="host_name (class method)">.<strong>host_name</strong> &#x21d2; Object </a>
201
+
202
+
203
+
204
+ </span>
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+ <span class="summary_desc"><div class='inline'>
215
+ <p>Return host name as a string.</p>
216
+ </div></span>
217
+
145
218
  </li>
146
219
 
147
220
 
@@ -180,7 +253,79 @@ href="https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board
180
253
 
181
254
 
182
255
  <div class="method_details first">
183
- <h3 class="signature first" id="hardware_info-class_method">
256
+ <h3 class="signature first" id="disk_space-class_method">
257
+
258
+ .<strong>disk_space</strong>(mounted = &#39;/&#39;, hash = false) &#x21d2; <tt>Object</tt>
259
+
260
+
261
+
262
+
263
+
264
+ </h3><div class="docstring">
265
+ <div class="discussion">
266
+
267
+ <p>Return used and free disk space in KB on a file system or on all (with
268
+ &#39;*&#39;)</p>
269
+
270
+
271
+ </div>
272
+ </div>
273
+ <div class="tags">
274
+
275
+
276
+ </div><table class="source_code">
277
+ <tr>
278
+ <td>
279
+ <pre class="lines">
280
+
281
+
282
+ 45
283
+ 46
284
+ 47
285
+ 48
286
+ 49
287
+ 50
288
+ 51
289
+ 52
290
+ 53
291
+ 54
292
+ 55
293
+ 56
294
+ 57
295
+ 58
296
+ 59
297
+ 60
298
+ 61
299
+ 62</pre>
300
+ </td>
301
+ <td>
302
+ <pre class="code"><span class="info file"># File 'lib/raspberry_pi.rb', line 45</span>
303
+
304
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_disk_space'>disk_space</span><span class='lparen'>(</span><span class='id identifier rubyid_mounted'>mounted</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span>
305
+ <span class='id identifier rubyid_disk_memory'>disk_memory</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
306
+ <span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>df -k</span><span class='tstring_end'>`</span></span>
307
+ <span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
308
+ <span class='id identifier rubyid_disk_memory'>disk_memory</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
309
+ <span class='kw'>end</span>
310
+ <span class='id identifier rubyid_disk_memory'>disk_memory</span><span class='period'>.</span><span class='id identifier rubyid_shift'>shift</span> <span class='comment'># deleie 1st array with titles
311
+ </span>
312
+ <span class='kw'>if</span> <span class='id identifier rubyid_mounted'>mounted</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>*</span><span class='tstring_end'>&#39;</span></span>
313
+ <span class='kw'>return</span> <span class='id identifier rubyid_hash'>hash</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_matrix2hash'>matrix2hash</span><span class='lparen'>(</span><span class='id identifier rubyid_disk_memory'>disk_memory</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_disk_memory'>disk_memory</span>
314
+ <span class='kw'>else</span>
315
+ <span class='id identifier rubyid_disk_memory'>disk_memory</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fs'>fs</span><span class='op'>|</span>
316
+ <span class='kw'>if</span> <span class='id identifier rubyid_fs'>fs</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_mounted'>mounted</span>
317
+ <span class='kw'>return</span> <span class='id identifier rubyid_hash'>hash</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_list2hash'>list2hash</span><span class='lparen'>(</span><span class='id identifier rubyid_fs'>fs</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_fs'>fs</span>
318
+ <span class='kw'>end</span>
319
+ <span class='kw'>end</span>
320
+ <span class='kw'>end</span>
321
+ <span class='kw'>end</span></pre>
322
+ </td>
323
+ </tr>
324
+ </table>
325
+ </div>
326
+
327
+ <div class="method_details ">
328
+ <h3 class="signature " id="hardware_info-class_method">
184
329
 
185
330
  .<strong>hardware_info</strong> &#x21d2; <tt>Object</tt>
186
331
 
@@ -244,6 +389,88 @@ href="https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board
244
389
  </td>
245
390
  </tr>
246
391
  </table>
392
+ </div>
393
+
394
+ <div class="method_details ">
395
+ <h3 class="signature " id="host_ip-class_method">
396
+
397
+ .<strong>host_ip</strong> &#x21d2; <tt>Object</tt>
398
+
399
+
400
+
401
+
402
+
403
+ </h3><div class="docstring">
404
+ <div class="discussion">
405
+
406
+ <p>Return host ip-addresses as an Array</p>
407
+
408
+
409
+ </div>
410
+ </div>
411
+ <div class="tags">
412
+
413
+
414
+ </div><table class="source_code">
415
+ <tr>
416
+ <td>
417
+ <pre class="lines">
418
+
419
+
420
+ 40
421
+ 41
422
+ 42</pre>
423
+ </td>
424
+ <td>
425
+ <pre class="code"><span class="info file"># File 'lib/raspberry_pi.rb', line 40</span>
426
+
427
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_host_ip'>host_ip</span>
428
+ <span class='backtick'>`</span><span class='tstring_content'>hostname -I</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span>
429
+ <span class='kw'>end</span></pre>
430
+ </td>
431
+ </tr>
432
+ </table>
433
+ </div>
434
+
435
+ <div class="method_details ">
436
+ <h3 class="signature " id="host_name-class_method">
437
+
438
+ .<strong>host_name</strong> &#x21d2; <tt>Object</tt>
439
+
440
+
441
+
442
+
443
+
444
+ </h3><div class="docstring">
445
+ <div class="discussion">
446
+
447
+ <p>Return host name as a string</p>
448
+
449
+
450
+ </div>
451
+ </div>
452
+ <div class="tags">
453
+
454
+
455
+ </div><table class="source_code">
456
+ <tr>
457
+ <td>
458
+ <pre class="lines">
459
+
460
+
461
+ 35
462
+ 36
463
+ 37</pre>
464
+ </td>
465
+ <td>
466
+ <pre class="code"><span class="info file"># File 'lib/raspberry_pi.rb', line 35</span>
467
+
468
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_host_name'>host_name</span>
469
+ <span class='backtick'>`</span><span class='tstring_content'>hostname</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
470
+ <span class='kw'>end</span></pre>
471
+ </td>
472
+ </tr>
473
+ </table>
247
474
  </div>
248
475
 
249
476
  <div class="method_details ">
@@ -307,7 +534,7 @@ href="https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board
307
534
  </div>
308
535
 
309
536
  <div id="footer">
310
- Generated on Thu Dec 20 18:09:39 2018 by
537
+ Generated on Wed Dec 26 18:10:00 2018 by
311
538
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
312
539
  0.9.16 (ruby-2.3.3).
313
540
  </div>