feat: Geutebruck GeViScope/GeViSoft Action Mapping System - MVP
This MVP release provides a complete full-stack solution for managing action mappings in Geutebruck's GeViScope and GeViSoft video surveillance systems. ## Features ### Flutter Web Application (Port 8081) - Modern, responsive UI for managing action mappings - Action picker dialog with full parameter configuration - Support for both GSC (GeViScope) and G-Core server actions - Consistent UI for input and output actions with edit/delete capabilities - Real-time action mapping creation, editing, and deletion - Server categorization (GSC: prefix for GeViScope, G-Core: prefix for G-Core servers) ### FastAPI REST Backend (Port 8000) - RESTful API for action mapping CRUD operations - Action template service with comprehensive action catalog (247 actions) - Server management (G-Core and GeViScope servers) - Configuration tree reading and writing - JWT authentication with role-based access control - PostgreSQL database integration ### C# SDK Bridge (gRPC, Port 50051) - Native integration with GeViSoft SDK (GeViProcAPINET_4_0.dll) - Action mapping creation with correct binary format - Support for GSC and G-Core action types - Proper Camera parameter inclusion in action strings (fixes CrossSwitch bug) - Action ID lookup table with server-specific action IDs - Configuration reading/writing via SetupClient ## Bug Fixes - **CrossSwitch Bug**: GSC and G-Core actions now correctly display camera/PTZ head parameters in GeViSet - Action strings now include Camera parameter: `@ PanLeft (Comment: "", Camera: 101028)` - Proper filter flags and VideoInput=0 for action mappings - Correct action ID assignment (4198 for GSC, 9294 for G-Core PanLeft) ## Technical Stack - **Frontend**: Flutter Web, Dart, Dio HTTP client - **Backend**: Python FastAPI, PostgreSQL, Redis - **SDK Bridge**: C# .NET 8.0, gRPC, GeViSoft SDK - **Authentication**: JWT tokens - **Configuration**: GeViSoft .set files (binary format) ## Credentials - GeViSoft/GeViScope: username=sysadmin, password=masterkey - Default admin: username=admin, password=admin123 ## Deployment All services run on localhost: - Flutter Web: http://localhost:8081 - FastAPI: http://localhost:8000 - SDK Bridge gRPC: localhost:50051 - GeViServer: localhost (default port) Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
111
verify_with_setupclient.py
Normal file
111
verify_with_setupclient.py
Normal file
@@ -0,0 +1,111 @@
|
||||
"""
|
||||
Verify configuration changes by downloading .set file with SetupClient
|
||||
"""
|
||||
import sys
|
||||
sys.path.insert(0, r'C:\DEV\COPILOT_codex')
|
||||
import geviset_parser
|
||||
|
||||
# Parse the downloaded configuration
|
||||
config_path = r"C:\GEVISOFT\GeViScopeSetup.set"
|
||||
|
||||
print("=" * 80)
|
||||
print("VERIFYING CONFIGURATION VIA SETUPCLIENT")
|
||||
print("=" * 80)
|
||||
|
||||
try:
|
||||
from pathlib import Path
|
||||
config = geviset_parser.load_set(Path(config_path))
|
||||
|
||||
# Check servers
|
||||
print("\n1. SERVERS IN CONFIGURATION:")
|
||||
print("-" * 80)
|
||||
|
||||
gcore_servers = []
|
||||
if "GeViGCoreServer" in config:
|
||||
gcore_folder = config["GeViGCoreServer"]
|
||||
if "children" in gcore_folder:
|
||||
for server_entry in gcore_folder["children"]:
|
||||
if server_entry["type"] == "folder":
|
||||
server_id = server_entry["name"]
|
||||
children_dict = {c["name"]: c for c in server_entry.get("children", [])}
|
||||
|
||||
server_info = {
|
||||
"id": server_id,
|
||||
"alias": children_dict.get("Alias", {}).get("value", ""),
|
||||
"host": children_dict.get("Host", {}).get("value", ""),
|
||||
"enabled": children_dict.get("Enabled", {}).get("value", False),
|
||||
"enabled_type": children_dict.get("Enabled", {}).get("type", "unknown")
|
||||
}
|
||||
gcore_servers.append(server_info)
|
||||
|
||||
print(f" ID: {server_info['id']:5s} | Alias: {server_info['alias']:30s} | "
|
||||
f"Host: {server_info['host']:15s} | Enabled: {server_info['enabled']} ({server_info['enabled_type']})")
|
||||
|
||||
# Check for Claude servers
|
||||
claude_servers = [s for s in gcore_servers if "Claude" in s["alias"]]
|
||||
print(f"\n Found {len(claude_servers)} Claude test servers")
|
||||
|
||||
# Check action mappings
|
||||
print("\n2. ACTION MAPPINGS IN CONFIGURATION:")
|
||||
print("-" * 80)
|
||||
|
||||
mappings = []
|
||||
if "MappingRules" in config:
|
||||
mapping_rules = config["MappingRules"]
|
||||
if "children" in mapping_rules:
|
||||
for i, mapping in enumerate(mapping_rules["children"], 1):
|
||||
if mapping["type"] == "folder":
|
||||
children_dict = {c["name"]: c for c in mapping.get("children", [])}
|
||||
name = children_dict.get("Name", {}).get("value", f"Mapping {i}")
|
||||
mappings.append({"id": i, "name": name})
|
||||
|
||||
print(f" Total mappings: {len(mappings)}")
|
||||
|
||||
# Find Claude mappings
|
||||
claude_mappings = [m for m in mappings if "Claude" in m["name"]]
|
||||
print(f"\n Claude test mappings:")
|
||||
for m in claude_mappings:
|
||||
print(f" #{m['id']:3d}: {m['name']}")
|
||||
|
||||
# Find TEST mappings (should be deleted)
|
||||
test_mappings = [m for m in mappings if "TEST" in m["name"]]
|
||||
print(f"\n TEST mappings (should be deleted):")
|
||||
if test_mappings:
|
||||
for m in test_mappings:
|
||||
print(f" #{m['id']:3d}: {m['name']}")
|
||||
else:
|
||||
print(f" (None - successfully cleaned up)")
|
||||
|
||||
# Verification summary
|
||||
print("\n" + "=" * 80)
|
||||
print("VERIFICATION SUMMARY")
|
||||
print("=" * 80)
|
||||
print(f" Total servers in config: {len(gcore_servers)}")
|
||||
print(f" Claude servers found: {len(claude_servers)}")
|
||||
print(f" Total mappings in config: {len(mappings)}")
|
||||
print(f" Claude mappings found: {len(claude_mappings)}")
|
||||
print(f" TEST mappings remaining: {len(test_mappings)}")
|
||||
|
||||
# Check bool type for servers
|
||||
print("\n3. BOOL TYPE VERIFICATION:")
|
||||
print("-" * 80)
|
||||
bool_type_correct = all(s["enabled_type"] == "bool" for s in gcore_servers)
|
||||
if bool_type_correct:
|
||||
print(f" [PASS] All {len(gcore_servers)} servers use correct 'bool' type for Enabled field")
|
||||
else:
|
||||
print(f" [FAIL] Some servers not using 'bool' type:")
|
||||
for s in gcore_servers:
|
||||
if s["enabled_type"] != "bool":
|
||||
print(f" Server {s['id']}: type={s['enabled_type']}")
|
||||
|
||||
print("\n" + "=" * 80)
|
||||
print("VERIFICATION COMPLETE")
|
||||
print("=" * 80)
|
||||
|
||||
except FileNotFoundError:
|
||||
print(f"\n[ERROR] Configuration file not found: {config_path}")
|
||||
print(" Please ensure SetupClient downloaded the file successfully")
|
||||
except Exception as e:
|
||||
print(f"\n[ERROR] Failed to parse configuration: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user