From 5786e6841c72b50b06c04a5b03516f1b3a06f952 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 14 Jan 2020 11:35:34 +0100 Subject: [PATCH] add meteo --- bar/src/meteo.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 bar/src/meteo.php diff --git a/bar/src/meteo.php b/bar/src/meteo.php new file mode 100755 index 0000000..916a8d0 --- /dev/null +++ b/bar/src/meteo.php @@ -0,0 +1,37 @@ +#!/usr/bin/php7.1 + pspan($output, '#fff'), + ] + ); + } catch(\Exception $e) { + } +} + +if (getenv('BLOCK_BUTTON') === '1') { + $url = 'https://fr.wttr.in/'; + $command = sprintf('xdg-open %s', escapeshellarg($url)); + shell_exec($command); +}