summaryrefslogtreecommitdiff
path: root/ethan-notes.org
blob: 668f7b4b60a1ff2c2f26206b62d382d214722244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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