Skip to content

Conversation

@MosesMuiru
Copy link
Contributor

@MosesMuiru MosesMuiru commented Sep 9, 2025

This PR is still WIP

Checklist

  • Detect removable storage
  • Select footage for copying
  • Copy
Screenshot from 2025-09-09 19-17-40

@github-actions
Copy link

github-actions bot commented Sep 9, 2025

📦 To trigger a firmware build, comment /build below.
To build a specific target, comment /build <target> with on of the following targets
Valid target names:

  • ex_nvr_rpi4
  • ex_nvr_rpi5
  • giraffe

You can also specify a custom version: /build <target> version=<version>
Examples:
/build version=1.0.0-test
/build ex_nvr_rpi5 version=1.0.0-test.123

If no version is specified, one will be generated automatically.

@MosesMuiru MosesMuiru marked this pull request as draft September 10, 2025 11:23
@MosesMuiru MosesMuiru self-assigned this Oct 13, 2025
@MosesMuiru
Copy link
Contributor Author

commit - e3d4ba7 - Contains pop up for selecting duration, format, and destination i.e detected usb. The below ui is not final, please drop suggestions.

Screenshot from 2025-10-22 20-47-15

@MosesMuiru MosesMuiru requested a review from gBillal October 22, 2025 18:45
…d in the removable storage(start_date_to_end_date) format, functionality to cp one min video to removable storage
@MosesMuiru
Copy link
Contributor Author

  • commit b94818a
  • The video below shows how to export a one-minute clip to removable storage. You can also export all the one-minute recordings as a single video.
Screencast.from.2025-10-24.09-43-38.mp4

contains notification for when a usb is connected, removed the removeble storage page
@MosesMuiru MosesMuiru changed the title Removable Storage(WIP) - POC Removable Storage(WIP) Nov 25, 2025
@MosesMuiru
Copy link
Contributor Author

ui updates

2025-11-28.10-57-11.mp4

…rouping rec into chunks to use ecto limit as the base, accurate calculation of recordings size
@MosesMuiru
Copy link
Contributor Author

A video showing updated ui export journey

Screencast.from.2025-12-04.20-02-54.webm

@MosesMuiru
Copy link
Contributor Author

The ui below shows:

  • blue progress bar as feedback during export process
  • renamed usb to External drive
Screencast.from.2025-12-07.10-20-32.webm

@@ -0,0 +1,91 @@
defmodule ExNvr.RemovableStorage.Mounter do
Copy link
Member

@gBillal gBillal Dec 10, 2025

Choose a reason for hiding this comment

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

What's this ??
We discussed before that ex_nvr should not know anything about USB and any device. Delete all this code.

attr(:children, :list, default: [])
attr(:current_path, :string, default: nil)
attr(:is_active, :boolean, default: false)
attr(:role, :atom, default: nil)
Copy link
Member

Choose a reason for hiding this comment

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

Restore the formatting

@@ -0,0 +1,52 @@
defmodule ExNVRWeb.ETSServer do
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need an ets ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I forgot to remove that, It was for state manager for the export stepper

plug(:put_root_layout, {ExNVRWeb.Layouts, :root})
plug(:protect_from_forgery)
plug(:put_secure_browser_headers)
plug(:fetch_current_user)
Copy link
Member

Choose a reason for hiding this comment

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

Fix your formatter and do not run mix format from the root folder.

@MosesMuiru MosesMuiru changed the title Removable Storage(WIP) Removable Storage Dec 19, 2025
@MosesMuiru MosesMuiru marked this pull request as ready for review December 19, 2025 09:08
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.

A method for copying footage to removable (USB?) storage

3 participants