| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 21 | { |
||
| 22 | $exec = exec('/usr/bin/python '.__DIR__.'/../../../bin/bmp_i2c.py'); |
||
| 23 | |||
| 24 | $json = json_decode($exec, true); |
||
| 25 | |||
| 26 | $varService = $this->getContainer()->get('vars'); |
||
| 27 | $varService->set('inside.temperature', $json['temp']); |
||
| 28 | $varService->set('inside.pressure', round($json['press'])); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |