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