#!/usr/bin/php
<?php

require __DIR__.'/base/block.php';

$url = 'https://fr.wttr.in/?format=%l+%c+%t+%m';

$command = sprintf('curl %s', escapeshellarg($url));
$output = trim(shell_exec($command));

if (!empty($output)) {
    try {
        $city = explode(', ', $output)[0];

        echo block(
            'meteo',
            [
                'full_text' => 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);
}
Insérer
<div%key%id="gist-5c87a6ce5080f-f6a19e3a8baadc760fa8ea8d7ff3b9dc74c9fa57" class="gist-container"></div>
<script src="https://gist.deblan.org/fr/embedjs/5c87a6ce5080f" async></script>