Skip to content

Commit

Permalink
Merge pull request #5 from mcrossley/master
Browse files Browse the repository at this point in the history
B3054 updates
  • Loading branch information
mcrossley authored Nov 1, 2019
2 parents 21ec4c7 + 36aca2e commit 5d04246
Show file tree
Hide file tree
Showing 26 changed files with 1,339 additions and 136 deletions.
377 changes: 377 additions & 0 deletions interface/alltimerecseditor.html

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions interface/calibrationsettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

<style type="text/css">
.radio {display:inline-block;padding-left:40px;vertical-align: middle;margin-top:10px;}

.radio + .radio, .checkbox + .checkbox {margin-top: 10px;}
</style>

Expand All @@ -46,7 +45,7 @@

</head>
<body>
<!-- NAVIGATION MENU -->
<!-- NAVIGATION MENU -->
<div class="navbar-nav navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
Expand Down Expand Up @@ -96,6 +95,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -133,8 +134,5 @@ <h1>Calibration settings</h1>
</div><!-- /row -->
</div><!-- /container -->
</div><!-- /footerwrap -->

</body>


</html>
9 changes: 3 additions & 6 deletions interface/charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">


<link href="css/main.css" rel="stylesheet">

<!-- jquery -->
Expand All @@ -29,17 +28,14 @@
padding-top: 60px;
background-color:lightsteelblue;
}

#chartcontainer {
min-height: 700px;
height: 700px;
margin-top:50px;
margin-bottom: 10px;
background-color:white;
}

</style>

</head>
<body>
<!-- NAVIGATION MENU -->
Expand Down Expand Up @@ -92,6 +88,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -154,5 +152,4 @@
</div><!-- /container -->
</div><!-- /footerwrap -->
</body>
</html>

</html>
172 changes: 172 additions & 0 deletions interface/currentcondeditor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Cumulus MX</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">

<link href="css/main.css" rel="stylesheet">

<!-- jquery -->
<script src="lib/jquery/jquery-latest.min.js"></script>
<script src="lib/jquery/jquery.tmpl.js"></script>

<!-- Bootstrap -->
<link href="lib/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="lib/bootstrap/css/bootstrap-theme.css" rel="stylesheet" />
<script src="lib/bootstrap/js/bootstrap.js"></script>

<!-- Alpaca -->
<script src="lib/alpaca/alpaca.js"></script>
<link href="lib/alpaca/alpaca.css" rel="stylesheet" />

<!-- Alpaca support for Bootstrap -->
<link href="lib/alpaca/alpaca-bootstrap.css" rel="stylesheet" />

<!-- Custom Files -->

<link href="css/cumulus.css" rel="stylesheet">

<style type="text/css">
body {
padding-top: 60px;
}
.top-buffer { margin-top:40px; }
.radio {display:inline-block;padding-left:40px;vertical-align: middle;margin-top:10px;}
.radio + .radio, .checkbox + .checkbox {margin-top: 10px;}
textarea {background: #fff}
</style>

<script>

$(document).ready(function () {
$.ajax({url: "api/settings/version.json", dataType:"json", success: function (result) {
$('#Version').text(result.Version);
$('#Build').text(result.Build);
}});

load();
});

function load() {
$.ajax({
url: 'api/edit/currentcond.json'
}).done(function(resp) {
//$('#inputCurrCond').val(resp.data);
$('#inputCurrCond')[0].value = resp.data;
}).fail(function(jqXHR, textStatus) {
alert('Something went wrong loading the text! (' + textStatus + ')');
});
}

function applyEntry() {
var body = $('#inputCurrCond')[0].value;
body = body.replace(/\n/g, ' ');
$.ajax({
url : 'api/edit/currcond',
type : 'POST',
data : body,
dataType: 'json'
}).done(function (result) {
console.log(result.result);
// notify user
if (result.result === 'Success') {
alert('Entry added/updated OK.');
load();
} else {
alert('Failed to add/update entry!');
}
}
).fail(function(jqXHR, textStatus) {
alert('Something went wrong updating the text! (' + textStatus + ')');
});
}
</script>
</head>
<body>
<!-- NAVIGATION MENU -->
<div class="navbar-nav navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Dashboard</a></li>
<li><a href="now.html">Now</a></li>
<li><a href="gauges.html">Gauges</a></li>
<li><a href="charts.html">Charts</a></li>
<li><a href="todayyest.html">Today/Yesterday</a></li>
<li><a href="records.html">Records</a></li>
<li><a href="extra.html">Extra sensors</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Data logs<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="datalogs.html">Data logs</a></li>
<li><a href="extradatalogs.html">Extra data logs</a></li>
<li><a href="dayfileviewer.html">Dayfile</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Reports<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="noaamonthreport.html">NOAA Month Report</a></li>
<li><a href="noaayearreport.html">NOAA Year Report</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Settings<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="stationsettings.html">Station settings</a></li>
<li><a href="internetsettings.html">Internet settings</a></li>
<li><a href="extrawebfiles.html">Extra web files</a></li>
<li><a href="calibrationsettings.html">Calibration settings</a></li>
<li><a href="noaasettings.html">NOAA settings</a></li>
<li><a href="mysqlsettings.html">MySQL settings</a></li>
</ul>
</li>
<li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Edit<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- END NAVIGATION MENU -->

<div class="container">
<h1>Current Conditions</h1>
<div class="row">
<div class="col-md-12">
<label for="inputCurrCond">Text to display - Note new lines will be replaced by spaces</label>
<textarea wrap="hard" id="inputCurrCond" style="height: 120px"></textarea>
<button type="button" class="btn btn-default" id="apply-button" onclick="applyEntry()" style="margin:10px;">Apply</button>
</div>
</div>

</div>
<!-- FOOTER -->
<div id="footerwrap">
<footer class="clearfix"></footer>
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-12">
<!--<p><img src="img/logo.png" alt=""></p>-->
<p>Cumulus MX <span id="Version"></span>&nbsp;b<span id="Build"></span></p>
</div>
</div><!-- /row -->
</div><!-- /container -->
</div><!-- /footerwrap -->
</body>
</html>
10 changes: 2 additions & 8 deletions interface/datalogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">


<link href="css/font-style.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">

Expand Down Expand Up @@ -73,13 +72,9 @@

table.api().ajax.url('api/data/logfile'+'?month='+value).load();
}

</script>


</head>
<body>

<!-- NAVIGATION MENU -->
<div class="navbar-nav navbar-inverse navbar-fixed-top">
<div class="container">
Expand Down Expand Up @@ -130,6 +125,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -230,8 +227,5 @@ <h1>Data log viewer</h1>
</div><!-- /row -->
</div><!-- /container -->
</div><!-- /footerwrap -->

</body>


</html>
2 changes: 2 additions & 0 deletions interface/dayfileviewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions interface/diaryeditor.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions interface/extra.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions interface/extradatalogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions interface/extrawebfiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions interface/gauges.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
Binary file added interface/img/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions interface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions interface/internetsettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
<ul class="dropdown-menu">
<li><a href="raintodayeditor.html">Today's rain</a></li>
<li><a href="diaryeditor.html">Weather Diary</a></li>
<li><a href="currentcondeditor.html">Current Conditions</a></li>
<li><a href="alltimerecseditor.html">All Time Records</a></li>
</ul>
</li>
</ul>
Expand Down
Loading

0 comments on commit 5d04246

Please sign in to comment.