260 Commits

Author SHA1 Message Date
Maxim Devaev
d55d7beb0e refactoring 2022-04-10 12:55:06 +03:00
Maxim Devaev
7c44d733a9 aiohelpers 2022-04-10 08:08:05 +03:00
Maxim Devaev
486f1be986 get rid of the otg-unlock helper 2022-04-10 06:00:10 +03:00
Maxim Devaev
f7634c5900 fixed logging 2022-04-06 13:11:50 +03:00
Maxim Devaev
6f6772a6b6 refactoring 2022-04-06 00:55:20 +03:00
Maxim Devaev
bd8984dd06 otgconf gpio plugin 2022-04-02 10:39:50 +03:00
Maxim Devaev
3b56100fe2 otg hid: close device if udc is unbound 2022-04-01 06:48:00 +03:00
Maxim Devaev
d2c6bf716d delay 2022-04-01 06:06:11 +03:00
Maxim Devaev
17e140729e refactoring 2022-04-01 02:53:10 +03:00
Maxim Devaev
b775239d72 refactoring 2022-03-31 16:17:52 +03:00
Maxim Devaev
6828a0e6aa otg msd: handle functions switching 2022-03-31 11:54:31 +03:00
Maxim Devaev
17412be3fe get rid of otgbind's cleanup and fixed hid for this 2022-03-31 05:41:08 +03:00
Maxim Devaev
c4ca7011bf removed UsbDeviceController() class 2022-03-31 04:40:24 +03:00
Maxim Devaev
94dca7d7c6 simplified find_udc() 2022-03-31 03:37:04 +03:00
Maxim Devaev
ed93f1f4d3 improved otgbind 2022-03-30 23:37:10 +03:00
Maxim Devaev
96f2d36af6 refactoring 2022-03-28 20:21:32 +03:00
Andrew Aubury
77eda0729b
Update radius.py (#85) 2022-03-28 20:08:11 +03:00
Andrew Aubury
4b26d65cf9
Update radius.py (#84)
* Update radius.py

Adding username and password fields

* Update radius.py
2022-03-28 02:58:03 +03:00
Maxim Devaev
267aef7790 default values for the otg hid plugin 2022-03-27 23:58:29 +03:00
Maxim Devaev
8e2688d820 default values for the serial hid plugin 2022-03-27 23:54:26 +03:00
Maxim Devaev
f474fd6453 default atx gpio values 2022-03-27 23:44:11 +03:00
Maxim Devaev
6dc1b758b5 refactoring 2022-03-27 03:50:11 +03:00
Maxim Devaev
be5f57e03f renamed radiussrv to radius 2022-03-27 02:59:53 +03:00
Andrew Aubury
346c9f753d
Add radius authentication support (#83) 2022-03-27 02:57:57 +03:00
Maxim Devaev
41d1471cd9 refactoring 2022-01-24 19:10:18 +03:00
Maxim Devaev
2396e87b70 refactoring 2022-01-24 19:09:30 +03:00
Kenny Younger
a614be7d76
PWAY plugin fix: Normalize pin/channel index to 0-based (#78)
* PWAY plugin fix: Normalize pin/channel index to 1-based

* Normalize to 0-based instead
2022-01-24 19:04:52 +03:00
Maxim Devaev
1b3a2cc3f7 copyright bump 2022-01-07 16:39:02 +03:00
Maxim Devaev
1e98d9bd5d python 3.10 2021-12-23 20:56:16 +03:00
Maxim Devaev
0ae6f40a67 pway fixes 2021-11-21 21:44:27 +03:00
SpookHCK
fee323ecc8
PWAY 16-port SH1601A Driver (#67)
* pway 16-port SH1601A driver

Minimum viable driver.

* Update to pWay 16-port driver

* Rename kvmd/pway.py to plugins/ugpio/pway.py

Fixed file mods

* Delete pway.py

* Update pway.py

Fixed file changes to only one...

* fixed spaces on line 181
2021-11-21 20:12:49 +03:00
Maxim Devaev
b6aaf18c42 prefix for log_process() 2021-10-24 12:06:40 +03:00
Maxim Devaev
434acc5de5 pikvm/pikvm#457: custom commands driver 2021-10-24 12:00:45 +03:00
Maxim Devaev
1c3155daec xk-hk4401: fixed regexp 2021-10-03 01:48:39 +03:00
Maxim Devaev
d0c237c177 style fix 2021-10-02 21:29:58 +03:00
Maxim Devaev
c162bb7ea4 style fixes 2021-10-02 01:47:20 +03:00
Sebastian Goscik
2f92e95bf0
Added driver for xh_hk4401 4 port HDMI/USB KVM (#69)
* Added driver for xh_hk4401 4 port HDMI/USB KVM

* Removed trailing whitespace

* Changed xh_hk4401 channel numbers

Used 0-3 to match other KVM plugins instead of the 1-4 numbering the KVM
uses.
2021-10-01 15:25:43 +03:00
Maxim Devaev
89a0ec8cc8 don't pulse ipmi gpio 2021-09-26 04:00:06 +03:00
Maxim Devaev
977c8a1ade refactoring 2021-09-24 09:33:15 +03:00
Maxim Devaev
b6a59941c8 kvmd/kvmd#62: alternative implementation 2021-09-16 09:45:10 +03:00
Maxim Devaev
8f11fa3b91 small rebranding 2021-09-08 06:47:54 +03:00
Maxim Devaev
ca812117e4 improved pins validation 2021-09-08 06:08:11 +03:00
Maxim Devaev
5d1228eb9e fix 2021-09-08 06:04:52 +03:00
Maxim Devaev
98ad1145a8 string pins 2021-09-08 05:43:36 +03:00
Maxim Devaev
cc5b2a42b8 refactoring 2021-09-07 10:31:28 +03:00
Maxim Devaev
2db0656df3 unified udc code and automatic driver detection 2021-08-28 19:01:13 +03:00
Maxim Devaev
df098bd075 win95 runtime switching 2021-08-15 20:16:48 +03:00
Maxim Devaev
9afa6efbe4 Merge branch 'servo' 2021-08-15 10:27:18 +03:00
Maxim Devaev
a340fc6053 minor servo fixes 2021-08-15 10:26:13 +03:00
Shantur Rathore
c644a9f6e1
Implement servo angles (#58)
/etc/kvmd/override.yaml
```
kvmd:
    gpio:
        drivers:
            servo1:
                type: servo
                chip: 0                  # PWM Chip Number
                period: 20000000         # Servo Motor SG90 Period in nano-seconds
                duty_cycle_min: 350000   # Servo Motor SG90 duty_cycle for -90 degrees
                duty_cycle_max: 2350000  # Servo Motor SG90 duty_cycle for +90 degrees
                angle_max: 90            # Servo Motor SG90 angle at duty_cycle_max
                angle_min: -90           # Servo Motor SG90 angle at duty_cycle_min
                angle_push: 45           # Servo Motor SG90 angle to push button
                angle_release: 20        # Servo Motor SG90 angle to release 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-15 10:15:53 +03:00