Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
20 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
21 | { |
||
22 | |||
23 | 1 | $lines = []; |
|
24 | |||
25 | 1 | $varService = $this->getContainer()->get('vars'); |
|
26 | |||
27 | 1 | $lines[0] = "[Internet] [".date('H:i').']'; |
|
28 | 1 | $lines[1] = "Ping: ".$varService->get('internet.ping')->getValue()." ms"; |
|
29 | 1 | $lines[2] = "Upload: ".(round($varService->get('internet.upload')->getValue()/10000)/100)." mbps"; |
|
30 | 1 | $lines[3] = "Dload: ".(round($varService->get('internet.download')->getValue()/10000)/100)." mbps"; |
|
31 | |||
32 | 1 | exec('/usr/bin/python '.__DIR__.'/../../../bin/lcd_i2c.py "'. |
|
33 | 1 | $lines[0].'" "'. |
|
34 | 1 | $lines[1].'" "'. |
|
35 | 1 | $lines[2].'" "'. |
|
36 | 1 | $lines[3].'"'); |
|
37 | 1 | } |
|
38 | } |
||
39 |