241 Commits

Author SHA1 Message Date
Maxim Devaev
35fb7e9c84 pinned flake8==5.0.4 due zheller/flake8-quotes#110 2022-11-29 05:15:32 +03:00
Maxim Devaev
3b4792882b web: locator switch 2022-11-23 04:45:21 +03:00
Maxim Devaev
be25f5a026 removed relay msd 2022-11-21 07:19:35 +03:00
Maxim Devaev
0f4e736185 web: forced quote-props 2022-11-18 02:58:55 +03:00
Maxim Devaev
2b8cc93362 pass web.css from testenv 2022-11-18 02:26:47 +03:00
Maxim Devaev
4c6511491e lint fix 2022-11-08 21:39:09 +03:00
Maxim Devaev
29bd1e2f6f static env 2022-11-07 16:17:13 +03:00
Maxim Devaev
bd03a487a9 don't redirect certbot in testenv 2022-10-19 00:09:33 +03:00
Maxim Devaev
a39d3dffbe pikvm/pikvm#803: Ability to use LEDs in GPIO title 2022-10-08 06:09:33 +03:00
Maxim Devaev
4201206bd2 changed arch mirror 2022-09-12 13:24:23 +03:00
Maxim Devaev
ee3e224e39 new typing style 2022-09-04 18:08:40 +03:00
Maxim Devaev
0128145e99 lint fix 2022-08-30 07:56:57 +03:00
Maxim Devaev
4f9501a806 /api/msd/read: zstd supported 2022-08-14 21:03:45 +03:00
Maxim Devaev
aa630988cc aiotools.shield_fg() 2022-08-07 18:42:00 +03:00
Maxim Devaev
0e0fe28cf6 lint fix 2022-07-22 06:55:13 +03:00
Maxim Devaev
f277160396 using usb codes instead of arduino cinstants 2022-07-22 05:46:57 +03:00
Maxim Devaev
867412a6cd renamed otg key to usb key 2022-07-22 04:36:54 +03:00
Maxim Devaev
508a6e9b58 refactoring 2022-07-21 01:44:44 +03:00
Maxim Devaev
734ee8a4ed vulture fix 2022-07-16 23:10:55 +03:00
Maxim Devaev
ac06ef62fc fixed tests 2022-07-16 22:32:19 +03:00
Maxim Devaev
cef5f4ff23 lint fixes 2022-06-24 19:10:38 +03:00
Maxim Devaev
9f4c241204 shellcheck 2022-06-24 16:05:10 +03:00
Maxim Devaev
53e64fe151 pst server 2022-06-15 15:58:29 +03:00
Maxim Devaev
3ee0c41726 more options to edid editing 2022-06-08 15:19:32 +03:00
Maxim Devaev
293490298c report a serial number 2022-04-25 15:44:00 +03:00
Maxim Devaev
d83e32fc51 using dbus_next 2022-04-23 18:28:13 +03:00
Maxim Devaev
e566364b75 fixed keyring in testenv 2022-04-23 16:04:50 +03:00
Maxim Devaev
970c341519 added dir 2022-04-10 08:13:33 +03:00
Maxim Devaev
486f1be986 get rid of the otg-unlock helper 2022-04-10 06:00:10 +03:00
Maxim Devaev
66e5aa49e0 fixed dockerfile 2022-04-01 06:18:05 +03:00
Maxim Devaev
6dc1b758b5 refactoring 2022-03-27 03:50:11 +03:00
Maxim Devaev
6922f70dcd test fix 2022-03-26 02:25:17 +03:00
Maxim Devaev
d4c307b804 vcgencmd measure_temp and thermal_zone0 are the same 2022-03-19 23:08:11 +03:00
Maxim Devaev
a140f11b1b max h264 kbps is 2000 2022-03-15 19:26:37 +03:00
Maxim Devaev
bdc2a317e5 refactoring 2022-01-20 09:59:05 +03:00
Maxim Devaev
3ab43edeb9 pikvm/kvmd#66: OCR API 2022-01-18 09:25:17 +03:00
Maxim Devaev
1b3a2cc3f7 copyright bump 2022-01-07 16:39:02 +03:00
Maxim Devaev
aef7a5a094 python update 2021-12-23 18:44:34 +03:00
Maxim Devaev
b27b4f1491 changed h264 range to actual values 2021-11-25 06:37:32 +03:00
Maxim Devaev
9c56f94332 testenv https redirect 2021-11-12 06:22:45 +03:00
Maxim Devaev
97bb4e46b3 disable vns memsinks in testenv 2021-10-28 01:14:22 +03:00
Maxim Devaev
434acc5de5 pikvm/pikvm#457: custom commands driver 2021-10-24 12:00:45 +03:00
Maxim Devaev
c585dfc483 parse yes/no/on/off as string 2021-09-26 08:51:37 +03:00
Maxim Devaev
e38c65f181 lint fix 2021-09-20 02:52:10 +03:00
Maxim Devaev
8f11fa3b91 small rebranding 2021-09-08 06:47:54 +03:00
Maxim Devaev
2db0656df3 unified udc code and automatic driver detection 2021-08-28 19:01:13 +03:00
Maxim Devaev
89c8a0cb49 lint fix 2021-08-21 12:39:07 +03:00
Maxim Devaev
df098bd075 win95 runtime switching 2021-08-15 20:16:48 +03:00
Maxim Devaev
7d89a54572 refactoring 2021-08-14 02:01:37 +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