meteo.php

f6a19e3a8b init

12/03/2019 13h32 14s


1448a12282 diff

13/03/2019 11h31 44s

 $output = trim(shell_exec($command));
 
 if (!empty($output)) {
-    try {
-        $city = explode(', ', $output)[0];
-
-        echo block(
-            'meteo',
-            [
-                'full_text' => pspan($output, '#fff'),
-            ]
-        );
-    } catch(\Exception $e) {
-    }
+    echo block(
+        'meteo',
+        [
+            'full_text' => pspan($output, '#fff'),
+        ]
+    );
 }
 
 if (getenv('BLOCK_BUTTON') === '1') {