Add standalone Flask web app for gate control (no ROS)#2
Draft
Add standalone Flask web app for gate control (no ROS)#2
Conversation
Agent-Logs-Url: https://github.com/LCAS/fhu_auto/sessions/8928cf47-8d72-4359-9c5a-82c45d07cc4c Co-authored-by: marc-hanheide <1153084+marc-hanheide@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
marc-hanheide
May 1, 2026 13:23
View session
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.
Exposes gate up/down control via a minimal Flask UI, usable without any ROS infrastructure.
Changes
scripts/door_flask_app.py— new self-contained Flask app:UP_GPIO=19,DOWN_GPIO=26, 17 s relay hold)_busyflag (guarded bythreading.Lock) disables buttons mid-move and returns409on concurrent POSTsatexit.register(GPIO.cleanup)for reliable pin release on exitpip install flask RPi.GPIO python scripts/door_flask_app.py # UI at http://<pi-ip>:5000