-
Notifications
You must be signed in to change notification settings - Fork 51
Decouple hardware components into standalone services (#1413) #1413
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
Open
wtgee
wants to merge
28
commits into
develop
Choose a base branch
from
decouple-hardware-services
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d88a3f2
Decouple hardware components into standalone services (#1413)
wtgee 6a183d7
Address Copilot feedback: improve FastAPI patterns, fix serialization…
wtgee 1ae170f
Standardize serialization using panoptes-utils tools (#1413)
wtgee 273b1d7
Bring decouple-hardware-services in line with panoptes-utils 0.3.2 an…
wtgee 79721b9
Enable transparent remote hardware decoupling via client_mode flag
wtgee 648673a
Auto-initialize hardware during service startup
wtgee f7ad908
Robust hardware service initialization with retry and lazy creation
wtgee fe2829e
Update supervisord config with priorities and autostart for hardware …
wtgee 5e00888
Fix AttributeError in scheduler get_observation endpoint
wtgee 891e713
Add plans directory to .gitignore
wtgee 201584f
Add search_for_home support to mount API and remote proxy
wtgee 45701fc
Allow both GET and POST for hardware service commands
wtgee 4fbca26
Revert hardware actions to strict POST for safety and standards
wtgee db7fa97
Remove user prompts when detecting mount
wtgee 4b293f2
Default to using /dev/mount instead of /dev/ioptron
wtgee a2f694d
Changing udev filename to be mount specific
wtgee 21f089d
Migrate documentation to MkDocs Material and update guidelines (#1414)
wtgee afd6bb3
Update theme
wtgee d9d08d9
Update workflow to trigger on develop branch
wtgee 87a8226
Adding `version` command.
wtgee 4711942
Fixing the change log.
wtgee 4e17711
Update CHANGELOG update guidelines to use [Unreleased] section.
wtgee 3ec7e7e
Improve ZWO driver install script with PANDIR and architecture detect…
wtgee 1d92baf
Update installed plugins.
wtgee d17a898
Fix zsh-autosuggestions in install script
wtgee b776c88
Update CHANGELOG with PR number #1416
wtgee ebb30de
Fix bias frame isolation and organize runs into subfolders (#1417)
wtgee c8029a4
Fix namespace
wtgee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Deploy MkDocs | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - develop | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| deploy: | ||
| permissions: | ||
| contents: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v4 | ||
| with: | ||
| enable-cache: true | ||
| cache-dependency-glob: "uv.lock" | ||
| - name: Install dependencies | ||
| run: uv sync --group docs | ||
| - name: Deploy MkDocs | ||
| if: github.event_name == 'push' | ||
| run: uv run mkdocs gh-deploy --force | ||
| - name: Build MkDocs | ||
| if: github.event_name == 'pull_request' | ||
| run: uv run mkdocs build --strict |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,3 +57,6 @@ temp* | |
| src/panoptes/pocs/_version.py | ||
| json_store | ||
| .junie | ||
|
|
||
| # AI Agent Plans | ||
| plans/ | ||
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # API Reference | ||
|
|
||
| ::: panoptes.pocs |
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
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
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
Oops, something went wrong.
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.
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.
The new hardware service processes are configured to bind
uvicornto0.0.0.0on ports 8001–8003, but the APIs expose privileged hardware controls (slew/park/take_exposure) without any authentication. Unless these hosts are always firewalled, this is a security risk. Consider binding to127.0.0.1by default and/or adding an auth mechanism (e.g., shared token) and documenting required network restrictions.