Files
geutebruck/geutebruck-api/tools/find_credentials.md
Administrator 14893e62a5 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>
2025-12-31 18:10:54 +01:00

127 lines
3.5 KiB
Markdown

# Finding Geutebruck Server Credentials
The SDK Bridge is failing to connect with error: **`connectRemoteUnknownUser`**
This means the username/password combination is invalid.
## Servers Running ✅
- **GeViServer** (PID 5212) - GeViSoft server
- **GSCServer** (PID 10852) - GeViScope server
## Credentials Tried ❌
- Username: `sysadmin` / Password: `` (empty)
- Username: `sysadmin` / Password: `masterkey`
## Where to Find Correct Credentials
### Option 1: Check GeViSet Configuration
1. Open **GeViSet** (Geutebruck configuration tool)
2. Look for connection settings or user management
3. Check what username is configured for SDK access
4. Note the username and password
### Option 2: Check GeViScope Configuration Files
Look for configuration files in:
- `C:\GEVISOFT\`
- `C:\Program Files\Geutebruck\`
- `C:\Program Files (x86)\Geutebruck\`
Common config file names:
- `GeViScope.ini`
- `GSCServer.ini`
- `config.xml`
- `users.xml`
### Option 3: Check GeViAPI Test Client
If you have GeViAPI Test Client working:
1. Open the client
2. Check what credentials it's using to connect
3. Use the same credentials in `appsettings.json`
### Option 4: Try Common Default Users
Common Geutebruck default usernames:
- `administrator` / `admin`
- `admin` / `admin`
- `root` / `root`
- `geviscope` / `geviscope`
- `gevisoft` / `gevisoft`
### Option 5: Check Your Previous Working Configuration
From the conversation history, the system was working before. Check:
1. Previous `appsettings.json` backups
2. Your notes about what credentials worked
3. System documentation you may have
## How to Test Credentials
### Quick Test Script
Create a file `test_credentials.ps1`:
```powershell
# Test different credentials
$users = @("sysadmin", "admin", "administrator", "root", "geviscope")
$passwords = @("", "masterkey", "admin", "password", "geviscope")
foreach ($user in $users) {
foreach ($pass in $passwords) {
Write-Host "Testing: $user / $pass" -ForegroundColor Yellow
# Update appsettings.json
$config = Get-Content 'C:\DEV\COPILOT\geutebruck-api\src\sdk-bridge\GeViScopeBridge\appsettings.json' | ConvertFrom-Json
$config.GeViScope.Username = $user
$config.GeViScope.Password = $pass
$config | ConvertTo-Json | Set-Content 'C:\DEV\COPILOT\geutebruck-api\src\sdk-bridge\GeViScopeBridge\appsettings.json'
# Try to connect
$result = & 'C:\DEV\COPILOT\geutebruck-api\src\sdk-bridge\GeViScopeBridge\bin\Release\net8.0\GeViScopeBridge.exe' 2>&1
if ($result -match "Successfully connected") {
Write-Host "SUCCESS! Working credentials: $user / $pass" -ForegroundColor Green
break
}
Start-Sleep -Seconds 2
}
}
```
## Once You Find Working Credentials
### Update Configuration
Edit: `C:\DEV\COPILOT\geutebruck-api\src\sdk-bridge\GeViScopeBridge\appsettings.json`
```json
{
"GeViScope": {
"Host": "localhost",
"Username": "YOUR_WORKING_USERNAME",
"Password": "YOUR_WORKING_PASSWORD"
},
"GeViSoft": {
"Host": "localhost",
"Username": "YOUR_WORKING_USERNAME",
"Password": "YOUR_WORKING_PASSWORD"
},
"GrpcServer": {
"Port": 50051
}
}
```
### Then Start Services
```powershell
# Terminal 1: SDK Bridge
cd C:\DEV\COPILOT\geutebruck-api\src\sdk-bridge\GeViScopeBridge\bin\Release\net8.0
.\GeViScopeBridge.exe
# Terminal 2: Python API
cd C:\DEV\COPILOT\geutebruck-api\src\api
& 'C:\DEV\COPILOT\geutebruck-api\.venv\Scripts\python.exe' main.py
```
### Test the API
Open: http://localhost:8000/docs
---
**Everything else is ready - just need the right credentials!**