YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: update websocket.rs with more cli args
Louis Beaumont332a8b0fbadc
diff --git a/screenpipe-vision/examples/websocket.rs b/screenpipe-vision/examples/websocket.rsindex b83b54c97..038444420 100644--- a/screenpipe-vision/examples/websocket.rs+++ b/screenpipe-vision/examples/websocket.rs@@ -37,13 +37,26 @@ struct Cli {#[arg(long, default_value_t = false)]save_text_files: bool,- /// FPS- #[arg(long, default_value_t = 1.0)]- fps: f32,+ /// FPS for continuous recording+ /// 1 FPS = 30 GB / month+ /// 5 FPS = 150 GB / month+ /// Optimise based on your needs.+ /// Your screen rarely change more than 1 times within a second, right?+ #[cfg_attr(not(target_os = "macos"), arg(short, long, default_value_t = 1.0))]+ #[cfg_attr(target_os = "macos", arg(short, long, default_value_t = 0.2))]+ fps: f64,/// WebSocket port#[arg(long, default_value_t = 8080)]ws_port: u16,++ /// List of windows to ignore (by title) for screen recording+ #[arg(long)]+ ignored_windows: Vec<String>,++ /// List of windows to include (by title) for screen recording+ #[arg(long)]+ included_windows: Vec<String>,}#[tokio::main]@@ -70,7 +83,7 @@ async fn main() -> Result<()> {tokio::spawn(async move {continuous_capture(result_tx,- Duration::from_secs_f32(1.0 / cli.fps),+ Duration::from_secs_f64(1.0 / cli.fps),save_text_files,// if apple use apple otherwise if windows use windows native otherwise use tesseractif cfg!(target_os = "macos") {@@ -81,8 +94,8 @@ async fn main() -> Result<()> {OcrEngine::Tesseract},id,- &[],- &[],+ &cli.ignored_windows,+ &cli.included_windows,).await});