475 Commits

Author SHA1 Message Date
Shantur Rathore
9b4622b498
Remove wiringpi and use already included libgpiod (#59) 2021-08-25 17:37:27 +03:00
Maxim Devaev
9aadb78ebc fixed pillow dep 2021-08-22 14:52:22 +03:00
Maxim Devaev
214bce2d15 Bump version: 3.20 → 3.21 2021-08-21 18:57:26 +03:00
Maxim Devaev
0a27176c5c Bump version: 3.19 → 3.20 2021-08-21 12:48:22 +03:00
Maxim Devaev
6fe19c50a2 Bump version: 3.18 → 3.19 2021-08-21 12:22:50 +03:00
Maxim Devaev
2fdbf0d5f4 Bump version: 3.17 → 3.18 2021-08-17 15:13:52 +03:00
Maxim Devaev
541e57105d Bump version: 3.16 → 3.17 2021-08-14 10:40:47 +03:00
Maxim Devaev
40c326ba08 Bump version: 3.15 → 3.16 2021-08-14 09:32:36 +03:00
Maxim Devaev
ec5b194625 Bump version: 3.14 → 3.15 2021-08-14 03:38:03 +03:00
Shantur Rathore
e4903c5184
Implement button push using servo motors controlled via pwm (#55)
1. Add to /boot/config.txt
```
dtoverlay=pwm
```

2. Create /etc/udev/rules.d/99-kvmd-pwm.rules
```
SUBSYSTEM=="pwm*", ACTION=="add", RUN+="/bin/chgrp -R kvmd /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
SUBSYSTEM=="pwm*", ACTION=="change", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R kvmd /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
```

3. Connect Servo motor like SG90 PWM connection to RPi GPIO18, +5V and GND to a 5V and GND pin on header

4. Add to /etc/kvmd/override.yaml
```
kvmd:
    gpio:
        drivers:
            servo1:
                type: pwm
                pwm_chip: 0                  # PWM Chip Number
                pwm_period: 20000000         # Servo Motor SG90 Period in nano-seconds
                duty_cycle_push: 1500000     # Servo Motor SG90 duty_cycle for pushing button
                duty_cycle_release: 1000000  # Servo Motor SG90 duty_cycle for releasing button
        scheme:
            short_press:
                driver: servo1
                pin: 0                       # Pin number is the PWM channel number on the PWM Chip
                mode: output
                switch: false
                pulse:
                    delay: 0.5
                    max_delay: 2
            long_press:
                driver: servo1
                pin: 0                       # Pin number is the PWM channel number on the PWM Chip
                mode: output
                switch: false
                pulse:
                    delay: 2
                    max_delay: 2
            extra_long_press:
                driver: servo1
                pin: 0                       # Pin number is the PWM channel number on the PWM Chip
                mode: output
                switch: false
                pulse:
                    delay: 10
                    max_delay: 20
        view:
            header:
                title: Controls
            table:
                - ["#Servo - Short Press", "short_press|Press"]
                - ["#Servo - Long Press", "long_press|Press"]
                - ["#Servo - Extra Long Press", "extra_long_press|Press"]
```
2021-08-14 01:14:22 +03:00
Maxim Devaev
68897c94ac Bump version: 3.13 → 3.14 2021-08-11 17:11:28 +03:00
Maxim Devaev
8732b1be1f Bump version: 3.12 → 3.13 2021-08-02 23:50:22 +03:00
Maxim Devaev
fa4c173eb7 Bump version: 3.11 → 3.12 2021-08-02 23:43:26 +03:00
Devaev Maxim
0232589a83 Bump version: 3.10 → 3.11 2021-07-17 03:39:02 +03:00
Devaev Maxim
88f634802a Bump version: 3.9 → 3.10 2021-07-17 01:58:21 +03:00
Devaev Maxim
c23bf1d807 Bump version: 3.8 → 3.9 2021-07-14 16:55:07 +03:00
Devaev Maxim
a09a6264de Bump version: 3.7 → 3.8 2021-07-10 19:52:43 +03:00
Devaev Maxim
f30764c83b Bump version: 3.6 → 3.7 2021-07-04 02:35:58 +03:00
Devaev Maxim
eff6caab73 Bump version: 3.5 → 3.6 2021-06-17 19:23:23 +03:00
Devaev Maxim
3d0217621b Bump version: 3.4 → 3.5 2021-06-11 17:53:32 +03:00
Devaev Maxim
9b8a6e507b Bump version: 3.3 → 3.4 2021-06-11 17:47:39 +03:00
Devaev Maxim
a65084cf21 Bump version: 3.2 → 3.3 2021-06-10 19:40:07 +03:00
Devaev Maxim
eb47b6ed1d bump 2021-06-10 19:32:11 +03:00
Devaev Maxim
c67c1d6573 Bump version: 3.1 → 3.2 2021-06-10 19:14:45 +03:00
Devaev Maxim
ef15f3f7ce ustreamer bump 2021-06-10 19:13:10 +03:00
Devaev Maxim
f311051fb4 Bump version: 3.0 → 3.1 2021-06-10 19:08:45 +03:00
Devaev Maxim
2657916fbc bump ustreamer dep 2021-06-10 19:06:44 +03:00
Devaev Maxim
635c737126 Bump version: 2.86 → 3.0 2021-06-10 19:00:50 +03:00
Devaev Maxim
d7628546f8 bump ustreamer 2021-06-10 18:57:35 +03:00
Devaev Maxim
4e708f3cc1 Bump version: 2.85 → 2.86 2021-06-10 16:34:03 +03:00
Devaev Maxim
3e92523ba3 Bump version: 2.84 → 2.85 2021-06-09 23:30:26 +03:00
Devaev Maxim
256597eb27 Bump version: 2.83 → 2.84 2021-06-09 22:31:28 +03:00
Devaev Maxim
ec402ef69a janus ipv6 2021-06-09 22:26:54 +03:00
Devaev Maxim
b152ecf02e Bump version: 2.82 → 2.83 2021-06-08 22:23:45 +03:00
Devaev Maxim
2724a14eab Bump version: 2.81 → 2.82 2021-06-08 21:11:33 +03:00
Devaev Maxim
cf08c04e55 Bump version: 2.80 → 2.81 2021-06-03 19:23:05 +03:00
Devaev Maxim
e146bdb191 Bump version: 2.79 → 2.80 2021-05-26 16:03:15 +03:00
Devaev Maxim
d076bbe6c3 Bump version: 2.78 → 2.79 2021-05-26 15:57:25 +03:00
Devaev Maxim
5da412ae7c Bump version: 2.77 → 2.78 2021-05-26 01:51:04 +03:00
Devaev Maxim
c14bd6856b Bump version: 2.76 → 2.77 2021-05-24 14:14:57 +03:00
Devaev Maxim
86f806147b Bump version: 2.75 → 2.76 2021-05-24 09:13:42 +03:00
Devaev Maxim
a074417427 Bump version: 2.74 → 2.75 2021-05-24 07:12:34 +03:00
Devaev Maxim
f810a30dac Bump version: 2.73 → 2.74 2021-05-24 06:50:19 +03:00
Devaev Maxim
66d0ae8594 Bump version: 2.72 → 2.73 2021-05-24 05:09:55 +03:00
Devaev Maxim
19a68887e4 janus runner draft 2021-05-24 05:08:53 +03:00
Devaev Maxim
b1a8c94c5f Bump version: 2.71 → 2.72 2021-05-20 08:41:06 +03:00
Devaev Maxim
835d6833f8 fixed systemd bug: systemd >= 248.3-2 2021-05-20 08:40:04 +03:00
Devaev Maxim
563525d885 Bump version: 2.70 → 2.71 2021-05-20 07:36:59 +03:00
Devaev Maxim
5c603e8e61 Bump version: 2.69 → 2.70 2021-05-17 09:33:00 +03:00
Devaev Maxim
2c7e71adef fixed bt hid 2021-05-17 09:30:13 +03:00