diff --git a/__init__.py b/__init__.py index 938f8a6..317696d 100644 --- a/__init__.py +++ b/__init__.py @@ -1,31 +1,12 @@ from .nodes.translate_universal import ( - NODE_CLASS_MAPPINGS as TRANSLATE_MAPPINGS, - NODE_DISPLAY_NAME_MAPPINGS as TRANSLATE_DISPLAY + NODE_CLASS_MAPPINGS, + NODE_DISPLAY_NAME_MAPPINGS ) -from .nodes.amd_monitor import ( - NODE_CLASS_MAPPINGS as AMD_MONITOR_MAPPINGS, - NODE_DISPLAY_NAME_MAPPINGS as AMD_MONITOR_DISPLAY -) - -from .nodes.amd_monitor import ( - NODE_CLASS_MAPPINGS as AMD_MONITOR_MAPPINGS, - NODE_DISPLAY_NAME_MAPPINGS as AMD_MONITOR_DISPLAY -) - -NODE_CLASS_MAPPINGS = {} -NODE_DISPLAY_NAME_MAPPINGS = {} - -NODE_CLASS_MAPPINGS.update(TRANSLATE_MAPPINGS) -NODE_DISPLAY_NAME_MAPPINGS.update(TRANSLATE_DISPLAY) - -NODE_CLASS_MAPPINGS.update(AMD_MONITOR_MAPPINGS) -NODE_DISPLAY_NAME_MAPPINGS.update(AMD_MONITOR_DISPLAY) WEB_DIRECTORY = "./web" - __all__ = [ "NODE_CLASS_MAPPINGS", - "NODE_DISPLAY_NAME_MAPPINGS" + "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY" ] \ No newline at end of file diff --git a/nodes/_init_.py b/nodes/_init_.py index e69de29..dc8c771 100644 --- a/nodes/_init_.py +++ b/nodes/_init_.py @@ -0,0 +1,9 @@ +from .translate_universal import ( + NODE_CLASS_MAPPINGS, + NODE_DISPLAY_NAME_MAPPINGS +) + +__all__ = [ + "NODE_CLASS_MAPPINGS", + "NODE_DISPLAY_NAME_MAPPINGS" +] \ No newline at end of file diff --git a/nodes/amd_monitor.py b/nodes/amd_monitor.py deleted file mode 100644 index aeba0cf..0000000 --- a/nodes/amd_monitor.py +++ /dev/null @@ -1,56 +0,0 @@ -import time -import psutil - -class BangtrixAMDMonitor: - - @classmethod - def INPUT_TYPES(cls): - return { - "required": { - "refresh": ("BOOLEAN", {"default": True}), - } - } - - RETURN_TYPES = ( - "STRING", - "STRING", - "STRING", - "STRING", - ) - - RETURN_NAMES = ( - "gpu_usage", - "vram_usage", - "ram_usage", - "timer", - ) - - FUNCTION = "monitor" - CATEGORY = "Bangtrix Toolkit/AMD" - - def monitor(self, refresh): - - gpu_usage = "AMD Monitoring Active" - - ram = psutil.virtual_memory() - ram_usage = f"{ram.used / (1024**3):.2f} GB / {ram.total / (1024**3):.2f} GB" - - vram_usage = "VRAM Monitoring Coming Soon" - - timer = f"{time.time():.2f}" - - return ( - gpu_usage, - vram_usage, - ram_usage, - timer, - ) - - -NODE_CLASS_MAPPINGS = { - "BangtrixAMDMonitor": BangtrixAMDMonitor -} - -NODE_DISPLAY_NAME_MAPPINGS = { - "BangtrixAMDMonitor": "Bangtrix AMD Monitor 📊" -} \ No newline at end of file diff --git a/web/amd_monitor.css b/web/amd_monitor.css deleted file mode 100644 index 4f4edb4..0000000 --- a/web/amd_monitor.css +++ /dev/null @@ -1,29 +0,0 @@ -#bangtrix-amd-monitor { - position: fixed; - top: 20px; - right: 20px; - width: 260px; - - background: rgba(20,20,20,0.85); - backdrop-filter: blur(8px); - - border-radius: 12px; - padding: 14px; - - color: white; - z-index: 99999; - - font-family: Arial; - font-size: 13px; - - box-shadow: 0 0 15px rgba(0,0,0,0.4); -} - -#bangtrix-amd-monitor h3 { - margin: 0 0 10px 0; - font-size: 15px; -} - -.bangtrix-item { - margin-bottom: 8px; -} \ No newline at end of file diff --git a/web/amd_monitor.js b/web/amd_monitor.js deleted file mode 100644 index fe1c1d4..0000000 --- a/web/amd_monitor.js +++ /dev/null @@ -1,46 +0,0 @@ -import "./amd_monitor.css"; - -const panel = document.createElement("div"); - -panel.id = "bangtrix-amd-monitor"; - -panel.innerHTML = ` -