Liquid Galaxy Server Swagger API Documentation
A comprehensive REST API documentation for controlling and managing Liquid Galaxy systems via SSH. This API enables developers to interact with Liquid Galaxy installations programmatically.
The Liquid Galaxy Control API provides endpoints for:
- Managing system operations (reboot, relaunch)
- Controlling visualizations and camera movements
- Displaying custom content (logos, balloons)
- Managing KML file deployments
http://localhost:8000
All endpoints require SSH configuration parameters:
{
"ip": "192.168.201.3",
"port": "22",
"username": "lg",
"password": "lg"
}
- POST /reboot-lg: Full system reboot
- POST /relaunch-lg: Restart LG software
- POST /clean-visualization: Reset all visualizations
- POST /execute-orbit: Start orbital movement
- POST /stop-orbit: Stop orbital movement
- POST /flyto: Navigate to specific coordinates
- POST /show-logo: Display logo (left-most rig)
- POST /clean-logos: Remove logos
- POST /show-balloon: Show information balloon (right-most rig)
- POST /clean-balloon: Remove balloons
- POST /send-kml: Upload and display KML file
Checkout examples here
http://localhost:8000/api/lg-connection/send-kml
{
"ip": "192.168.201.3",
"port": "22",
"username": "lg",
"password": "lg"
}
Extends BasicSSHConfig with:
{
"rigs": "3" // Number of Liquid Galaxy
}
Extends RigConfig with navigation parameters:
{
"latitude": "40.7128",
"longitude": "-74.0060",
"tilt": "45",
"bearing": "0"
}
Extends RigConfig with:
{
"kml": "<kml>...</kml>" // KML content for display
}
{
"message": "Operation completed successfully",
"statusCode": 200,
"data": ""
}
{
"message": "Error description",
"statusCode": 400,
"stack": "Error stack trace"
}
-
Screen Positioning:
- Logos appear on the left-most rig
- Balloons appear on the right-most rig
-
KML File Upload:
- Uses multipart/form-data
- Files should be in .txt format
- Requires filename parameter
-
Parameter Types:
- All numeric values should be sent as strings
- Coordinates must be valid geographic values
curl -X POST http://localhost:8000/flyto \
-H "Content-Type: application/json" \
-d '{
"ip": "192.168.201.3",
"port": "22",
"username": "lg",
"password": "lg",
"rigs": "3",
"latitude": "40.7128",
"longitude": "-74.0060",
"tilt": "45",
"bearing": "0"
}'
curl -X POST http://localhost:8000/show-logo \
-H "Content-Type: application/json" \
-d '{
"ip": "192.168.201.3",
"port": "22",
"username": "lg",
"password": "lg",
"rigs": "3",
"kml": "<kml>...</kml>"
}'
- Always clean visualizations before starting new ones
- Validate geographic coordinates before sending
- Test KML content in single-screen setup first
- Handle SSH connection errors appropriately
- Monitor system responses for success/failure
- Clone the repository
- Install dependencies
- Start local server
- Access Swagger documentation here
- Keep SSH credentials secure
- Use environment variables for sensitive data
- Implement rate limiting if needed
- Validate all input parameters
For issues and feature requests, please create an issue in the repository.