<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="BeieliPi - Bienenstock-Monitoring">
    <meta name="author" content="Joerg Lehmann, nbit Informatik GmbH">
    <link rel="icon" href="/static/images/favicon.ico">
    <title>BeieliPi - Bienenstock-Monitoring</title>
    
    <link href="/static/dist/toolkit.min.css" rel="stylesheet">
    <link href="/static/css/customize.css" rel="stylesheet">

    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/dist/toolkit.min.js"></script>
  </head>

  <body>
    <div class="container">
      <div id="banner">
      </div>
      <nav class="navbar nav-pills navbar-default">
        <div class="container-fluid">
          <div class="text-center">
            <h3>BeieliPi Zugang via WLAN-Hotspot</h3>
            <p>Zugang zu dieser Seite: Verbinden (WLAN) mit SSID <strong>beielipi</strong> (kein Passwort), dann Aufruf von <strong>http://beielipi.local</strong></p>
            <p>Hotspot aktivieren per SMS an {{ beielipi_mobile_number }}, Text: "hotspot on" (zum Deaktivieren: "hotspot off")</p>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
            </ul>
          </div>
        </div>
      </nav>
      <div class="jumbotron container-fluid myjumbotron">
        % for item in scales.keys():
          <a href="/scale/{{scales[item]['alias'].replace(' ','_')}}/{{ infotime }}" target="_blank" type="button" class="btn btn-primary btn-lg btn-block"><h2>{{scales[item]['alias']}}</h2><h1>{{scales[item]['last_weight']}}</h1><p>letzte Messung: {{scales[item]['last_weight_timestamp']}}, letzter Schwarmalarm: {{scales[item]['last_swarmalarm']}}</p></a>
          <p></p>
        % end
          <a href="/download/{{ infotime }}" type="button" class="btn btn-info btn-lg btn-block"><h2>Messdaten herunterladen</h2><small>L&auml;dt Daten des aktuellen Jahres herunter.</small></a>
          <p></p>
          <button type="button" class="btn btn-info btn-block" data-toggle="collapse" data-target="#infotext">Zeige Infos zu BeieliPi</button>
          <div id="infotext" class="collapse">
            <p></p>
            {{ !infotext }}
          </div>
      </div>
    </div> 
  </body>
</html>
