diff --git a/coordinator/ui/layout/front_panel.lua b/coordinator/ui/layout/front_panel.lua index 78b034f..b6a5c30 100644 --- a/coordinator/ui/layout/front_panel.lua +++ b/coordinator/ui/layout/front_panel.lua @@ -139,14 +139,14 @@ local function init(panel, config) -- hardware labeling -- - local hw_labels = Rectangle{parent=main_page,y=term_h-7,width=15,height=5,border=border(1,s_hi_box.bkg,true),even_inner=true} + local hw_labels = Rectangle{parent=main_page,x=2,y=term_h-7,width=14,height=5,border=border(1,s_hi_box.bkg,true),even_inner=true} ---@diagnostic disable-next-line: undefined-field local comp_id = util.sprintf("%03d", os.getComputerID()) - TextBox{parent=hw_labels,text="FW "..ps.get("version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="NT v"..ps.get("comms_version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="S/N CRD-"..comp_id,fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="FW "..ps.get("version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="NT v"..ps.get("comms_version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="SN "..comp_id.."-CRD",fg_bg=s_hi_box} -- -- page handling diff --git a/reactor-plc/panel/front_panel.lua b/reactor-plc/panel/front_panel.lua index 985d00c..95004d2 100644 --- a/reactor-plc/panel/front_panel.lua +++ b/reactor-plc/panel/front_panel.lua @@ -157,9 +157,9 @@ local function init(panel, config) ---@diagnostic disable-next-line: undefined-field local comp_id = util.sprintf("%03d", os.getComputerID()) - TextBox{parent=hw_labels,text="FW "..databus.ps.get("version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="NT v"..databus.ps.get("comms_version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="S/N PLC-"..comp_id,fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="FW "..databus.ps.get("version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="NT v"..databus.ps.get("comms_version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="SN "..comp_id.."-PLC",fg_bg=s_hi_box} -- -- rps list diff --git a/rtu/panel/front_panel.lua b/rtu/panel/front_panel.lua index 4166783..48401f3 100644 --- a/rtu/panel/front_panel.lua +++ b/rtu/panel/front_panel.lua @@ -114,14 +114,14 @@ local function init(panel, config, units) -- hardware labeling -- - local hw_labels = Rectangle{parent=panel,y=term_h-6,width=15,height=5,border=border(1,s_hi_box.bkg,true),even_inner=true} + local hw_labels = Rectangle{parent=panel,x=2,y=term_h-6,width=14,height=5,border=border(1,s_hi_box.bkg,true),even_inner=true} ---@diagnostic disable-next-line: undefined-field local comp_id = util.sprintf("%03d", os.getComputerID()) - TextBox{parent=hw_labels,text="FW "..databus.ps.get("version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="NT v"..databus.ps.get("comms_version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="S/N RTU-"..comp_id,fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="FW "..databus.ps.get("version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="NT v"..databus.ps.get("comms_version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="SN "..comp_id.."-RTU",fg_bg=s_hi_box} -- -- speaker count diff --git a/supervisor/panel/front_panel.lua b/supervisor/panel/front_panel.lua index b86520b..cae6bce 100644 --- a/supervisor/panel/front_panel.lua +++ b/supervisor/panel/front_panel.lua @@ -79,14 +79,14 @@ local function init(panel, config) -- hardware labeling -- - local hw_labels = Rectangle{parent=main_page,y=term_h-7,width=15,height=5,border=border(1,s_hi_box.bkg,true),even_inner=true} + local hw_labels = Rectangle{parent=main_page,x=2,y=term_h-7,width=14,height=5,border=border(1,s_hi_box.bkg,true),even_inner=true} ---@diagnostic disable-next-line: undefined-field local comp_id = util.sprintf("%03d", os.getComputerID()) - TextBox{parent=hw_labels,text="FW "..databus.ps.get("version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="NT v"..databus.ps.get("comms_version"),fg_bg=s_hi_box} - TextBox{parent=hw_labels,text="S/N SVR-"..comp_id,fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="FW "..databus.ps.get("version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="NT v"..databus.ps.get("comms_version"),fg_bg=s_hi_box} + TextBox{parent=hw_labels,text="SN "..comp_id.."-SVR",fg_bg=s_hi_box} -- -- page handling