{"id":17021766,"url":"https://github.com/theturkeydev/rpic-record-and-stream","last_synced_at":"2025-07-14T08:12:20.011Z","repository":{"id":75720011,"uuid":"253083440","full_name":"TheTurkeyDev/RPIC-Record-and-Stream","owner":"TheTurkeyDev","description":"Source code for my implementation of an action camera on a Raspberry Pi Zero","archived":false,"fork":false,"pushed_at":"2024-04-12T21:52:04.000Z","size":319,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T13:50:06.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheTurkeyDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-04T19:33:02.000Z","updated_at":"2025-01-10T14:56:01.000Z","dependencies_parsed_at":"2024-11-29T05:54:21.130Z","dependency_job_id":null,"html_url":"https://github.com/TheTurkeyDev/RPIC-Record-and-Stream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheTurkeyDev/RPIC-Record-and-Stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTurkeyDev%2FRPIC-Record-and-Stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTurkeyDev%2FRPIC-Record-and-Stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTurkeyDev%2FRPIC-Record-and-Stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTurkeyDev%2FRPIC-Record-and-Stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheTurkeyDev","download_url":"https://codeload.github.com/TheTurkeyDev/RPIC-Record-and-Stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTurkeyDev%2FRPIC-Record-and-Stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262556,"owners_count":23736413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T07:08:31.574Z","updated_at":"2025-07-14T08:12:19.966Z","avatar_url":"https://github.com/TheTurkeyDev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n1. Flash Rasbian Lite OS onto SD card\n2. Enable SSH and wifi - https://www.raspberrypi.org/documentation/configuration/wireless/headless.md\n    - Add a file named `ssh`\n    - Add a file named `wpa_supplicant.conf`\n    - For the `wpa_supplicant.conf`, set the contents to the below to establish and initial wifi connection to download what we need\n        ```\n        country=US\n        ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\n        update_config=1\n\n        network={\n            ssid=\"\u003cYour Home WiFi Name\u003e\"\n            psk=\"\u003cYour Home WiFi Password\u003e\"\n        }\n        ```\n3. Enable SSH over USB (Optional)\n    - In `config.txt` append `dtoverlay=dwc2` to the end\n    - In `cmdline.txt` append `modules-load=dwc2,g_ether` on the same line after `rootwait` with a single space between the two.\n        - NOTE: if you see something like `quiet init=/usr/lib/raspi-config/init_resize.sh` after `rootwait`, just insert it between the two, but still making sure there is a single space between everything\n4. Boot up Raspberry Pi\n5. SSH into the Raspberry Pi\n    - If setup over usb, it'll be `ssh pi@raspberrypi.local`\n6. Run initial update commands \n    ```\n    sudo apt -y update\n    sudo apt -y upgrade\n    ```\n7. Enable the camera (If using CSI camera port) with `sudo raspi-config` -\u003e `Interfacing Options` -\u003e `Camera`\n8. Setup the project's folder\n    - Run `sudo mkdir /opt/rpic`\n    - Run `sudo chown pi:pi /opt/rpic`\n    - Run `sudo mkdir /opt/i2smic`\n    - Run `sudo chown pi:pi /opt/i2smic`\n9. Add the project code to the Raspberry\n    - Install git onto the raspberry `sudo apt install git`\n    - Run `git clone https://github.com/Turkey2349/RPIC-Record-and-Stream.git /opt/rpic`\n10. Install FFmpeg with `sudo apt install ffmpeg`\n11. Setup python\n    - Run `sudo apt install python3-pip python3-gpiozero`\n    - Install the python requirements `sudo pip3 install -r /opt/rpic/requirements.txt`\n12. Setup the i2s mic\n    - Run\n    ```\n        sudo pip3 install --upgrade adafruit-python-shell\n        wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2smic.py -P /opt/i2smic\n        sudo python3 /opt/i2smic/i2smic.py\n    ```\n12. Setup for switching to AP Mode\n    - Run `sudo nano /etc/wpa_supplicant/wpa_supplicant-wlan0.conf`\n        - Set the filecontents to\n        ```\n        country=US                          \n        ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev                           \n        update_config=1                     \n        ap_scan=1\n\n        ### your hotspot ###        # has to be the first network section!\n        network={\n            priority=0              # Lowest priority, so wpa_supplicant prefers the other networks below \n            ssid=\"\u003caccesspoint\u003e\"    # your access point's name \n            mode=2 \n            key_mgmt=WPA-PSK \n            psk=\"\u003cpassphrase\u003e\"      # your access point's password \n            frequency=2462\n        }\n\n        ### your network(s) ###    \n        network={\n            ssid=\"\u003cyourWifi\u003e\"\n            psk=\"\u003cpassphrase\u003e\"\n        } \n        ```\n    - Run `sudo mkdir /opt/auto-hotspot`\n    - Run `sudo git clone https://github.com/0unknwn/auto-hotspot.git /opt/auto-hotspot`\n    - Run `cd /opt/auto-hotspot`\n    - Run `sudo chmod +x auto-hotspot install.sh`\n    - Run `sudo ./install.sh`\n13. Setup as service for on startup\n    - Run `sudo nano /etc/systemd/system/camera.service`\n    - File contents:\n        ```\n        [Unit]\n        Description=RPIC Record and Stream service\n        After=multi-user.target\n\n        [Service]\n        Type=simple\n        ExecStart=/usr/bin/python3 /opt/rpic/main.py\n\n        [Install]\n        WantedBy=multi-user.target\n        ```\n    - Run `sudo systemctl enable camera`\n    - Run `sudo systemctl start camera`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheturkeydev%2Frpic-record-and-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheturkeydev%2Frpic-record-and-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheturkeydev%2Frpic-record-and-stream/lists"}