Skip to content

Conversation

@marcodejongh
Copy link
Owner

@marcodejongh marcodejongh commented Aug 10, 2025

Summary

  • Add environment variables for board configuration (BOARD_NAME, BOARD_LAYOUT, BOARD_SIZE, BOARD_SET, BOARD_ANGLE)
  • Update Python webservice to use environment variables for redirect URL construction
  • Add comprehensive documentation for board configuration options

Background

The board controller Docker container previously had a hardcoded redirect URL pointing to a specific Kilter board configuration. This made it difficult for users with different board setups (Tension boards, different sizes, etc.) to use the controller effectively.

Changes

  1. Docker Configuration: Added environment variables in docker-compose.yml with sensible defaults
  2. Python Webservice: Modified the root endpoint in main.py to construct redirect URLs from environment variables
  3. Documentation: Enhanced README.md with comprehensive board configuration guidance

Test plan

  • Test Docker container with default configuration redirects to Kilter original/12x12/screw_bolt/40
  • Test with custom environment variables for Tension board configuration
  • Verify redirect URLs are properly constructed for different board types
  • Confirm documentation examples work correctly

🤖 Generated with Claude Code

- Add environment variables for board configuration (BOARD_NAME, BOARD_LAYOUT, BOARD_SIZE, BOARD_SET, BOARD_ANGLE)
- Update Python webservice to use environment variables for redirect URL construction
- Add comprehensive documentation for board configuration options
- Include guidance on finding board settings from BoardSesh URLs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Aug 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boardsesh ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2025 11:13am

## Code Cleanup & Bug Fixes:
- Remove unused imports (ssl, threading, FileResponse, StaticFiles) from main.py
- Remove unused STATIC_PATH variable
- Fix critical bug in bluetooth_controller.py (missing led_controller parameter)
- Remove unused boardsesh_client.py file (232 lines of dead code)
- Replace hardcoded "kilter" board names with environment variables
- Improve error handling with specific exceptions instead of bare except clauses
- Clean up unused database columns from sessions table
- Add database cleanup routines for old cache and session data

## Board Configuration Improvements:
- Update README with correct URL slug format for board configurations
- Document proper Kilter board sets: bolt, screw, screw_bolt
- Document proper Tension board sets: plastic, wood, plastic_wood
- Document Tension layout naming: two-mirror, two-spray for 2.0 layouts
- Add comprehensive examples with correct environment variable usage
- Explain how users can find their configuration from BoardSesh URLs

## Technical Improvements:
- Replace placeholder API endpoint with proper health check
- Add automatic cleanup of orphaned queue items on startup
- Improve WebSocket connection error handling
- Add proper logging for cache operations
- All Python files now pass syntax validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@marcodejongh marcodejongh merged commit d503b3a into main Aug 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants