2126 Commits

Author SHA1 Message Date
Maxim Devaev
ec5b194625 Bump version: 3.14 → 3.15 2021-08-14 03:38:03 +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
Maxim Devaev
8ea5aa1a1f new sponsor 2021-08-14 00:30:41 +03:00
Maxim Devaev
976662df83 bindSimpleSwitch() 2021-08-13 16:39:56 +03:00
Maxim Devaev
c233e3bee7 save hid squash value 2021-08-13 16:24:48 +03:00
Maxim Devaev
551e0a5598 new sponsor 2021-08-13 09:59:39 +03:00
Maxim Devaev
d7f65ad788 refactoring 2021-08-12 10:21:35 +03:00
Maxim Devaev
68897c94ac Bump version: 3.13 → 3.14 2021-08-11 17:11:28 +03:00
Maxim Devaev
647251647d pikvm/pikvm#245: using sbin for some binaries 2021-08-11 17:00:30 +03:00
Maxim Devaev
0d9a4a446f new sponsor 2021-08-10 07:16:27 +03:00
Maxim Devaev
3b4860d6ca new sponsor 2021-08-08 08:27:24 +03:00
Maxim Devaev
d5b59043de atx confirmation 2021-08-06 02:00:13 +03:00
Maxim Devaev
ba22978d63 new sponsor 2021-08-05 00:13:41 +03:00
Maxim Devaev
4679c08e2b new sponsor 2021-08-04 02:43:59 +03:00
Maxim Devaev
8732b1be1f Bump version: 3.12 → 3.13 2021-08-02 23:50:22 +03:00
Maxim Devaev
ed7b4c0d29 new sponsors 2021-08-02 23:49:25 +03:00
Maxim Devaev
fa4c173eb7 Bump version: 3.11 → 3.12 2021-08-02 23:43:26 +03:00
Maxim Devaev
95209bf84d rngd fix 2021-08-02 23:10:46 +03:00
Maxim Devaev
61a6b289f3 note 2021-08-02 04:08:15 +03:00
Maxim Devaev
9927e93356 fix 2021-08-02 02:25:48 +03:00
Maxim Devaev
5933cc0b09 upload image by url in web ui 2021-08-01 21:25:26 +03:00
Maxim Devaev
f5c1908657 css fix 2021-08-01 09:27:19 +03:00
Maxim Devaev
d6fd2e3775 changed /msd/write_remote format 2021-08-01 09:26:54 +03:00
Maxim Devaev
4f1c2a97aa dark background for pak textarea 2021-07-31 20:32:25 +03:00
Maxim Devaev
2895339f30 improved input file styling 2021-07-31 20:13:48 +03:00
Maxim Devaev
837283292c new sponsor 2021-07-30 07:47:41 +03:00
Maxim Devaev
4a1f51bc30 send error in streaming response 2021-07-30 07:30:22 +03:00
Maxim Devaev
7d7f4965de refactoring 2021-07-30 06:53:09 +03:00
Maxim Devaev
1aaea37f54 new sponsor 2021-07-30 06:51:26 +03:00
Maxim Devaev
1090a55765 removed max_power option, added todo about remote wakeup 2021-07-29 13:43:37 +03:00
Maxim Devaev
c26ed616e0 input file css for future needs 2021-07-29 06:36:13 +03:00
Maxim Devaev
82e4e7e2cb more compact msd menu 2021-07-29 06:33:25 +03:00
Maxim Devaev
02335734ce refactoring 2021-07-29 02:11:44 +03:00
Maxim Devaev
33c34bd4ef new sponsors 2021-07-28 15:22:35 +03:00
Maxim Devaev
da2e86ae72 refactoring 2021-07-28 15:10:07 +03:00
Maxim Devaev
9aa3998924 get rid of multipart in /msd/write 2021-07-28 14:58:10 +03:00
Maxim Devaev
801b290ac6 show remote uploading file 2021-07-28 11:43:46 +03:00
Maxim Devaev
e43cbb667f another msd js fixes 2021-07-28 10:25:16 +03:00
Maxim Devaev
75e9b673bc fixed el variable 2021-07-28 10:21:47 +03:00
Maxim Devaev
a32ce23fa8 refactoring 2021-07-28 10:20:59 +03:00
Maxim Devaev
7c062e9a80 ui fix 2021-07-28 01:33:35 +03:00
Maxim Devaev
6b07a80834 /msd/write_remote handle 2021-07-27 05:25:54 +03:00
Maxim Devaev
3c421fa94c dockerignored hid libs 2021-07-27 04:16:53 +03:00
Maxim Devaev
c38d9df5f2 refactoring 2021-07-27 00:36:40 +03:00
Maxim Devaev
365f06a2e8 fixed long shutdown 2021-07-26 07:39:07 +03:00
Maxim Devaev
25c9c63788 refactoring 2021-07-26 03:33:10 +03:00
Maxim Devaev
9103492d71 fixed /share/css/user.css nginx location 2021-07-26 02:32:02 +03:00
Maxim Devaev
c996771afd start_streaming() 2021-07-26 02:29:52 +03:00
Maxim Devaev
134d4e869e .editorconfig 2021-07-25 04:22:27 +03:00