Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
#!/bin/bash
#
# Das Skript erfüllt die gleiche Funktionalität wie das "Mounten für Faule".
# Das Skritt geht davon aus, dass die virtuelle Umgebung (venv) unter ~/venv3 lokalisiert ist.
#
# 1. Spalte der Tabelle: Geraetename (Wie in Tabelle ism.ism_asset Spalte Name)
# 2. Spalte der Tabelle: Gebaeudename (Wie in Tabelle ism.ism_main_structure_element Spalte Name)
# zwischen den beiden Bezeichnungen " - "
# Name des Anbaupunktes (Wie in Tabelle ism.ism_structure_element_type_id Spalte Name)
#
# @author Christian Fröbel
#
PYTHON=$HOME/venv3/bin/python
this_script=$(realpath "$0")
this_dir=$(dirname "$this_script")
ism_client=$this_dir/ism_client.py
"$PYTHON" "$ism_client" mount-many \
'[["CAM_UBEICE0001", "bldg_56_ref - CAMERA_IN_AP_1"],
["CAM_UBEICE0002", "bldg_56_ref - CAMERA_IN_AP_2"],
["CAM_UBEICE0003", "bldg_56_ref - CAMERA_IN_AP_3"],
["CAM_UBEICE0004", "bldg_56_ref - CAMERA_IN_AP_4"],
["UEPOKAA0001" , "bldg_56_ref - CAMERA_IN_AP_5"],
["UEPOKAI0015" , "bldg_56_ref - CAMERA_IN_AP_6"],
["CAM_UBEICE0006", "bldg_56_ref - CAMERA_IN_AP_7"],
["UEPOKAI0012" , "bldg_56_ref - CAMERA_IN_AP_8"],
["UEPOKAI0014" , "bldg_56_ref - CAMERA_IN_AP_9"],
["UEPOKAI0011" , "bldg_56_ref - CAMERA_IN_AP_10"],
["UEPOKAA0002" , "bldg_56_ref - CAMERA_IN_AP_11"],
["UEPOKAI0013" , "bldg_56_ref - CAMERA_IN_AP_12"],
["CAM_UBEOCE0001", "MP_OUT0001"],
["CAM_UBEOCE0002", "MP_OUT0002"],
["CAM_UBEOCE0003", "MP_OUT0003"],
["Announcement-Unit", "MP_ANNOUNCEMENT_UNIT"],
["BSM_0001", "bldg_56_ref - REF_MOD_AP_1"],
["BSM_0002", "bldg_56_ref - REF_MOD_AP_2"],
["BSM_0003", "bldg_56_ref - REF_MOD_AP_3"],
["BSM_0004", "bldg_56_ref - REF_MOD_AP_4"],
["BSM_0005", "bldg_56_ref - REF_MOD_AP_5"],
["BSM_0006", "bldg_56_ref - REF_MOD_AP_6"],
["IPS-IN_2103", "bldg_56_ref - IPS_IN_AP_6"],
["IPS-IN_2061", "bldg_56_ref - IPS_IN_AP_8"],
["IPS-IN_2101", "bldg_56_ref - IPS_IN_AP_4"],
["IPS-IN_2108", "bldg_56_ref - IPS_IN_AP_1"],
["IPS-IN_2206", "bldg_56_ref - IPS_IN_AP_9"],
["IPS-IN_2071", "bldg_56_ref - IPS_IN_AP_15"],
["IPS-IN_2204", "bldg_56_ref - IPS_IN_AP_13"],
["IPS-IN_2202", "bldg_56_ref - IPS_IN_AP_11"],
["IPS-IN_2052", "bldg_56_ref - IPS_IN_AP_14"],
["IPS-OUT_1101", "bldg_56_ref - IPS_OUT_AP_3"],
["IPS-OUT_1131", "bldg_56_ref - IPS_OUT_AP_4"],
["IPS-OUT_1132", "bldg_56_ref - IPS_OUT_AP_5"],
["IPS-OUT_1121", "bldg_56_ref - IPS_OUT_AP_6"],
["IPS-OUT_1122", "bldg_56_ref - IPS_OUT_AP_7"],
["IPS-OUT_1111", "bldg_56_ref - IPS_OUT_AP_8"],
["EGCU0001", "bldg_56_ref - BDI_P_1"]]'