mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
disable stocks to reduce terminal clutter
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
"display_format": "{temp}°F\n{condition}"
|
||||
},
|
||||
"stocks": {
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"update_interval": 300,
|
||||
"symbols": [
|
||||
"ASTS", "SCHD", "INTC", "NVDA", "T", "VOO", "SPEST", "SMCI"
|
||||
@@ -82,7 +82,7 @@
|
||||
"display_format": "{symbol}: ${price} ({change}%)"
|
||||
},
|
||||
"crypto": {
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"update_interval": 300,
|
||||
"symbols": [
|
||||
"BTC-USD", "ETH-USD"
|
||||
|
||||
@@ -459,9 +459,12 @@ class MusicManager:
|
||||
self.display_manager.clear()
|
||||
logger.debug("[MusicManager.display] Display cleared (not force_clear path).")
|
||||
|
||||
logger.debug(f"[MusicManager.display] Font for 'Nothing Playing': {self.display_manager.regular_font}, Type: {type(self.display_manager.regular_font)}")
|
||||
text_width = self.display_manager.get_text_width("Nothing Playing", self.display_manager.regular_font)
|
||||
logger.debug(f"[MusicManager.display] Calculated text_width for 'Nothing Playing': {text_width}")
|
||||
x_pos = (self.display_manager.matrix.width - text_width) // 2
|
||||
y_pos = (self.display_manager.matrix.height // 2) - 4
|
||||
logger.debug(f"[MusicManager.display] Drawing 'Nothing Playing' at x={x_pos}, y={y_pos}")
|
||||
self.display_manager.draw_text("Nothing Playing", x=x_pos, y=y_pos, font=self.display_manager.regular_font)
|
||||
self.display_manager.update_display()
|
||||
logger.debug("[MusicManager.display] 'Nothing Playing' text drawn and display updated.")
|
||||
|
||||
Reference in New Issue
Block a user