#!/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)) {
    echo block(
        'meteo',
        [
            'full_text' => pspan($output, '#fff'),
        ]
    );
}

if (getenv('BLOCK_BUTTON') === '1') {
    $url = 'https://fr.wttr.in/';
    $command = sprintf('xdg-open %s', escapeshellarg($url));
    shell_exec($command);
}
Insertar
<div%key%id="gist-5c87a6ce5080f-1448a12282f6a4e7268cd8bae7a2e5c03de5fed4" class="gist-container"></div>
<script src="https://gist.deblan.org/es/embedjs/5c87a6ce5080f/1448a12282f6a4e7268cd8bae7a2e5c03de5fed4" async></script>