From 4c09d9b5b76e389ad5855af6f018f0259544071d Mon Sep 17 00:00:00 2001 From: Javier Quinones Date: Mon, 17 Aug 2026 12:23:51 -0500 Subject: [PATCH] Added a filtering step on __addBindings.jq__ --- addBindings.jq | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/addBindings.jq b/addBindings.jq index 02e292f..e9d1707 100644 --- a/addBindings.jq +++ b/addBindings.jq @@ -1,12 +1,18 @@ +# Filter first . +| debug("Filtering...") +| .tags[] +|= select(.typeId == "Cooling/TH/TH_Model2_v3") # Sort first +| debug("Sorting...") | walk( if type == "object" and has("tags") then .tags |= sort_by(.name) end ) # so object positions are predictable -| .tags[3].tags[1].tags as $baseData +| .tags[0].tags[1].tags as $baseData +| debug("Modifing parameters...") | walk( # Removes .Tags.Controller Tags from the plcName parameter if type == "object" and has("plcName") then @@ -16,6 +22,7 @@ end ) # and can be used as the base line to setup the other objects +| debug("Copying Data folder...") | walk( if type == "object" and .name? == "Data" then .tags = $baseData