<?php
require_once "../../config/settings.inc.php";
require_once "../../include/sites.php";
require_once "../../include/myview.php";

$ctx = get_sites_context();
$station = $ctx->station;
$network = $ctx->network;
$metadata = $ctx->metadata;

$t = new MyView();
$t->iemselect2 = true;
$t->title = "Site Meteorograms";
$t->sites_current = "meteo";

$uri = sprintf(
    "/plotting/auto/plot/43/station:%s::network:%s.png",
    $station,
    $network
);
$t->content = <<<EOM

<p>This page creates a simple plot of recent observations from this site.</p>

<br /><img src="{$uri}" class="img-fluid">
EOM;
$t->render('sites.phtml');
