mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 16:16:21 +00:00
Update AppImage
This commit is contained in:
@@ -86,6 +86,7 @@ cp "$SCRIPT_DIR/health_persistence.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "
|
|||||||
cp "$SCRIPT_DIR/flask_health_routes.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ flask_health_routes.py not found"
|
cp "$SCRIPT_DIR/flask_health_routes.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ flask_health_routes.py not found"
|
||||||
cp "$SCRIPT_DIR/flask_proxmenux_routes.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ flask_proxmenux_routes.py not found"
|
cp "$SCRIPT_DIR/flask_proxmenux_routes.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ flask_proxmenux_routes.py not found"
|
||||||
cp "$SCRIPT_DIR/flask_terminal_routes.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ flask_terminal_routes.py not found"
|
cp "$SCRIPT_DIR/flask_terminal_routes.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ flask_terminal_routes.py not found"
|
||||||
|
cp "$SCRIPT_DIR/hardware_monitor.py" "$APP_DIR/usr/bin/" 2>/dev/null || echo "⚠️ hardware_monitor.py not found"
|
||||||
|
|
||||||
echo "📋 Adding translation support..."
|
echo "📋 Adding translation support..."
|
||||||
cat > "$APP_DIR/usr/bin/translate_cli.py" << 'PYEOF'
|
cat > "$APP_DIR/usr/bin/translate_cli.py" << 'PYEOF'
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
import hardware_monitor
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
@@ -2700,6 +2701,17 @@ def get_temperature_info():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
# print(f"[v0] Error getting temperature info: {e}")
|
# print(f"[v0] Error getting temperature info: {e}")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if power_meter is None:
|
||||||
|
try:
|
||||||
|
rapl_power = hardware_monitor.get_power_info()
|
||||||
|
if rapl_power:
|
||||||
|
power_meter = rapl_power
|
||||||
|
# print(f"[v0] Power meter from RAPL: {power_meter.get('watts', 0)}W")
|
||||||
|
pass
|
||||||
|
except Exception as e:
|
||||||
|
# print(f"[v0] Error getting RAPL power info: {e}")
|
||||||
|
pass
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'temperatures': temperatures,
|
'temperatures': temperatures,
|
||||||
|
|||||||
Reference in New Issue
Block a user