From df76380950b3f4e157a7c945f99fe82d808ed7e4 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 15 Feb 2026 21:55:22 -0500 Subject: [PATCH] Bugs --- js/beestat/setting.js | 2 +- js/component/card/three_d.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/js/beestat/setting.js b/js/beestat/setting.js index 73f4d1a..37efafd 100644 --- a/js/beestat/setting.js +++ b/js/beestat/setting.js @@ -80,7 +80,7 @@ beestat.setting = function(argument_1, opt_value, opt_callback) { 'visualize.heat_map_static.occupancy.min': 0, 'visualize.heat_map_static.occupancy.max': 100, 'visualize.hide_affiliate': false, - 'visualize.three_d.show_labels': false, + 'visualize.three_d.show_labels': true, 'visualize.three_d.auto_rotate': false, 'visualize.three_d.show_walls': false, 'visualize.three_d.show_roof': false, diff --git a/js/component/card/three_d.js b/js/component/card/three_d.js index d7e457c..28c1ebf 100644 --- a/js/component/card/three_d.js +++ b/js/component/card/three_d.js @@ -375,7 +375,7 @@ beestat.component.card.three_d.prototype.decorate_drawing_pane_ = function(paren // Get current time of day const now = moment(); const current_hour = now.hour(); - const current_minute = now.minute(); + const current_minute = Math.floor(now.minute() / 5) * 5; if (beestat.setting('visualize.range_type') === 'dynamic') { // Set the date, then apply current time of day @@ -393,7 +393,8 @@ beestat.component.card.three_d.prototype.decorate_drawing_pane_ = function(paren beestat.setting('visualize.range_static.begin') + ' 00:00:00' ) .hour(current_hour) - .minute(current_minute); + .minute(current_minute) + .second(0); } // Default environment date to today. @@ -458,6 +459,10 @@ beestat.component.card.three_d.prototype.decorate_drawing_pane_ = function(paren * @return {boolean} */ beestat.component.card.three_d.prototype.get_show_environment_ = function() { + if (beestat.user.has_early_access() !== true) { + return false; + } + const show_environment = beestat.setting('visualize.three_d.show_environment'); if (show_environment !== undefined) { return show_environment !== false;