Skip to content

Add Streamlit interface for motion mosaics#282

Open
jeonghoonkang wants to merge 1 commit intomasterfrom
codex/modify-send_motion_mosaic.py-to-skip-detect_people-s4vxin
Open

Add Streamlit interface for motion mosaics#282
jeonghoonkang wants to merge 1 commit intomasterfrom
codex/modify-send_motion_mosaic.py-to-skip-detect_people-s4vxin

Conversation

@jeonghoonkang
Copy link
Copy Markdown
Owner

Summary

  • add a Streamlit page that reuses the no-detect mosaic utilities to build the latest motion collage on demand
  • keep the most recently generated mosaic in session state so it stays visible after the request

Testing

  • python -m compileall apps/camera/motion/tile_send/motion_mosaic_streamlit.py

https://chatgpt.com/codex/tasks/task_e_68e9c8a55b288331a7b4c350eee78eea

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +402 to +404
mosaic_path = create_mosaic(images, OUTPUT_MOSAIC, cols=8, rows=4)

send_via_telegram([mosaic_path, PEOPLE_GRAPH, DISK_GRAPH])
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Handle empty motion directory before generating mosaic

In the default code path the script calls latest_images(32) and immediately passes the result into create_mosaic. When /var/lib/motion has no recent files (common on first boot or if Motion stopped) latest_images returns an empty list and create_mosaic raises a ValueError, terminating the run before any telemetry is sent. The --date branch already handles this case explicitly; the live branch should similarly bail out or show a warning instead of crashing.

Useful? React with 👍 / 👎.

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.

1 participant