Asset Module: - Created internal/assets package for clean embedded static file management - Embedded static files from single source location (static/ directory) - Eliminated need for duplicate static files or symlinks - Assets accessible via assets.Static from any package Origin Configuration: - Added origin field to configuration with latitude, longitude, and name - Automatically calculates origin as average of source positions if not specified - Displays origin information on startup - Updated config.example.json to show origin usage Architecture: - Moved main.go back to cmd/skyview/ structure - Updated Makefile to build from cmd/skyview - Clean separation of concerns with reusable asset module This provides a robust foundation for asset management and proper origin handling for distance calculations and map centering. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
No EOL
926 B
JSON
48 lines
No EOL
926 B
JSON
{
|
|
"server": {
|
|
"host": "",
|
|
"port": 8080
|
|
},
|
|
"sources": [
|
|
{
|
|
"id": "primary",
|
|
"name": "Primary Site",
|
|
"host": "localhost",
|
|
"port": 30005,
|
|
"latitude": 51.4700,
|
|
"longitude": -0.4600,
|
|
"altitude": 50.0,
|
|
"enabled": true
|
|
},
|
|
{
|
|
"id": "secondary",
|
|
"name": "Secondary Site",
|
|
"host": "192.168.1.100",
|
|
"port": 30005,
|
|
"latitude": 51.4800,
|
|
"longitude": -0.4500,
|
|
"altitude": 45.0,
|
|
"enabled": true
|
|
},
|
|
{
|
|
"id": "remote",
|
|
"name": "Remote Site",
|
|
"host": "remote.example.com",
|
|
"port": 30005,
|
|
"latitude": 51.4900,
|
|
"longitude": -0.4400,
|
|
"altitude": 60.0,
|
|
"enabled": false
|
|
}
|
|
],
|
|
"origin": {
|
|
"latitude": 51.4700,
|
|
"longitude": -0.4600,
|
|
"name": "Control Tower"
|
|
},
|
|
"settings": {
|
|
"history_limit": 1000,
|
|
"stale_timeout": 60,
|
|
"update_rate": 1
|
|
}
|
|
} |