Hardware:
- Raspberry Pi 4 (4GB RAM)
- Micro SD card 32GB
- 2x Integral USB 3.1 flash drives 128GB
OS:
- Raspbian Buster
| FROM python:3.10 as python-base | |
| # https://python-poetry.org/docs#ci-recommendations | |
| ENV POETRY_VERSION=1.2.0 | |
| ENV POETRY_HOME=/opt/poetry | |
| ENV POETRY_VENV=/opt/poetry-venv | |
| # Tell Poetry where to place its cache and virtual environment | |
| ENV POETRY_CACHE_DIR=/opt/.cache |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Notebook Tab Drag and Drop Example (GTK+3 & Python3) | |
| # | |
| # Requirements: | |
| # * Python (>=3.5) | |
| # https://www.python.org/ | |
| # | |
| # * GTK+ (>=3.0) |
| #!/bin/bash | |
| # This script allows you to chroot ("work on") | |
| # the raspbian sd card as if it's the raspberry pi | |
| # on your Ubuntu desktop/laptop | |
| # just much faster and more convenient | |
| # credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689 | |
| # make sure you have issued |
| const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = async (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) |
| import gi | |
| import time | |
| from gi.repository import GObject, Gst | |
| gi.require_version('Gst', '1.0') | |
| Gst.init(None) | |
| pipeline = Gst.Pipeline() | |
| rpicamsrc = Gst.ElementFactory.make("rpicamsrc", "rpicam") | |
| h264parse = Gst.ElementFactory.make("h264parse", "h264") | |
| flvmux = Gst.ElementFactory.make("flvmux", "flv") |
| //AIM logo animation by MrvanBakel | |
| // include the libary to communicate with the LCD | |
| #include "nokia-5110-lcd/nokia-5110-lcd.h" | |
| //bitmap movie frames, frame 1 is the default logo | |
| char AIM1[504] = { | |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| #!/bin/bash | |
| # | |
| # This version uses September 2017 august stretch image, please use this image | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Example of Singleton design pattern | |
| # Copyright (C) 2011 Radek Pazdera | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. |