55 Commits

Author SHA1 Message Date
Maxim Devaev
8c7f86ac83 switch firmware version == 6 2025-02-13 00:56:11 +02:00
Maxim Devaev
630610bc53 switch 2024-12-17 18:20:04 +02:00
Maxim Devaev
1e277c0f06 lint fix 2024-11-02 21:04:57 +02:00
Maxim Devaev
c57334f214 refactoring 2024-09-16 23:07:38 +03:00
Maxim Devaev
308911191a testenv: restored eslint 2024-08-27 01:48:52 +03:00
Maxim Devaev
3552fc06ad edidconf: DTD serial support 2024-02-13 21:52:09 +02:00
Maxim Devaev
e140b4f29d improved outout puf kvmd-otgconf --make-gpio-config 2023-08-09 22:54:49 +03:00
Maxim Devaev
b5353e63cd python 3.11 fixes 2023-05-04 12:37:05 +03:00
Maxim Devaev
1209ddeb8d ldap auth module 2023-04-19 23:40:36 +03:00
Maxim Devaev
99e4615d38 lint fixes 2023-04-13 23:09:30 +03:00
Adam Outler
59ba330ef8
Remove unused items (#128)
* Remove unused items

These items are called out as inactive or removed from pylint.

* Allow inspection of additional packages

By adding these package inspections, the pylint warnings are reduced.  This brings us to a smaller list of items which do not comply with current PEPs.  https://hackedyour.info/58KO86fiiL4wiV5r

* Lint problems discussed with lead

* Add comma to end of line
2023-04-13 22:56:37 +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
ee3e224e39 new typing style 2022-09-04 18:08:40 +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
734ee8a4ed vulture fix 2022-07-16 23:10:55 +03:00
Maxim Devaev
3ee0c41726 more options to edid editing 2022-06-08 15:19:32 +03:00
Maxim Devaev
89c8a0cb49 lint fix 2021-08-21 12:39:07 +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
Devaev Maxim
7c68b6b406 lint fixes 2021-07-08 16:52:51 +03:00
Devaev Maxim
5eb0d71cfd dynamic import 2021-05-16 23:47:16 +03:00
Devaev Maxim
be012fd38d terminal window 2021-04-17 15:41:05 +03:00
Devaev Maxim
70fb46d428 otgnet forwarding 2021-02-16 08:10:10 +03:00
Devaev Maxim
2b064a3bee basic python 3.9 support 2020-12-02 14:37:48 +03:00
Devaev Maxim
0140cba0dc software cs 2020-11-12 18:33:35 +03:00
Devaev Maxim
a8a075c203 another try 2020-11-11 22:24:25 +03:00
Devaev Maxim
aaef672ac2 kvmd spi driver 2020-11-11 22:24:25 +03:00
Devaev Maxim
e54449fd8e renamed serial keymap codes to mcu 2020-11-11 22:24:25 +03:00
Devaev Maxim
f6ea1eda45 kvmd-otgnet 2020-10-10 16:06:06 +03:00
Devaev Maxim
39e0336268 lint fix 2020-10-08 10:36:55 +03:00
Devaev Maxim
630593492a ignored protected-access for _unpack() 2020-09-30 07:25:52 +03:00
Devaev Maxim
3f9c32e9fc moved otg devices configs to their own section 2020-09-30 06:36:00 +03:00
Devaev Maxim
5ed0c27f1f removed rpi.gpio 2020-09-13 21:43:52 +03:00
Devaev Maxim
7f74d7ee45 lint fix 2020-08-22 19:03:25 +03:00
Devaev Maxim
bf510f4ff3 refactoring 2020-08-06 11:10:37 +03:00
Devaev Maxim
1196285045 ps2 2020-08-06 07:03:29 +03:00
Devaev Maxim
d61471d3a3 share ClientSession via KvmdClientSession 2020-05-24 03:00:29 +03:00
Devaev Maxim
98a176f740 lint fixes 2020-05-11 08:06:44 +03:00
Devaev Maxim
d5ae32b132 vnc 2020-03-20 03:07:27 +03:00
Devaev Maxim
97678bba80 python == 3.8 2019-11-14 23:54:19 +03:00
Devaev Maxim
10f8c2b335 otg msd and big refactoring 2019-11-07 01:27:07 +03:00
Devaev Maxim
f08a94ae0f fixed flake8 quotes linter 2019-10-19 19:37:48 +03:00
Devaev Maxim
31c17bb583 otg keymap 2019-09-26 10:26:21 +03:00
Devaev Maxim
5e1e3cdf64 refactoring 2019-09-26 04:23:50 +03:00
Devaev Maxim
2f767573d3 refactoring 2019-09-26 03:19:24 +03:00
Devaev Maxim
98468bfa30 using js modules 2019-07-13 06:38:55 +03:00
Devaev Maxim
f1c86cca4f better setup.py 2019-05-01 09:08:16 +03:00