Skip to content

refacto init_script container and add pose image at init#34

Merged
fe51 merged 1 commit intomainfrom
pose-images
Mar 20, 2026
Merged

refacto init_script container and add pose image at init#34
fe51 merged 1 commit intomainfrom
pose-images

Conversation

@fe51
Copy link
Member

@fe51 fe51 commented Mar 2, 2026

Refactor init_script container & add pose image upload at init

This PR introduce the following modifications :

  • Refactored init_script.py: extracted utility functions (get_token, api_request, read_json_file, write_json_file, download_images_if_needed) into a new utils.py module for better readability and reusability.
  • Added pose image upload at initialization: during the camera setup phase, the script now downloads sample images from a GitHub release (already used elsewhere in this repo) and uploads a pose image to each camera (with configurable per-org exclusions).
  • Dockerfile & requirements updated: added Pillow and pyroclient dependencies to support image handling.
  • Minor notebook fixes: small adjustments in camera_status, continuous_alert, and send_real_alerts notebooks.

@fe51 fe51 requested a review from MateoLostanlen March 2, 2026 20:42
@fe51 fe51 mentioned this pull request Mar 19, 2026
Copy link
Member

@MateoLostanlen MateoLostanlen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested it works ! Thanks

@fe51 fe51 merged commit e86fc90 into main Mar 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants