diff --git a/templates/adsb_dashboard.html b/templates/adsb_dashboard.html index b24556f..fe267df 100644 --- a/templates/adsb_dashboard.html +++ b/templates/adsb_dashboard.html @@ -192,6 +192,10 @@ + + 🔊 + + OFF @@ -2271,6 +2275,10 @@ sudo make install const audioPlayer = document.getElementById('airbandPlayer'); audioPlayer.src = '/listening/audio/stream?' + Date.now(); + // Apply current volume setting + const volume = parseInt(document.getElementById('airbandVolume').value) || 80; + audioPlayer.volume = volume / 100; + // Initialize visualizer before playing initAirbandVisualizer(); @@ -2315,6 +2323,14 @@ sudo make install .catch(() => {}); } + function updateAirbandVolume() { + const audioPlayer = document.getElementById('airbandPlayer'); + const volume = parseInt(document.getElementById('airbandVolume').value) || 80; + if (audioPlayer) { + audioPlayer.volume = volume / 100; + } + } + // Initialize airband on page load document.addEventListener('DOMContentLoaded', initAirband);