Skip to content

Conversation

@alex001x
Copy link

Feature: Automatic PDU Link Planner

This PR introduces a new Automatic PDU Link Planner for OpenDCIM v25.01+.
It automates power connections between devices and PDUs based on connector type, phase, and load balancing.

Key features
Three selectable operation modes:

Mode 1 – Load Balanced: evenly distributes all devices. (for one or more PDU)
Mode 2 – Dual Power Path: splits dual-fed devices between two PDUs.
Mode 3 – Intelligent Power Planner: balances load across C13/C19 connectors and phases (A/B/C).
001

Technical details :
Added modal and AJAX workflow (ajax_generate_powerplan.php, ajax_apply_powerplan.php).
Full compatibility with schema 25.01 (tables: fac_PowerConnectors, fac_PowerPhases, fac_PowerVoltages).
Handles connector/phase detection and generates alerts if incomplete.
Applies and logs connections into:
fac_PowerConnection
fac_PowerPorts (ConnectorID, PhaseID, VoltageID)
Visual power load summary with color-coded phase bars.
Integrated with i18n (new entries in openDCIM.po).

Requirements :
OpenDCIM v25.01 or later.
At least one cabinet with 2 PDUs to use the Intelligent mode.
Proper ConnectorID and PhaseID configuration in fac_PowerPorts.

Access control :
Read-only users → preview and print only.
Write-access users → can apply and persist changes.

Localization :
All strings wrapped in __() with English/French translations provided.

Example usage :
Open cabnavigator.php?cabinetID=
Click Automatic PDU Link Planner
Choose a mode → Generate Plan
Optionally Apply and Save or Print Power Plan

002 010 005 012 013 014

@alex001x alex001x changed the title Feature/automatic pdu link planner (multi-phase, connector-aware balancing) v < 25.01 Feature/automatic pdu link planner (multi-phase, connector-aware balancing) v25.01+ Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant