Webcam parts:
- Raspberry Pi Zero W Rev 1.1
- Raspberry Pi Camera v2 (8-megapixel)
- Raspberry Pi High Quality Camera (12.3-megapixel)
- Raspbian Buster Lite 2020-02-13
Webcam works with:
- Windows 10
- Windows 10 "Camera" app
| #!/bin/sh | |
| if [ "$UID" -ne 0 ]; then | |
| echo "This script needs to be executed as root" | |
| exit 1 | |
| fi | |
| vendor_id="0x3000" # Valve | |
| product_id="0x28DE" | |
| serial_number="$(dmidecode -s system-serial-number)" # The Steam Deck's serial number |
| <video id="player" autoplay muted playsinline> </video> | |
| <button id="capture">Capture</button> | |
| <canvas id="canvas" width=320 height=240></canvas> | |
| <script> | |
| const player = document.getElementById('player'); | |
| const canvas = document.getElementById('canvas'); | |
| const context = canvas.getContext('2d'); | |
| const captureButton = document.getElementById('capture'); | |
| const constraints = { |
| #include "Arduino.h" | |
| #include "esp_camera.h" | |
| #include "ESPAsyncWebServer.h" | |
| typedef struct { | |
| camera_fb_t * fb; | |
| size_t index; | |
| } camera_frame_t; | |
| #define PART_BOUNDARY "123456789000000000000987654321" |
| #!/bin/sh | |
| set -e | |
| #set -x | |
| CONFIGFS="/sys/kernel/config" | |
| GADGET="$CONFIGFS/usb_gadget" | |
| VID="0x0525" | |
| PID="0xa4a2" | |
| SERIAL="0123456789" |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| /** | |
| * This plugin will emit events with GPS coordinates | |
| * | |
| * const gps = new GPSPlugin(); | |
| * gps.on('gps', ({ lat, lng, alt }) => console.log(lat, lng, alt)); | |
| * MINI.addPlugin(gps); | |
| */ | |
| class GPSPlugin { | |
| /** |
| #!/bin/bash | |
| set -e | |
| # Send a private message to someone on slack | |
| # from the command line. | |
| # Print a usage message and exit. | |
| usage(){ | |
| local name=$(basename "$0") |
| from __future__ import print_function | |
| import sys | |
| import six | |
| import contextlib | |
| import os | |
| try: | |
| from __builtin__ import raw_input | |
| except ImportError: |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh