BirdNET-Pi
$_POST['species'] ];
httpPost('/stats.php', $data);
}
}
if($_POST['view'] == "History"){
include('history.php');
$data = [ 'date' => $_POST['date'] ];
httpPost('/history.php', $data);
}
if($_POST['view'] == "Tools"){
echo "";
}
if($_POST['view'] == "Live Stream"){
echo "";}
if($_POST['view'] == "Extractions"){
include('play.php');
$data = [];
httpPost('/play.php', $data);}
if($_POST['view'] == "Settings"){
if(isset($_POST['submit'])){
$data = [
'latitude' => $_POST["latitude"],
'longitude' => $_POST["longitude"],
'birdweather_id' => $_POST["birdweather_id"],
'pushed_app_key' => $_POST["pushed_app_key"],
'pushed_app_secret' => $_POST["pushed_app_secret"],
'language' => $_POST["language"],
'submit' => $_POST["submit"],
];
$url = $_SERVER['HTTP_REFERER'];
httpPost("$url/scripts/update_config.php", $data);
}
include('scripts/config.php');
}
if($_POST['view'] == "Advanced"){
if(isset($_POST['submit'])){
$data = [
'caddy_pwd' => $_POST["caddy_pwd"],
'ice_pwd' => $_POST["ice_pwd"],
'webterminal_url' => $_POST["webterminal_url"],
'birdnetlog_url' => $_POST["birdnetlog_url"],
'birdnetpi_url' => $_POST["birdnetpi_url"],
'overlap' => $_POST["overlap"],
'confidence' => $_POST["confidence"],
'sensitivity' => $_POST["sensitivity"],
'full_disk' => $_POST["full_disk"],
'rec_card' => $_POST["rec_card"],
'channels' => $_POST["channels"],
'recording_length' => $_POST["recording_length"],
'extraction_length' => $_POST["extraction_length"],
'audiofmt' => $_POST["audiofmt"],
'status' => "Success"
];
$url = $_SERVER['HTTP_REFERER'];
httpPost("$url/scripts/update_config.php", $data);
}
include('scripts/advanced.php');
}
if($_POST['view'] == "Log"){
$url = 'http://birdnetpi.local:8080';
header("location: $url;");}
}
?>