From 950e8b9081b850f30a27f6a0da1398f63b29e8f6 Mon Sep 17 00:00:00 2001 From: Ethan Sue Date: Mon, 11 May 2026 19:47:30 -0400 Subject: docs: add Ethan's notes --- ethan-notes.org | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ethan-notes.org (limited to 'ethan-notes.org') 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 -- cgit v1.3