feat: implement billboard monitor support and remove legacy code

This commit is contained in:
MayaTheShy
2026-03-26 14:16:23 -04:00
parent c1b1713699
commit 8a50bc586d
6 changed files with 378 additions and 627 deletions

View File

@@ -34,6 +34,8 @@ C.COMPOST_INTERVAL = 3
C.ALERT_INTERVAL = 15
C.CACHE_FILE = _configPath(".inventory_cache")
C.SMELTER_MONITOR_SIDE = "top"
C.BILLBOARD_MONITOR_SIDE = "" -- e.g. "monitor_0"; empty = disabled
C.BILLBOARD_TOP_ITEMS = 20 -- max items in billboard bar chart
C.DISABLED_RECIPES_FILE = _configPath(".disabled_recipes")
-- Network
@@ -117,7 +119,9 @@ function C.loadConfig()
if cfg.dropperName then C.DROPPER_NAME = cfg.dropperName end
if cfg.barrelName then C.BARREL_NAME = cfg.barrelName end
if cfg.monitorSide then C.MONITOR_SIDE = cfg.monitorSide end
if cfg.smelterMonitorSide then C.SMELTER_MONITOR_SIDE = cfg.smelterMonitorSide end
if cfg.smelterMonitorSide then C.SMELTER_MONITOR_SIDE = cfg.smelterMonitorSide end
if cfg.billboardMonitorSide then C.BILLBOARD_MONITOR_SIDE = cfg.billboardMonitorSide end
if cfg.billboardTopItems then C.BILLBOARD_TOP_ITEMS = cfg.billboardTopItems end
if cfg.pollInterval then C.POLL_INTERVAL = cfg.pollInterval end
if cfg.scanInterval then C.SCAN_INTERVAL = cfg.scanInterval end
if cfg.smeltInterval then C.SMELT_INTERVAL = cfg.smeltInterval end