Compare commits
2 Commits
f25a1f688c
...
b19004192c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b19004192c | ||
|
|
0ebc03d84e |
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,12 @@ flare_vessel_psi_hi_alm,facility,default,periodic,,,BIT,,0,,0,AL0_Flare_Vessel_P
|
||||
flare_vessel_psi_lo_alm,facility,default,periodic,,,BIT,,0,,0,AL0_Flare_Vessel_PSI_Lo,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
flare_vfd_faulted_alm,facility,default,periodic,,,BIT,,0,,0,AL0_Flare_VFD_Faulted,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
flare_yesterday,facility,default,periodic,,,FLOAT,,,,,Val_Flare_Yesterdays,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
fuel_gas_flow_rate,facility,default,periodic,,,FLOAT,,,,,Val_Fuel_Gas_FR,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
fuel_gas_last_month,facility,default,periodic,,,FLOAT,,,,,Val_Fuel_Gas_LM,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
fuel_gas_month,facility,default,periodic,,,FLOAT,,,,,Val_Fuel_Gas_CM,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
fuel_gas_t1,facility,default,periodic,,,FLOAT,,,,,Val_Fuel_Gas_T1,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
fuel_gas_today,facility,default,periodic,,,FLOAT,,,,,Val_Fuel_Gas_Todays,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
fuel_gas_yesterday,facility,default,periodic,,,FLOAT,,,,,Val_Fuel_Gas_Yesterdays,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
gas_vru_discharge_pressure,facility,default,periodic,,,FLOAT,,,,,Val_VRU_Gas_DP,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
gas_vru_flow_rate,facility,default,periodic,,,FLOAT,,,,,Val_VRU_Gas_FR,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
gas_vru_static_pressure,facility,default,periodic,,,FLOAT,,,,,Val_VRU_Gas_SP,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
@@ -284,7 +290,7 @@ vessel_2_hihi_trip_counter,facility,default,periodic,,,DINT,,0,,,Val_V2_HiHi_Tri
|
||||
vessel_2_hihi_tripped_alm,facility,default,periodic,,,BIT,,0,,0,AL0_V2_HiHi_Tripped,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_corrected_flow_rate,facility,default,periodic,,,FLOAT,,,,,Val_V2_Oil_CFR,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_density,facility,default,periodic,,,FLOAT,,,,,Val_V2_Oil_Density,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_flow_rate,facility,default,periodic,,,DINT,,0,,,Val_V2_Oil_FR,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_flow_rate,facility,default,periodic,,,FLOAT,,,,,Val_V2_Oil_FR,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_last_month,facility,default,periodic,,,FLOAT,,,,,Val_V2_Oil_LM,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_month,facility,default,periodic,,,FLOAT,,,,,Val_V2_Oil_CM,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
vessel_2_oil_t1,facility,default,periodic,,,FLOAT,,,,,Val_V2_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
MeasuringPointName,ControllerName,GroupName,UploadType,DeadZoneType,DeadZonePercent,DataType,ArrayIndex,EnableBit,BitIndex,reverseBit,Address,Decimal,Len,CodeType,ReadWrite,Unit,Description,Transform Type,MaxValue,MinValue,MaxScale,MinScale,Gain,Offset,startBit,endBit,Pt,Ct,Mapping_table,TransDecimal,bitMap,msecSample,storageLwTSDB,DataEndianReverse,ReadOffset,ReadLength,WriteOffset,WriteLength,DataParseMethod,BitId,pollCycle,EnableRequestCount,RequestCount
|
||||
MeasuringPointName,ControllerName,GroupName,UploadType,DeadZoneType,DeadZonePercent,DataType,ArrayIndex,EnableBit,BitIndex,reverseBit,Address,Decimal,Len,CodeType,ReadWrite,Unit,Description,Transform Type,MaxValue,MinValue,MaxScale,MinScale,Gain,Offset,startBit,endBit,Pt,Ct,Mapping_table,TransDecimal,bitMap,msecSample,storageLwTSDB,DataEndianReverse,ReadOffset,ReadLength,WriteOffset,WriteLength,DataParseMethod,BitId,pollCycle,EnableRequestCount,RequestCount
|
||||
air_compressor_discharge_lo_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_Air_Comp_Disch_Lo,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
air_compressor_discharge_psi,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Air_Comp_Disch_PSI,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
air_compressor_lo_discharge_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Air_Compressor_Lo_Discharge_PSI,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
@@ -106,6 +106,7 @@ vessel_1_oil_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vess
|
||||
vessel_1_oil_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_t3,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_T3,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
@@ -118,6 +119,7 @@ vessel_2_oil_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vess
|
||||
vessel_2_oil_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_t3,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_T3,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
@@ -130,6 +132,7 @@ vessel_3_oil_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vess
|
||||
vessel_3_oil_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_t3,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_T3,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
@@ -195,4 +198,4 @@ wtp_2_stop_pb_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP2_Stop_
|
||||
wtp_2_stop_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP2_Stop,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
|
@@ -1,198 +0,0 @@
|
||||
MeasuringPointName,ControllerName,GroupName,UploadType,DeadZoneType,DeadZonePercent,DataType,ArrayIndex,EnableBit,BitIndex,reverseBit,Address,Decimal,Len,CodeType,ReadWrite,Unit,Description,Transform Type,MaxValue,MinValue,MaxScale,MinScale,Gain,Offset,startBit,endBit,Pt,Ct,Mapping_table,TransDecimal,bitMap,msecSample,storageLwTSDB,DataEndianReverse,ReadOffset,ReadLength,WriteOffset,WriteLength,DataParseMethod,BitId,pollCycle,EnableRequestCount,RequestCount
|
||||
air_compressor_discharge_lo_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_Air_Comp_Disch_Lo,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
air_compressor_discharge_psi,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Air_Comp_Disch_PSI,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
air_compressor_lo_discharge_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Air_Compressor_Lo_Discharge_PSI,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
gas_flare_differential_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_DP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_flare_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_flare_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_flare_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_flare_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_flare_today,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_flare_yesterday,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Flare_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_density,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_Density,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_LastMonth,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_lifetime_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_Monthly,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_today_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_fuel_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Fuel_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_differential_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_DP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_today,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_sales_yesterday,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Sales_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_differential_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_DP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_today,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_1_yesterday,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_1_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_2_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_2_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_2_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_2_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_2_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_2_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_2_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_2_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_2_today,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_2_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_2_yesterday,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_2_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_3_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_3_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_3_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_3_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_3_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_3_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_3_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_3_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_3_today,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_3_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vessel_3_yesterday,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_Vessel_3_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_density,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_Density,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_LastMonth,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_lifetime_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_Monthly,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_static_pressure,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_SP,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_today_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_Today,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gas_vru_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Gas_VRU_Yesterday,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
gwr_reset_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_GWR_Reset,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
heater_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Heater_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
heater_water_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Heater_Water_LM,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
heater_water_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Heater_Water_Month,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
heater_water_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Heater_Water_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
heater_water_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Heater_Water_Todays,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
heater_water_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Heater_Water_Yest,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_bsw,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_BSW,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_density,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_Density,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_fault_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Lact_Unit_2_Faulted,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
lact_2_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_manual_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Manual_Lact_2_Run,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
lact_2_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Lact_2_Run,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
lact_2_run_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_Lact_Run_2,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_status,Peacemaker_Facility,default,periodic,,,BIT,,,,0,FBK_Lact_Unit_2_Running,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
lact_2_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_Todays,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_2_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_2_Meter_Yest,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_bsw,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_BSW,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_density,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_Density,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_faulted_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Lact_Unit_Faulted,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
lact_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_lifetime,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_Lifetime,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Lact_Run,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
lact_tank_level,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Tank_Level_Scaled,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_temp,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_Temp,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_Todays,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
lact_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Lact_Meter_Yest,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
light_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Lights,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
oil_tank_selector,Peacemaker_Facility,default,periodic,,,DINT,,0,,,Oil_Tank_Selector,,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
oil_working_tank_level_cmd,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,CMD_Oil_Working_Tank_Level,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
ot_1_check_radar_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Check_OT1_Radar,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
ot_1_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_OT1_High_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
ot_1_pv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_OT1_PV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
ot_1_sv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_OT1_SV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
ot_2_check_radar_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Check_OT2_Radar,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
ot_2_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_OT2_High_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
ot_2_pv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_OT2_PV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
ot_2_sv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_OT2_SV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
power_supply_fault_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Power_Supply_Failure,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
power_supply_status,Peacemaker_Facility,default,periodic,,,BIT,,,,0,Raw_Power_Supply_Status,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
st_1_check_radar_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Check_ST1_Radar,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
st_1_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_ST1_High_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
st_1_pv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_ST1_PV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
st_1_sv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_ST1_SV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
sts_either_wtp_run,Peacemaker_Facility,default,periodic,,,BIT,,,,0,Sts_Either_WTP_Run,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
ups_fault_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_UPS_Battery_Fault,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
ups_status,Peacemaker_Facility,default,periodic,,,BIT,,,,0,Raw_UPS_Status,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
vessel_1_oil_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_oil_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Oil_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_1_water_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_1_Water_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_oil_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Oil_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_2_water_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_2_Water_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_oil_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Oil_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_Month_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
vessel_3_water_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_Vessel_3_Water_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
water_tank_selector,Peacemaker_Facility,default,periodic,,,DINT,,0,,,Water_Tank_Selector,,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
well_1_producer_permissive_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Well_1_ESP_Producer_Permissive,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
well_2_producer_permissive_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Well_2_ESP_Producer_Permissive,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
well_3_producer_permissive_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Well_3_ESP_Producer_Permissive,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
well_4_producer_permissive_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Well_4_ESP_Producer_Permissive,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
well_5_producer_permissive_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_Well_5_ESP_Producer_Permissive,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
working_oil_tank_level,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Working_Oil_Tank_Level,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
working_oil_tank_lo_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Low_Working_Oil_Tank_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
working_water_tank_level,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Working_Water_Tank_Level,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
working_water_tank_lo_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Low_Working_Water_Tank_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_1_check_radar_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Check_WT1_Radar,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_1_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_WT1_High_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_1_possibly_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Water_Tanks_Possibly_High_1,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_1_pv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WT1_PV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wt_1_sv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WT1_SV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wt_2_check_radar_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Check_WT2_Radar,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_2_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_WT2_High_Level,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_2_possibly_hi_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_Water_Tanks_Possibly_High_2,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wt_2_pv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WT2_PV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wt_2_sv,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WT2_SV,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_alm,Peacemaker_Facility,default,periodic,,,DINT,,0,,,WTP1_Alarm,,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_control_valve_position,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,WTP1_Control_Valve_POS,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_discharge_psi,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_Discharge_PSI_Scaled,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_hi_discharge_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP1_Hi_Discharge,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_monthly_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_Monthly_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,WTP1_Run_CMD,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_ss_clear_fault_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP1_SS_ClearFault,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_ss_fault_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_WTP1_SS_Faulted,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_ss_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP1_SS_Run,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_ss_running,Peacemaker_Facility,default,periodic,,,BIT,,,,0,FBK_WTP1_SS_Running,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_start_pb_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP1_Start_PB,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_start_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP1_Start,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_stop_pb_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP1_Stop_PB,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_1_stop_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP1_Stop,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_1_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP1_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_alm,Peacemaker_Facility,default,periodic,,,DINT,,0,,,WTP2_Alarm,,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_control_valve_position,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,WTP2_Control_Valve_POS,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_discharge_psi,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Discharge_PSI_Scaled,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_flow_rate,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_FR,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_hi_discharge_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP2_Hi_Discharge,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_last_month_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_LastMonth_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_monthly_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Monthly_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,WTP2_Run_CMD,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_ss_clear_fault_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP2_SS_ClearFault,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_ss_fault_alm,Peacemaker_Facility,default,periodic,,,BIT,,,,0,AL0_WTP2_SS_Faulted,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_ss_run_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP2_SS_Run,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_ss_running,Peacemaker_Facility,default,periodic,,,BIT,,,,0,FBK_WTP2_SS_Running,,,,ro,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_start_pb_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP2_Start_PB,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_start_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP2_Start,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_stop_pb_cmd,Peacemaker_Facility,default,periodic,,,BIT,,,,0,CMD_WTP2_Stop_PB,,,,rw,,,none,,,,,,,,,,,,,0,,1,,,,,,,,,0,
|
||||
wtp_2_stop_spt,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,SPT_WTP2_Stop,2,,,rw,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_t1,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_T1,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_todays_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Todays_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
wtp_2_yesterday_total,Peacemaker_Facility,default,periodic,,,FLOAT,,,,,Val_WTP2_Yest_Total,2,,,ro,,,none,,,,,,,,,,,,,,,1,,,,,,,,,0,
|
||||
|
3721
Pub_Sub/ba_facility/thingsboard/tag_dump_ma_deuce_2026_March_04.csv
Normal file
3721
Pub_Sub/ba_facility/thingsboard/tag_dump_ma_deuce_2026_March_04.csv
Normal file
File diff suppressed because it is too large
Load Diff
43322
Pub_Sub/ba_facility/thingsboard/tag_dump_ma_deuce_2026_March_04.json
Normal file
43322
Pub_Sub/ba_facility/thingsboard/tag_dump_ma_deuce_2026_March_04.json
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
50
code snippets/convertDINTtoREAL.py
Normal file
50
code snippets/convertDINTtoREAL.py
Normal file
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/env python3
|
||||
# --------------------------------------------------------------
|
||||
# Re‑interpret a list of DINT‑strings as IEEE‑754 REALs
|
||||
# --------------------------------------------------------------
|
||||
import json, struct
|
||||
from pathlib import Path
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# 1. Load the JSON you already have
|
||||
# --------------------------------------------------------------
|
||||
source_file = Path("/Users/nico/Downloads/response_1772033457123.json") # <-- your file
|
||||
data = json.loads(source_file.read_text())
|
||||
|
||||
# The data you showed is a dict with one key; get the list
|
||||
raw_ts = data["vessel_2_oil_flow_rate"]
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# 2. Helper: reinterpret a 32‑bit signed int as a float
|
||||
# --------------------------------------------------------------
|
||||
def dint_str_to_real(value_str: str) -> float:
|
||||
"""Return the IEEE‑754 float that has the same 4‑byte bit pattern."""
|
||||
# Convert the string to a signed 32‑bit integer
|
||||
dint = int(value_str) # Python ints are unbounded; pack will truncate
|
||||
# Pack into 4 bytes (little‑endian) and unpack as a float
|
||||
return struct.unpack("<f", struct.pack("<i", dint))[0]
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# 3. Walk the list and add a new field with the real value
|
||||
# --------------------------------------------------------------
|
||||
for point in raw_ts:
|
||||
try:
|
||||
point["value"] = dint_str_to_real(point["value"])
|
||||
except Exception as exc:
|
||||
# In the unlikely event the string is not an int
|
||||
point["value_real"] = None
|
||||
point["value_error"] = str(exc)
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# 4. (Optional) Sort by timestamp – the sample you posted was
|
||||
# in descending order, but most time‑series libs expect ascending.
|
||||
# --------------------------------------------------------------
|
||||
raw_ts.sort(key=lambda p: p["ts"])
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# 5. Dump the corrected data back to JSON (or whatever you prefer)
|
||||
# --------------------------------------------------------------
|
||||
output_file = Path("/Users/nico/Downloads/response_1772033457123_corrected.json")
|
||||
output_file.write_text(json.dumps(data, indent=2, sort_keys=False))
|
||||
|
||||
print(f"✔ Converted {len(raw_ts)} points – written to {output_file}")
|
||||
62
code snippets/convertGetFormatToPostFormat.py
Normal file
62
code snippets/convertGetFormatToPostFormat.py
Normal file
@@ -0,0 +1,62 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Transform:
|
||||
{
|
||||
"<property>": [
|
||||
{"ts": 123, "value": 10},
|
||||
{"ts": 456, "value": 20},
|
||||
...
|
||||
],
|
||||
...
|
||||
}
|
||||
|
||||
into:
|
||||
[
|
||||
{"ts": 123, "values": {"<property>": 10}},
|
||||
{"ts": 456, "values": {"<property>": 20}},
|
||||
...
|
||||
]
|
||||
"""
|
||||
|
||||
import json
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
def transform(data: dict) -> list:
|
||||
"""
|
||||
Accepts a dict where each key is a property name and the value is a
|
||||
list of {ts, value} objects. Returns a list of objects sorted by
|
||||
timestamp, each with a 'values' dict that maps the property name to
|
||||
its value for that timestamp.
|
||||
"""
|
||||
# Group values by timestamp first (so if you have several properties
|
||||
# they’ll be merged on the same ts).
|
||||
grouped = defaultdict(dict)
|
||||
|
||||
for prop, items in data.items():
|
||||
for item in items:
|
||||
ts = item["ts"]
|
||||
grouped[ts][prop] = item["value"]
|
||||
|
||||
# Build the final list, sorted by ts for deterministic order
|
||||
result = [{"ts": ts, "values": grouped[ts]} for ts in sorted(grouped)]
|
||||
return result
|
||||
|
||||
|
||||
def main():
|
||||
# Load JSON from stdin or a file
|
||||
if len(sys.argv) > 1: # optional filename argument
|
||||
with open(sys.argv[1], "r", encoding="utf-8") as f:
|
||||
raw = json.load(f)
|
||||
else:
|
||||
raw = json.load(sys.stdin)
|
||||
|
||||
out = transform(raw)
|
||||
|
||||
# Pretty‑print to stdout
|
||||
json.dump(out, sys.stdout, indent=2, ensure_ascii=False)
|
||||
print() # add final newline
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
103
code snippets/extractTags.py
Normal file
103
code snippets/extractTags.py
Normal file
@@ -0,0 +1,103 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
extract_tags.py
|
||||
|
||||
Usage:
|
||||
python extract_tags.py <input.json> <output.csv>
|
||||
|
||||
Example:
|
||||
python extract_tags.py tags.json tags.csv
|
||||
"""
|
||||
|
||||
import json
|
||||
import csv
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Helper – Recursive walk
|
||||
# --------------------------------------------------------------------
|
||||
def walk_tag(base_name, tag_obj, writer, include_structs=False):
|
||||
"""
|
||||
Recursively walk a tag object and write every atomic leaf
|
||||
to the CSV writer.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
base_name : str
|
||||
The full name of the tag up to the current point
|
||||
(e.g. "WT2_Alarms.HiHI").
|
||||
tag_obj : dict
|
||||
The JSON dictionary for this tag.
|
||||
writer : csv.writer
|
||||
The CSV writer to write rows into.
|
||||
include_structs : bool
|
||||
If True, write a row for the struct itself
|
||||
(e.g. "WT2_Alarms.HiHI,TIMER").
|
||||
"""
|
||||
tag_type = tag_obj.get("tag_type")
|
||||
|
||||
if tag_type == "atomic":
|
||||
# Leaf – write it
|
||||
writer.writerow([base_name, tag_obj.get("data_type")])
|
||||
return
|
||||
|
||||
if tag_type == "struct":
|
||||
# Optionally write the struct tag itself
|
||||
if include_structs:
|
||||
writer.writerow([base_name, tag_obj.get("data_type_name")])
|
||||
|
||||
# struct data lives under `data_type`
|
||||
struct_data = tag_obj.get("data_type", {})
|
||||
internal_tags = struct_data.get("internal_tags", {})
|
||||
attributes = struct_data.get("attributes", [])
|
||||
|
||||
# Walk every attribute in the order the struct defines it
|
||||
for attr_name in attributes:
|
||||
subtag = internal_tags.get(attr_name)
|
||||
if not subtag:
|
||||
# Defensive: attribute mentioned but not defined
|
||||
continue
|
||||
|
||||
sub_name = f"{base_name}.{attr_name}"
|
||||
# Recurse – subtag may itself be a struct
|
||||
walk_tag(sub_name, subtag, writer, include_structs)
|
||||
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Main routine
|
||||
# --------------------------------------------------------------------
|
||||
def main(json_path, csv_path, include_structs=False):
|
||||
# Load the entire JSON file
|
||||
with open(json_path, "r", encoding="utf-8") as fp:
|
||||
data = json.load(fp)
|
||||
|
||||
# Open CSV for writing
|
||||
with open(csv_path, "w", newline="", encoding="utf-8") as fp:
|
||||
writer = csv.writer(fp)
|
||||
# Optional header
|
||||
writer.writerow(["Tag Name", "Data Type"])
|
||||
|
||||
# The top‑level JSON is a dictionary where each key
|
||||
# is the tag name and its value is the tag object.
|
||||
for top_tag, tag_obj in data.items():
|
||||
walk_tag(top_tag, tag_obj, writer, include_structs)
|
||||
|
||||
print(f"✅ Wrote {csv_path} with all tags")
|
||||
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Command‑line interface
|
||||
# --------------------------------------------------------------------
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 3:
|
||||
print(__doc__)
|
||||
sys.exit(1)
|
||||
|
||||
json_file = Path(sys.argv[1])
|
||||
csv_file = Path(sys.argv[2])
|
||||
|
||||
# Optional flag to also output struct tags
|
||||
include_struct = "--include-structs" in sys.argv
|
||||
|
||||
main(json_file, csv_file, include_struct)
|
||||
104
code snippets/extractTagsSort.py
Normal file
104
code snippets/extractTagsSort.py
Normal file
@@ -0,0 +1,104 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
extract_tags.py
|
||||
|
||||
Usage:
|
||||
python extract_tags.py <input.json> <output.csv> [--sort] [--include-structs]
|
||||
|
||||
--sort Sort the final rows alphabetically by tag name.
|
||||
--include-structs Write a row for the struct itself (e.g. "WT2_Alarms.HiHI,TIMER").
|
||||
|
||||
Example:
|
||||
python extract_tags.py tags.json tags.csv --sort
|
||||
"""
|
||||
|
||||
import json
|
||||
import csv
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
# Helper – Recursive walk
|
||||
# --------------------------------------------------------------------------- #
|
||||
def walk_tag(base_name, tag_obj, rows, include_structs=False):
|
||||
"""
|
||||
Recursively walk a tag object and append every atomic leaf
|
||||
to the rows list.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
base_name : str
|
||||
Full tag name up to the current point
|
||||
(e.g. "WT2_Alarms.HiHI").
|
||||
tag_obj : dict
|
||||
JSON dictionary for this tag.
|
||||
rows : list
|
||||
Accumulator for [tag_name, data_type] rows.
|
||||
include_structs : bool
|
||||
If True, also append the struct itself.
|
||||
"""
|
||||
tag_type = tag_obj.get("tag_type")
|
||||
|
||||
if tag_type == "atomic":
|
||||
rows.append([base_name, tag_obj.get("data_type")])
|
||||
return
|
||||
|
||||
if tag_type == "struct":
|
||||
if include_structs:
|
||||
rows.append([base_name, tag_obj.get("data_type_name")])
|
||||
|
||||
struct_data = tag_obj.get("data_type", {})
|
||||
internal_tags = struct_data.get("internal_tags", {})
|
||||
attributes = struct_data.get("attributes", [])
|
||||
|
||||
for attr_name in attributes:
|
||||
subtag = internal_tags.get(attr_name)
|
||||
if not subtag:
|
||||
continue
|
||||
sub_name = f"{base_name}.{attr_name}"
|
||||
walk_tag(sub_name, subtag, rows, include_structs)
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
# Main routine
|
||||
# --------------------------------------------------------------------------- #
|
||||
def main(json_path, csv_path, sort_rows=False, include_structs=False):
|
||||
# Load the entire JSON file
|
||||
with open(json_path, "r", encoding="utf-8") as fp:
|
||||
data = json.load(fp)
|
||||
|
||||
rows = [] # will hold all [tag_name, data_type] rows
|
||||
|
||||
# Iterate the top‑level tags
|
||||
for top_tag, tag_obj in data.items():
|
||||
walk_tag(top_tag, tag_obj, rows, include_structs)
|
||||
|
||||
# Optional sorting
|
||||
if sort_rows:
|
||||
rows.sort(key=lambda r: r[0].lower()) # case‑insensitive
|
||||
|
||||
# Write CSV
|
||||
with open(csv_path, "w", newline="", encoding="utf-8") as fp:
|
||||
writer = csv.writer(fp)
|
||||
writer.writerow(["Tag Name", "Data Type"])
|
||||
writer.writerows(rows)
|
||||
|
||||
print(f"✅ Wrote {csv_path} with {len(rows)} rows.")
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
# Command‑line interface
|
||||
# --------------------------------------------------------------------------- #
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 3:
|
||||
print(__doc__)
|
||||
sys.exit(1)
|
||||
|
||||
json_file = Path(sys.argv[1])
|
||||
csv_file = Path(sys.argv[2])
|
||||
|
||||
# Flags
|
||||
sort_flag = "--sort" in sys.argv
|
||||
struct_flag = "--include-structs" in sys.argv
|
||||
|
||||
main(json_file, csv_file, sort_rows=sort_flag, include_structs=struct_flag)
|
||||
@@ -15,14 +15,14 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"ip_address = \"ngrok.iot.inhandnetworks.com:3009\"# \"ngrok.iot.inhandnetworks.com:3054\" # \"166.141.90.208\"\n",
|
||||
"ip_address = \"63.46.60.220\"# \"ngrok.iot.inhandnetworks.com:3054\" # \"166.141.90.208\"\n",
|
||||
"device_type = \"ba_facility\"\n",
|
||||
"today = dt.now().strftime(\"%Y_%B_%d\")\n",
|
||||
"addons = \"peacemaker\"\n",
|
||||
"addons = \"ma_deuce\"\n",
|
||||
"if addons:\n",
|
||||
" filename = f\"tag_dump_{addons}_{today}.json\"\n",
|
||||
"else:\n",
|
||||
@@ -32,7 +32,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
||||
Reference in New Issue
Block a user