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

+123
View File
@@ -0,0 +1,123 @@
<?xml version="1.0" ?>
<STREIF>
<Header>
<Group>
<Name>Dummy_Bld</Name>
<ModelId Id="1000" />
<BBox_Min Z="0.000" Y="0.000" X="0.000" />
<BBox_Max Z="1.000" Y="1.000" X="1.000" />
<Group>
<Name>FOOTPRINT</Name>
<BBox_Min Z="0.000" Y="0.000" X="0.000" />
<BBox_Max Z="0.000" Y="1.000" X="1.000" />
<Polygon>
<Name>p12916</Name>
<Vertex>
<Name>p12916/V1</Name>
<Coord X="0.000" Y="0.000" Z="0.000" />
</Vertex>
<Vertex>
<Name>p12916/V2</Name>
<Coord X="1.000" Y="0.000" Z="0.000" />
</Vertex>
<Vertex>
<Name>p12916/V3</Name>
<Coord X="1.000" Y="1.000" Z="0.000" />
</Vertex>
<Vertex>
<Name>p12916/V4</Name>
<Coord X="0.000" Y="1.000" Z="0.000" />
</Vertex>
</Polygon>
</Group>
<External_Reference>
<Name>Announcement_AP_1</Name>
<SubId ID="26001" />
<Model NAME="EGCU.flt" />
<Coord Z="0.723" Y="0.500" X="0.500" />
<Dir Z="0.000" Y="0.910" X="0.000" />
</External_Reference>
<External_Reference>
<Name>OutdoorVideo_AP_1</Name>
<SubId ID="13001" />
<Model NAME="EGCU.flt" />
<Coord Z="2.723" Y="0.500" X="0.500" />
<Dir Z="0.000" Y="0.910" X="0.000" />
</External_Reference>
<Group>
<Name>floor_1</Name>
<Comment>base_height=0.00</Comment>
<Switch>
<Name>SW_room_101</Name>
<SubId ID="2101" />
<Group>
<Name>undest_room_101</Name>
<BBox_Min Z="0.000" Y="0.000" X="0.000" />
<BBox_Max Z="1.000" Y="1.000" X="1.000" />
<Group>
<Name>FOOTPRINT</Name>
<BBox_Min Z="0.000" Y="0.000" X="0.000" />
<BBox_Max Z="0.000" Y="1.000" X="1.000" />
<Polygon>
<Name>p12916_1</Name>
<Vertex>
<Name>p12916_1/V1</Name>
<Coord X="0.000" Y="0.000" Z="0.000" />
</Vertex>
<Vertex>
<Name>p12916_1/V2</Name>
<Coord X="1.000" Y="0.000" Z="0.000" />
</Vertex>
<Vertex>
<Name>p12916_1/V3</Name>
<Coord X="1.000" Y="1.000" Z="0.000" />
</Vertex>
<Vertex>
<Name>p12916_1/V4</Name>
<Coord X="0.000" Y="1.000" Z="0.000" />
</Vertex>
</Polygon>
</Group>
</Group>
</Switch>
</Group>
<Group>
<Name>floor_2</Name>
<Comment>base_height=4</Comment>
<Switch>
<Name>SW_room_102</Name>
<SubId ID="2102" />
<Group>
<Name>undest_room_108</Name>
<BBox_Min Z="0.950" Y="0.000" X="0.000" />
<BBox_Max Z="1.000" Y="1.000" X="1.000" />
<Group>
<Name>FOOTPRINT</Name>
<BBox_Min Z="1.000" Y="0.000" X="0.000" />
<BBox_Max Z="1.000" Y="1.000" X="1.000" />
<Polygon>
<Name>p10562_2</Name>
<Vertex>
<Name>p10562_2/V1</Name>
<Coord X="0.000" Y="0.000" Z="1.000" />
</Vertex>
<Vertex>
<Name>p10562_2/V2</Name>
<Coord X="1.000" Y="0.000" Z="1.000" />
</Vertex>
<Vertex>
<Name>p10562_2/V3</Name>
<Coord X="1.000" Y="1.000" Z="1.000" />
</Vertex>
<Vertex>
<Name>p10562_2/V4</Name>
<Coord X="0.000" Y="1.000" Z="1.000" />
</Vertex>
</Polygon>
</Group>
</Group>
</Switch>
</Group>
</Group>
</Header>
</STREIF>
+92
View File
@@ -0,0 +1,92 @@
-- cameras (mounting_point_type_id = 4)
INSERT INTO ism.ism_asset (id, name, hostname, mounting_point_type_id, barcode, properties, asset_state_id)
VALUES (10, 'CAM_UBEICE0001', 'UBEICE0001', 4, null, '{"type": "vapix", "hasMicrophone": true}', 0),
(11, 'CAM_UBEICE0002', 'UBEICE0056', 4, null, '{"type": "vapix", "hasMicrophone": true}', 0);
-- cameras (mounting_point_type_id = 3)
INSERT INTO ism.ism_asset (id, name, hostname, mounting_point_type_id, barcode, properties, asset_state_id)
VALUES (15, 'CAM_UBEOCE0001', 'UBEOCE0001', 3, null, '{"type": "vapix"}', 0);
-- IPS IN (mounting_point_type_id = 6)
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (20, 'IPS-IN_2101', 6, '{"opticalCode":2101}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (21, 'IPS-IN_2102', 6, '{"opticalCode":2102}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (22, 'IPS-IN_2103', 6, '{"opticalCode":2103}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (23, 'IPS-IN_2104', 6, '{"opticalCode":2104}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (24, 'IPS-IN_2105', 6, '{"opticalCode":2105}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (25, 'IPS-IN_2106', 6, '{"opticalCode":2106}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (26, 'IPS-IN_2107', 6, '{"opticalCode":2107}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (27, 'IPS-IN_2201', 6, '{"opticalCode":2201}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (28, 'IPS-IN_2202', 6, '{"opticalCode":2202}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (29, 'IPS-IN_2203', 6, '{"opticalCode":2203}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (30, 'IPS-IN_2204', 6, '{"opticalCode":2204}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (31, 'IPS-IN_2205', 6, '{"opticalCode":2205}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (32, 'IPS-IN_2206', 6, '{"opticalCode":2206}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (33, 'IPS-IN_2207', 6, '{"opticalCode":2207}', 0, null);
-- IPS OUT (mounting_point_type_id = 5)
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (40, 'IPS-OUT_1001', 5, '{"opticalCode":1001}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (41, 'IPS-OUT_1002', 5, '{"opticalCode":1002}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (42, 'IPS-OUT_1003', 5, '{"opticalCode":1003}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (43, 'IPS-OUT_1004', 5, '{"opticalCode":1004}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (44, 'IPS-OUT_1005', 5, '{"opticalCode":1005}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (45, 'IPS-OUT_1006', 5, '{"opticalCode":1006}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (46, 'IPS-OUT_1007', 5, '{"opticalCode":1007}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (47, 'IPS-OUT_1008', 5, '{"opticalCode":1008}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (48, 'IPS-OUT_1009', 5, '{"opticalCode":1008}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (49, 'IPS-OUT_1010', 5, '{"opticalCode":1008}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (50, 'IPS-OUT_1011', 5, '{"opticalCode":1008}', 0, null);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, properties, asset_state_id, barcode)
VALUES (81, 'IPS-OUT_3001', 5, '{"opticalCode":1008}', 0, null);
-- BuildingSensorModule (mounting_point_type_id =1)
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, barcode, hostname, properties, asset_state_id)
VALUES (51, 'BSM_0001', 1, 'BC_BSM_0001', 'UBEBSM0018', '{"port":10001}', 0);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, barcode, hostname, properties, asset_state_id)
VALUES (52, 'BSM_0002', 1, 'BC_BSM_0002', 'UBEBSM0222', '{"port":10001}', 0);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, barcode, hostname, properties, asset_state_id)
VALUES (53, 'BSM_0003', 1, 'BC_BSM_0003', 'UBEBSM0001', '{"port":10001}', 0);
-- EGCU (mounting_point_type_id = 12)
INSERT INTO ism.ism_asset (id, name, hostname, mounting_point_type_id, barcode, properties, asset_state_id)
VALUES (60, 'UBECU0001', 'UBEOSGU0001', 12, null, '{"effects": [], "password": "mout11de", "username": "katar", "scenarios": [{"id": 1, "damage": 50}], "hitSoundVolume": 100, "fireSoundVolume": 100, "activationSoundVolume": 100}', 0);
-- AnnouncementUnit (mounting_point_type_id =10)
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, barcode, hostname, properties, asset_state_id)
VALUES (70, 'OCU_0001', 10, null, 'UBEOCU0010', '{"type": "vapix"}', 0);
INSERT INTO ism.ism_asset (id, name, mounting_point_type_id, barcode, hostname, properties, asset_state_id)
VALUES (71, 'ICU_0001', 10, null, 'UBEICU0020', '{"type": "vapix"}', 0);
+1018
View File
File diff suppressed because it is too large. Load diff
+44
View File
@@ -0,0 +1,44 @@
mounts=(
"\"CAM_UBEICE0001\" \"bldg_56_ref - CAMERA_IN_AP_1\""
"\"CAM_UBEICE0002\" \"bldg_56_ref - CAMERA_IN_AP_2\""
"\"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\""
"\"UBECU0001\" \"bldg_56_ref - BDI_P_1\""
"\"IPS-OUT_1001\" \"bldg_56_ref - IPS_OUT_AP_1\""
"\"IPS-OUT_1002\" \"bldg_56_ref - IPS_OUT_AP_2\""
"\"IPS-OUT_1003\" \"bldg_56_ref - IPS_OUT_AP_3\""
"\"IPS-OUT_1004\" \"bldg_56_ref - IPS_OUT_AP_4\""
"\"IPS-OUT_1005\" \"bldg_56_ref - IPS_OUT_AP_5\""
"\"IPS-OUT_1006\" \"bldg_56_ref - IPS_OUT_AP_6\""
"\"IPS-OUT_1007\" \"bldg_56_ref - IPS_OUT_AP_7\""
"\"IPS-OUT_1008\" \"bldg_56_ref - IPS_OUT_AP_8\""
"\"IPS-OUT_1009\" \"bldg_56_ref - IPS_OUT_AP_9\""
"\"IPS-OUT_1010\" \"bldg_56_ref - IPS_OUT_AP_10\""
"\"IPS-OUT_1011\" \"bldg_56_ref - IPS_OUT_AP_11\""
"\"IPS-OUT_3001\" \"bldg_56_ref - IPS_OUT_AP_12\""
"\"IPS-IN_2101\" \"bldg_56_ref - IPS_IN_AP_1\""
"\"IPS-IN_2102\" \"bldg_56_ref - IPS_IN_AP_2\""
"\"IPS-IN_2103\" \"bldg_56_ref - IPS_IN_AP_3\""
"\"IPS-IN_2104\" \"bldg_56_ref - IPS_IN_AP_4\""
"\"IPS-IN_2105\" \"bldg_56_ref - IPS_IN_AP_5\""
"\"IPS-IN_2106\" \"bldg_56_ref - IPS_IN_AP_6\""
"\"IPS-IN_2107\" \"bldg_56_ref - IPS_IN_AP_7\""
"\"IPS-IN_2201\" \"bldg_56_ref - IPS_IN_AP_8\""
"\"IPS-IN_2202\" \"bldg_56_ref - IPS_IN_AP_10\""
"\"IPS-IN_2203\" \"bldg_56_ref - IPS_IN_AP_11\""
"\"IPS-IN_2204\" \"bldg_56_ref - IPS_IN_AP_12\""
"\"IPS-IN_2205\" \"bldg_56_ref - IPS_IN_AP_13\""
"\"IPS-IN_2206\" \"bldg_56_ref - IPS_IN_AP_14\""
"\"IPS-IN_2207\" \"bldg_56_ref - IPS_IN_AP_15\""
)
rm /tmp/moutall.sh
for i in "${mounts[@]}"; do
CMD="/shd/CTC/SV/mounting/ism_client.py mount "$i""
echo $CMD >> /tmp/moutall.sh
done
chmod +x /tmp/moutall.sh
/tmp/moutall.sh
+20
View File
@@ -0,0 +1,20 @@
ism_client.py benötigt python3 und ein weiteres Modul, welches nicht im Standardumfang enthalten ist.
Dieses Modul kann man sich in eine virtuelle python-Umgebung (virtual env oder kurz venv) installieren.
Das Skript mounting_hack.sh geht davon aus, dass diese python-venv in ~/venv3 lokalisiert ist.
1. Virtuelle Umgebung anlegen:
$ python3 -m venv ~/venv3
2. venv aktivieren
$ source ~/venv3/bin/activate
3. Dependencies installieren.
$ https_proxy=http://<user>:<password>@proxy-rde:8080 pip install -r requirements.txt
4. Optional: Deaktivieren der venv
$ deactivate
Das Skript mounting_hack.sh kann aufgerufen werden, ohne zuvor die venv zu aktivieren.
Will man das python-Skript ism_client.py selbst direkt aufrufen, muss man zuvor die
venv wie oben unter 2 beschrieben aktivieren.
+1
View File
@@ -0,0 +1 @@
websocket-client==0.46.0