Commit d503b3a
Add configurable board settings to Docker container (#263)
* Add configurable board settings to Docker container
- 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>
* Implement code cleanup and fix board configuration issues
## 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>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent e877b91 commit d503b3a
File tree
5 files changed
+164
-263
lines changed- board-controller
5 files changed
+164
-263
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
139 | 205 | | |
140 | 206 | | |
141 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 | | |
16 | 27 | | |
17 | 28 | | |
| |||
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
34 | 56 | | |
35 | 57 | | |
36 | 58 | | |
| |||
0 commit comments