This commit is contained in:
mcguirepr89
2022-02-27 15:27:57 -05:00
parent 79caccafb3
commit 7fa41cdc28
7 changed files with 71 additions and 139 deletions
+4 -8
View File
@@ -68,8 +68,7 @@ $speciestally = $result5->fetchArray(SQLITE3_ASSOC);
</style>
</head>
<body>
<div>
</div>
<div class="overview">
<table>
<tr>
<th>Total</th>
@@ -88,9 +87,6 @@ $speciestally = $result5->fetchArray(SQLITE3_ASSOC);
</form>
</tr>
</table>
</div>
<div>
<table>
<tr>
<th>Most Recent Detection</th>
@@ -112,7 +108,7 @@ $speciestally = $result5->fetchArray(SQLITE3_ASSOC);
<td><?php echo $mostrecent['Confidence'];?></td>
</tr>
</table>
</div>
</div>
<?php
if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
echo "<img class=\"centered\" src=\"/Charts/$chart?nocache=time()\">";
@@ -120,6 +116,6 @@ if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
echo "<p>No Detections For Today</p>";
}
?>
<h3>Currently Analyzing</h3>
<img class="centered" style="width:100%;" src='/spectrogram.png?nocache=<?php echo time();?>' >
<h3 class="centered">Currently Analyzing</h3>
<img class="full" src='/spectrogram.png?nocache=<?php echo time();?>' >
</html>
-99
View File
@@ -1,99 +0,0 @@
/* style sheet */
* {
font-family: 'Arial', 'Gill Sans', 'Gill Sans MT',
' Calibri', 'Trebuchet MS', 'sans-serif';
box-sizing: border-box;
}
a {
text-decoration:none;
}
body {
background-color: rgb(119, 196, 135);
}
.column {
display:block;
width:33%;
margin-left:auto;
margin-right:auto;
}
.left {
float:left;
}
.right {
float:right;
width:66%;
}
table {
background-color: rgb(219, 255, 235);
margin: 0 auto;
font-size: large;
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid black;
}
h1 {
text-align: center;
color: black;
font-size: xx-large;
}
h2 {
margin-left: -150px;
text-align: center;
color: black;
font-size: large;
}
h3 {
text-align: center;
color: black;
font-size: large;
}
td {
background-color: rgb(219, 255, 235);
font-weight: lighter;
border: 1px solid black;
padding: 10px;
text-align: center;
}
th {
background-color: rgb(219, 255, 235);
font-weight: bold;
border: 1px solid black;
padding: 10px;
text-align: center;
}
button {
background-color: transparent;
font-size: large;
border:none;
cursor:pointer;
}
@media screen and (max-width: 1000px) {
h2 {
margin-left: 0;
text-align: center;
color: black;
font-size: large;
}
.column {
width: 80%;
}
}
body::-webkit-scrollbar {
display:none
}
+7 -6
View File
@@ -56,6 +56,7 @@ if(isset($_POST['bydate'])){
</style>
</head>
<body>
<div class="play">
<table>
<?php
if(!isset($_POST['species'])){
@@ -86,20 +87,20 @@ while($results=$result->fetchArray(SQLITE3_ASSOC))
$comname = preg_replace('/\'/', '', $comname);
$file = $results['File_Name'];
$filename = "/By_Date/".$date."/".$comname."/".$results['File_Name'];
echo "<table>
echo "<table >
<tr>
<th>$name</th>
<th>Max Confidence: $maxconf</th>
<th colspan=\"2\">$name</th>
<th></th>
</tr>
<tr>
<th>Most confident recording: </th>
<td class=\"spectrogram\"><video controls poster=\"$filename.png\"><source src=\"$filename\"></video></td>
<td class=\"spectrogram\">Best Recording<br>$maxconf<br><video controls poster=\"$filename.png\"><source src=\"$filename\"></video></td>
</tr></table>";
};};?>
</td>
</form>
</tr>
</table>
</div>
<?php
if(isset($_POST['species'])){
$name = $_POST['species'];
@@ -109,7 +110,7 @@ while($results=$result->fetchArray(SQLITE3_ASSOC))
header("refresh: 0;");
}
$result2 = $statement2->execute();
echo "<table>
echo "<table >
<tr>
<th>When</th>
<th>Listen</th>
+13 -15
View File
@@ -32,23 +32,24 @@ if(isset($_POST['species'])){
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BirdNET-Pi DB</title>
<link rel="stylesheet" href="../style.css">
<style>
</style>
</style>
</head>
<body>
<section>
<div class="row">
<div class="column first">
<?php if(!isset($_POST['species'])){
echo "<p style=\"text-align:center\">Choose a species below to load images from Wikimedia Commons.</p>";
?><p class="centered">Choose a species below to load images from Wikimedia Commons.</p>
<?php
};?>
<table>
<tr>
<th>Common Name</th>
<th>Occurrences</th>
<th>Max Confidence Score</th>
<th>Best Recording</th>
<th>Common Name</th>
<th>Occurrences</th>
<th>Max Confidence Score</th>
<th>Best Recording</th>
</tr>
<?php
while($results=$result->fetchArray(SQLITE3_ASSOC))
@@ -65,17 +66,15 @@ $filename = "/By_Date/".$results['Date']."/".$comname."/".$results['File_Name'];
</form>
<td><?php echo $results['COUNT(*)'];?></td>
<td><?php echo $results['MAX(Confidence)'];?></td>
<td class="spectrogram"><video controls poster="<?php echo $filename.".png";?>"><source src="<?php echo $filename;?>" type="audio/mp3"></video></td>
<td style="width:50%"><video controls poster="<?php echo $filename.".png";?>"><source src="<?php echo $filename;?>" type="audio/mp3"></video></td>
</tr>
<?php
}
?>
</table>
</div>
<?php if(isset($_POST['species'])){
$species = $_POST['species'];
$str = "<div class=\"column second\">
<h3>$species</h3>
$str = "<h3>$species</h3>
<table>
<tr>
<th>Scientific Name</th>
@@ -123,7 +122,6 @@ while($results=$result3->fetchArray(SQLITE3_ASSOC)){
}
}}
?>
</section>
</body>
</html>