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:
Administrator
2025-12-31 18:10:54 +01:00
commit 14893e62a5
4189 changed files with 1395076 additions and 0 deletions

View File

@@ -0,0 +1,789 @@
{
"total_mappings": 51,
"mappings_with_parameters": 11,
"mappings": [
{
"id": 1,
"offset": 253894,
"input_actions": [],
"output_actions": [
{
"action": "GSC ViewerConnectLive V <- C",
"parameters": {}
},
{
"action": "GNG ViewerConnectLive V <- C_101027",
"parameters": {}
}
]
},
{
"id": 2,
"offset": 254333,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 100 min",
"parameters": {}
}
]
},
{
"id": 3,
"offset": 254768,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 90 min",
"parameters": {}
}
]
},
{
"id": 4,
"offset": 255200,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 80 min",
"parameters": {}
}
]
},
{
"id": 5,
"offset": 255632,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 70 min",
"parameters": {}
}
]
},
{
"id": 6,
"offset": 256064,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 60 min",
"parameters": {}
}
]
},
{
"id": 7,
"offset": 256496,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 50 min",
"parameters": {}
}
]
},
{
"id": 8,
"offset": 256928,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 40 min",
"parameters": {}
}
]
},
{
"id": 9,
"offset": 257360,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 30 min",
"parameters": {}
}
]
},
{
"id": 10,
"offset": 257792,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 20 min",
"parameters": {}
}
]
},
{
"id": 11,
"offset": 258224,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 10 min",
"parameters": {}
}
]
},
{
"id": 12,
"offset": 258581,
"input_actions": [],
"output_actions": [
{
"action": "GSC ViewerClear V",
"parameters": {
"ClientID": "",
"WarningCode": "True",
"WarningText": ""
}
},
{
"action": "GNG ViewerClear V",
"parameters": {
"ClientID": "",
"WarningCode": "True",
"WarningText": ""
}
}
]
},
{
"id": 13,
"offset": 259542,
"input_actions": [],
"output_actions": [
{
"action": "GSC error: \"GeViIO Client: start of interface failed\"",
"parameters": {}
},
{
"action": "GNG error: \"GeViIO Client: start of interface failed\"",
"parameters": {}
}
]
},
{
"id": 14,
"offset": 260093,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: \"GeViSoft Server: client warning\"",
"parameters": {}
},
{
"action": "GNG warning: \"GeViSoft Server: client warning\"",
"parameters": {}
}
]
},
{
"id": 15,
"offset": 260716,
"input_actions": [],
"output_actions": [
{
"action": "GSC error: \"GeViIO Client: interface lost\"",
"parameters": {}
},
{
"action": "GNG error: \"GeViIO Client: interface lost\"",
"parameters": {}
}
]
},
{
"id": 16,
"offset": 261215,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (1,close)",
"parameters": {}
},
{
"action": "Set digital output (1,close)",
"parameters": {}
}
]
},
{
"id": 17,
"offset": 261602,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (2,close)",
"parameters": {}
},
{
"action": "Set digital output (2,close)",
"parameters": {}
}
]
},
{
"id": 18,
"offset": 261989,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (3,close)",
"parameters": {}
},
{
"action": "Set digital output (3,close)",
"parameters": {}
}
]
},
{
"id": 19,
"offset": 262376,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (4,close)",
"parameters": {}
},
{
"action": "Set digital output (4,close)",
"parameters": {}
}
]
},
{
"id": 20,
"offset": 262763,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (5,close)",
"parameters": {}
},
{
"action": "Set digital output (5,close)",
"parameters": {}
}
]
},
{
"id": 21,
"offset": 263150,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (6,close)",
"parameters": {}
},
{
"action": "Set digital output (6,close)",
"parameters": {}
}
]
},
{
"id": 22,
"offset": 263553,
"input_actions": [],
"output_actions": [
{
"action": "GSC info: licence satisfied",
"parameters": {}
},
{
"action": "GNG info: licence satisfied",
"parameters": {}
}
]
},
{
"id": 23,
"offset": 263936,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (7,close)",
"parameters": {}
},
{
"action": "Set digital output (7,close)",
"parameters": {}
}
]
},
{
"id": 24,
"offset": 264323,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (8,close)",
"parameters": {}
},
{
"action": "Set digital output (8,close)",
"parameters": {}
}
]
},
{
"id": 25,
"offset": 264711,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (1,open)",
"parameters": {}
},
{
"action": "Set digital output (1,open)",
"parameters": {}
}
]
},
{
"id": 26,
"offset": 265097,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (2,open)",
"parameters": {}
},
{
"action": "Set digital output (2,open)",
"parameters": {}
}
]
},
{
"id": 27,
"offset": 265483,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (3,open)",
"parameters": {}
},
{
"action": "Set digital output (3,open)",
"parameters": {}
}
]
},
{
"id": 28,
"offset": 265869,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (4,open)",
"parameters": {}
},
{
"action": "Set digital output (4,open)",
"parameters": {}
}
]
},
{
"id": 29,
"offset": 266255,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (5,open)",
"parameters": {}
},
{
"action": "Set digital output (5,open)",
"parameters": {}
}
]
},
{
"id": 30,
"offset": 266641,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (6,open)",
"parameters": {}
},
{
"action": "Set digital output (6,open)",
"parameters": {}
}
]
},
{
"id": 31,
"offset": 267027,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (7,open)",
"parameters": {}
},
{
"action": "Set digital output (7,open)",
"parameters": {}
}
]
},
{
"id": 32,
"offset": 267413,
"input_actions": [],
"output_actions": [
{
"action": "Set digital output (8,open)",
"parameters": {}
},
{
"action": "Set digital output (8,open)",
"parameters": {}
}
]
},
{
"id": 33,
"offset": 267879,
"input_actions": [],
"output_actions": [
{
"action": "GSC error: \"GeViSoft Server: license conditions are not satisfied\"",
"parameters": {}
}
]
},
{
"id": 34,
"offset": 268506,
"input_actions": [],
"output_actions": [
{
"action": "GscCustomAction:GscDiagnostics still running.",
"parameters": {}
},
{
"action": "GNGCustomAction:GscDiagnostics still running.",
"parameters": {}
}
]
},
{
"id": 35,
"offset": 268929,
"input_actions": [],
"output_actions": [
{
"action": "GSC PanLeft",
"parameters": {
"Temp": "",
"VideoInput": "True"
}
},
{
"action": "GNG PanLeft_101027",
"parameters": {
"Temp": "",
"VideoInput": "True"
}
}
]
},
{
"id": 36,
"offset": 269671,
"input_actions": [],
"output_actions": [
{
"action": "GSC PanStop",
"parameters": {
"Temp": "",
"VideoInput": "True"
}
},
{
"action": "GNG PanStop_101027",
"parameters": {
"Temp": "",
"VideoInput": "True"
}
}
]
},
{
"id": 37,
"offset": 270287,
"input_actions": [],
"output_actions": [
{
"action": "GSC TiltUp",
"parameters": {
"VideoInput": "True"
}
},
{
"action": "GNG TiltUp_101027",
"parameters": {
"VideoInput": "True"
}
}
]
},
{
"id": 38,
"offset": 270891,
"input_actions": [],
"output_actions": [
{
"action": "Gsc ZoomIn",
"parameters": {
"Temp": "",
"VideoInput": "True"
}
},
{
"action": "GNG ZoomIn_101027",
"parameters": {
"Temp": "",
"VideoInput": "True"
}
}
]
},
{
"id": 39,
"offset": 271502,
"input_actions": [],
"output_actions": [
{
"action": "Gsc ZoomStop",
"parameters": {
"ClientID": "",
"ErrorCode": "True"
}
},
{
"action": "GNG ZoomStop_101027",
"parameters": {
"ClientID": "",
"ErrorCode": "True"
}
}
]
},
{
"id": 40,
"offset": 271916,
"input_actions": [],
"output_actions": [
{
"action": "GSC error: \"GeViSoft Server: dongle DLLs not found\"",
"parameters": {}
},
{
"action": "GNG error: \"GeViSoft Server: dongle DLLs not found\"",
"parameters": {}
}
]
},
{
"id": 41,
"offset": 272414,
"input_actions": [],
"output_actions": [
{
"action": "Gsc FocusFar 128",
"parameters": {}
},
{
"action": "GNG FocusFar 128_C101027",
"parameters": {}
}
]
},
{
"id": 42,
"offset": 273109,
"input_actions": [],
"output_actions": [
{
"action": "Gsc FocusStop",
"parameters": {
"VideoInput": "True"
}
},
{
"action": "GNG FocusStop_101027",
"parameters": {
"VideoInput": "True"
}
}
]
},
{
"id": 43,
"offset": 273764,
"input_actions": [],
"output_actions": [
{
"action": "Gsc ClearDefaultPostion",
"parameters": {}
},
{
"action": "GNG ClearDefaultPostion_101027",
"parameters": {}
}
]
},
{
"id": 44,
"offset": 274457,
"input_actions": [],
"output_actions": [
{
"action": "Gsc MoveToPresentPostion",
"parameters": {
"Position": "",
"VideoInput": ""
}
},
{
"action": "GNG MoveToPresentPostion",
"parameters": {
"Position": "",
"VideoInput": ""
}
}
]
},
{
"id": 45,
"offset": 275086,
"input_actions": [],
"output_actions": [
{
"action": "Gsc SavePresentPostion",
"parameters": {
"VideoInput": "True"
}
},
{
"action": "GNG SavePresentPostion",
"parameters": {
"VideoInput": "True"
}
}
]
},
{
"id": 46,
"offset": 275787,
"input_actions": [],
"output_actions": [
{
"action": "GSC error: \"GeViSoft Server: dongle not found\"",
"parameters": {}
},
{
"action": "GNG error: \"GeViSoft Server: dongle not found\"",
"parameters": {}
}
]
},
{
"id": 47,
"offset": 276237,
"input_actions": [],
"output_actions": [
{
"action": "Gsc IrisOpen",
"parameters": {
"VideoInput": "True"
}
},
{
"action": "GNG IrisOpen_101027",
"parameters": {
"VideoInput": "True"
}
}
]
},
{
"id": 48,
"offset": 276848,
"input_actions": [],
"output_actions": [
{
"action": "VC live",
"parameters": {}
},
{
"action": "GNG VC live",
"parameters": {}
},
{
"action": "GSC ViewerConnected OpCon -> Matrix",
"parameters": {}
}
]
},
{
"id": 49,
"offset": 277470,
"input_actions": [],
"output_actions": [
{
"action": "CrossSwitch OpCon -> Matrix",
"parameters": {
"SwitchMode": "True",
"VideoOutput": "",
"ClientID": "",
"WarningCode": "True",
"WarningText": ""
}
},
{
"action": "Warning: demo mode finished",
"parameters": {
"SwitchMode": "True",
"VideoOutput": "",
"ClientID": "",
"WarningCode": "True",
"WarningText": ""
}
}
]
},
{
"id": 50,
"offset": 278314,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 120 min",
"parameters": {}
}
]
},
{
"id": 51,
"offset": 278749,
"input_actions": [],
"output_actions": [
{
"action": "GSC warning: demo mode for 110 min",
"parameters": {}
}
]
}
]
}