-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend improvements and add support for Google Sheet #3
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable, and I don't want to block development while I'm out
export WELD_APP_SUPERVISOR_PASSWORD="HASHED_PASSWORD" | ||
``` | ||
|
||
For balena deployment just copy the hashed password into the `Device Variables` tab. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to be awkward, since we'll need to have them send their desired password, or choose a password for them. Either way involves some password handoff which tends to be an awkward business
@@ -13,6 +13,8 @@ opencv-python = "4.9.0.80" | |||
flask = "^3.1.0" | |||
numpy = "1.26.4" | |||
rpi-gpio = { version = "^0.7.1", markers = "sys_platform == 'linux' and (platform_machine == 'armv7l' or platform_machine == 'aarch64')" } | |||
bcrypt = "^4.2.1" | |||
google-api-python-client = "^2.156.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you write a bit more about what we're doing when we connect to google sheets? Is the sheet something the user owns? Do we have any guarantees on its structure?
This PR Adds a couple of new features based on user feedback.
Backend Features:
GoogleAPIService
that can call Google Sheet to get the part number and its corresponding weld countsFrontend Features:
How to Review
The following files contains most of the changes to support the features mentioned above:
backend.py
andconfig.py
: contains all the backend logic and configuration settingsgenerate_hash.py
: contains a CLI tool for generating hashed password which is used for generating a new supervisor password.README.md
: contains updated instructions, including a new configuration setting that needs to be configured to provide database supportUI testing can be done by cloning the repo and running the application on the local machine with poetry:
The app can be accessed via 127.0.0.1:8000 (Note: GPIO will be disabled due to incompatible architecture)
Additionally, the app can be installed via GL Hub by specifying this repo URL.
Next Steps
UI Previews