Code modernization + Countdown to close#3
Open
rinc3w1nd wants to merge 3 commits intoUnallocated:masterfrom
Open
Code modernization + Countdown to close#3rinc3w1nd wants to merge 3 commits intoUnallocated:masterfrom
rinc3w1nd wants to merge 3 commits intoUnallocated:masterfrom
Conversation
…idation - Replace RPi.GPIO with gpiozero TrafficLights for simpler API and automatic cleanup - Add environment variable configuration for pins, port, host, and timing - Add Python logging for production visibility - Add input validation on Flask routes (return 404 for invalid color/action) - Fix if/if/if chain to if/elif/elif to prevent undefined message variable - Fix bare except clause to catch ValueError specifically - Cap rager iterations to prevent abuse - Add type hints to all functions - Use PEP 8 naming conventions throughout - Use f-strings instead of string concatenation - Remove dead code, commented-out blocks, and unused imports - Update template to use dict-based data structure instead of fragile list indexing - Pin dependency versions in requirements.txt - Modernize systemd service with User/Group, restart policy, journal logging - Rewrite test scripts from Python 2 to Python 3 with gpiozero - Update .gitignore with specific patterns instead of overly broad .*
Allows a keyholder to schedule a venue closing time via password-protected form. Runs an automated light sequence (warning yellow → flashing red → solid red → off) and locks the UI during the countdown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the old mini.css UI with a self-contained dark dashboard featuring realistic glowing LED visualizations, real-time polling, and toast notifications. Migrate all routes to a JSON API with session-based keyholder authentication (PIN + hmac.compare_digest), system lock/unlock capability, and proper access control for light operations during lock or closing sequences. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
Author
Author
|
Note - Heavily accelerated with Claude Code. |
Member
|
I'll have to see if the traffic light is even hanging up at the new location. @Digital-Tinker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


I've been gone for a while and was thinking about you guys. This is an alt for GitHub. Mileage may vary. Couldn't test locally.
-lov3craft