Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!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">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <title>Pool Information</title>
- <!-- Bootstrap -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.js"></script>
- <script src="http://malsup.github.com/jquery.form.js"></script>
- <link href="http://www.drinkmorebeer.com/bootstrap/css/bootstrap.min.css" rel="stylesheet">
- <link href="http://www.drinkmorebeer.com/bootstrap/css/sticky-footer-navbar.css" rel="stylesheet">
- <link href="http://www.drinkmorebeer.com/bootstrap/css/highlight.css" rel="stylesheet">
- <link href="http://www.drinkmorebeer.com/bootstrap/css/main.css" rel="stylesheet">
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesnt work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <nav class="navbar navbar-default">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#">Pentair Controller</a>
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li class="active"><a href="#">Statistics</a></li>
- <li><a href="/pool/state/chlorinator">Chlorinator</a></li>
- <li><a href="/pool/state/schedule">Schedules</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Diagnostic <span class="caret"></span></a>
- <ul class="dropdown-menu">
- <li class="dropdown-header">Controller Information</li>
- <li><a href="/pool/state/metrics">Integration Metrics</a></li>
- <li><a href="/pool/state/arduino">Runtime Performance</a></li>
- <li role="separator" class="divider"></li>
- <li class="dropdown-header">Arduino Settings</li>
- <li><a href="/pool/state/debug">Console Debug Control</a></li>
- <li role="separator" class="divider"></li>
- <li class="dropdown-header">Other resources</li>
- <li><a href="https://personal.xively.com/feeds/805849745" target="_blank">Xively Graphs</a></li>
- <li><a href="http://192.168.1.165" target="_blank">Vera Controller</a></li>
- </ul>
- </li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Help<span class="caret"></span></a>
- <ul class="dropdown-menu">
- <li class="dropdown-header">API Usage</li>
- <li><a href="/pool/state/apiv1">API version 1</a></li>
- <li><a href="/pool/state/apiv2">API version 2</a></li>
- <li role="separator" class="divider"></li>
- <li class="dropdown-header">General</li>
- <li><a href="/pool/state/about">About</a></li>
- </ul>
- </li>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </nav>
- <div class="col-xs-4" style="min-width: 450px">
- <div class="panel panel-blue">
- <div class="panel-heading">General Pool Information</div>
- <div class="panel-body">
- <table class="table table-hover">
- <thead>
- <tr>
- <th>Circuit</th>
- <th>Value / Status</th>
- <th>Control</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Pump State</td>
- <td id="pumpState">On
- <td>
- <form id="pumpForm" action="http://192.168.1.150:2560/" method="get">
- <input type="hidden" name="circulate" value="off"/>
- <input type="submit" value="Toggle" />
- </form>
- </td>
- </tr>
- <tr>
- <td>Waterfall State</td>
- <td id="waterfallState">Off
- </td>
- <td>
- <form id="waterfallForm" action="http://192.168.1.150:2560/" method="get">
- <input type="hidden" name="waterfall" value="on"/>
- <input type="submit" value="Toggle" />
- </form>
- </td>
- </tr>
- <tr>
- <td>Cleaner State</td>
- <td id="cleanerState">Off
- </td>
- <td>
- <form id="cleanerForm" action="http://192.168.1.150:2560/" method="get">
- <input type="hidden" name="cleaner" value="on"/>
- <input type="submit" value="Toggle" />
- </form>
- </td>
- </tr>
- <tr>
- <td>Light State</td>
- <td id="lightState">Off
- </td>
- <td>
- <form id="lightForm" action="http://192.168.1.150:2560/" method="get">
- <input type="hidden" name="light" value="on"/>
- <input type="submit" value="Toggle" />
- </form>
- </td>
- </tr>
- <tr>
- <td>Pump RPM</td>
- <td id="pumpRPM">1600</td>
- <td>
- </td>
- </tr>
- <tr>
- <td>Pump Watts</td>
- <td id="pumpWatts">348</td>
- <td>
- </td>
- </tr>
- <tr>
- <td>Pool Temp</td>
- <td id="poolTemp">72</td>
- <td>
- </td>
- </tr>
- <tr>
- <td>Air Temp</td>
- <td id="airTemp">89</td>
- <td>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <script>
- $(document).ajaxStop(function() {
- $('#pumpForm').ajaxForm(function() {
- alert('The pumpForm was submitted successfully');
- });
- $('#cleanerForm').ajaxForm(function() {
- alert('The cleanerForm was submitted successfully');
- });
- $('#waterfallForm').ajaxForm(function() {
- alert('The waterfallForm was submitted successfully');
- });
- $('#lightForm').ajaxForm(function() {
- alert('The lightForm was submitted successfully');
- });
- });
- </script>
- <footer class="footer">
- <div class="container"> <p class="text-muted">Firmware version 1.0.10 compiled on 4-NOV-2016
- </div>
- </footer>
- <!-- jQuery (necessary for Bootstraps JavaScript plugins) -->
- <script src="http://www.drinkmorebeer.com/bootstrap/js/jQueryStatisticsForms.js"></script>
- <script src="http://www.drinkmorebeer.com/bootstrap/js/ajaxStatisticsRefresh.js"></script>
- <!-- Include all compiled plugins (below), or include individual files as needed -->
- <script src="http://www.drinkmorebeer.com/bootstrap/js/bootstrap.min.js"></script>
- <script src="http://www.drinkmorebeer.com/bootstrap/js/highlight.js"></script>
- <script src="http://www.drinkmorebeer.com/bootstrap/js/bootstrap-switch.js"></script>
- <script src="http://www.drinkmorebeer.com/bootstrap/js/main.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement