Skip to content
Stegi56Public

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

ZeroCam Developer Guide for Ubuntu v24 LTS and Raspberry Pi 4B

Dependencies Installation

Skip this if you are using the RaspberryPi image

  • Install Rust

  • Install Tauri

  • Instal npm

  • Install libfuse2

  • Install ffmpeg dependencies

      sudo apt-get install build-essential clang libclang-dev
  • Install ffmpeg

      sudo apt install ffmpeg
      ./configure --enable-shared --enable-libx264 --enable-gpl
      make
      make install
    • On raspberry pi this dependency will break upon building, you will need open v4l2loopback.c file after cloning from github and add #include <linux/string.h> at the top and convert all usage of strlcpy to strncpy save and then build
  • Install libsdl2-2.0-0

    • sudo apt-get install libsdl2-2.0-0

Raspberry Pi Image installation

Skip this step if you did manual dependency installation

Follow this guide.

Instead of selecting an official Raspberry Pi OS, use ZeroCam.img provided.

  • Setup

  • Google Drive

    • Create new google account
    • Go to Google Cloud Console
    • Search "Google Drive" and enable API
    • Create Oauth 2.0 Client
    • Select desktop application
      • Screenshot from 2025-02-14 14-27-10.png
    • Download the file
      • Screenshot from 2025-02-11 17-19-05.png
    • Move it into your ZeroCam/Zerocam/lib or ZeroCam R Pi/ZeroCam/ZeroCam/lib or zerocam_0.0.0_amd64/data/usr/lib/zerocam built folder
      • Screenshot from 2025-02-11 17-22-13.png
    • Rename the file to secret.json
      • Pasted image (7).png
  • (Option 1) Install playit.gg to prevent need for port forwarding for each wifi source

    • Create https://playit.gg/ account and verify email (guest will not work)
    • wget https://github.com/playit-cloud/playit-agent/releases/download/v0.15.0/playit-linux-amd64
      chmod +x playit-linux-amd64
      ./playit-linux-amd64
    • Click the link shown in terminal
    • Click create tunnel and copy these settings
      • Pasted image (2).png
    • Save the address in the config in output URL file
      • Pasted image (8).png
  • (Option 2 if you have an existing domain)

  • Setup Telegram Bot

    • On Telegram search "BotFather"
      • Pasted image.png
    • Start
    • /newbot
    • ZeroCam
    • give the bot a unique name
    • Copy the HTTP API token eg. 7805646492:AAEfzYJXfaeS9giXfPC1Dwy9efVBHFrGIdA
    • Save the new bot in your telegram eg. t.me/ZeroCam02032025bot
    • Save the key to inside settings on ZeroCam
      • Pasted image (8).png

Run

  • Raspberry Pi 4B (skip this if you used .img)

    • Raspberry pi opencv api is different for arm64 architecture, if you want to build a new version of the project you will need to move it onto a raspberry pi and build it there. You will also need to modify add these lines for a successful arm64 build.
      • Pasted image (10).png
      • Pasted image (11).png
      • Pasted image (12).png
  • (First time) In terminal from /ZeroCam

    •   ./TokenGeneratorScript
      • There will be a message in terminal asking you to go to browser, click the link and login with your dedicated dashcam google cloud account.
        • Pasted image (4).png
  • From inside /ZeroCam/ZeroCam

    • run
      • npm run tauri dev
    • run with logs
      • RUST_LOG=INFO npm run tauri dev
    • run with debug logs
      • RUST_LOG=DEBUG npm run tauri dev
  • Built

    • got to zerocam_0.0.0_amd64/data/usr/lib/zerocam folder
      • Pasted image (9).png
    • run from terminal

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages