summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ethan-notes.org33
1 files changed, 33 insertions, 0 deletions
diff --git a/ethan-notes.org b/ethan-notes.org
new file mode 100644
index 0000000..668f7b4
--- /dev/null
+++ b/ethan-notes.org
@@ -0,0 +1,33 @@
+* Ethan's Notes
+
+** Pi Camera
+
+sources:
+https://github.com/MichaIng/DietPi/issues/8032#issuecomment-4103452624
+https://vladimir-vinarsky.me/raspberry-pi/ (follow this one to create a service for motion)
+
+#+begin_src bash
+/boot/dietpi/func/dietpi-set_hardware rpi-opengl vc4-kms-v3d
+/boot/dietpi/func/dietpi-set_hardware rpi-codec enable
+G_SUDO G_CONFIG_INJECT 'camera_auto_detect=' 'camera_auto_detect=1' /boot/firmware/config.txt
+sudo reboot
+#+end_src
+
+in `dietpi-config`: turn on pi camera
+
+install these with apt:
+libcamera-tools
+v4l2loopback-dkms
+
+in /etc/motion/motion.conf set:
+stream_motion on
+stream_maxrate 10
+width 1920
+height 1080
+
+** Grafana on FreeBSD
+
+- update pkg so we have the right version
+
+command to run:
+doas grafana server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana