add systemd service

This commit is contained in:
kaedwen
2023-07-16 13:42:08 +02:00
parent d584b50b04
commit f619107517
4 changed files with 64 additions and 1 deletions
+2 -1
View File
@@ -15,7 +15,8 @@
"VIDEO_OUT_DEVICE": "/dev/video4",
"AUDIO_OUT_DEVICE": "plughw:0,1,0",
"INPUT_DEVICE": "/dev/input/event5",
"JINGLE_PATH": "${workspaceFolder}/audio"
"JINGLE_PATH": "${workspaceFolder}/audio",
"SONOS_TARGET": "Living Room"
}
},
{
+11
View File
@@ -0,0 +1,11 @@
# GPIO setup
## Using Linux Device-Tree
For ring trigger it is necessary to configure a Key Stroke. This can be achived with configuring an gpio.
Copy the `gpio.dts` to `/boot/overlay-user/gpio.dts` and if you are using armbian execute
```
armbian-add-overlay /boot/overlay-user/gpio.dts
```
This will compile the `dts` file to a `dtbo` compiled one and will append the overlay to your `armbianEnv.txt
+42
View File
@@ -0,0 +1,42 @@
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
/*
* This fragment is needed only for the internal pull-up activation,
* external pull-up resistor is highly recommended if using long wires
*/
fragment@0 {
target = <&pio>;
__overlay__ {
gpio_button_0: gpio_button_0 {
pins = "PA7";
function = "gpio_in";
bias-pull-up;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
gpio-keys-user {
/*
* Use "gpio-keys" for EINT capable pins, "gpio-keys-polled" for other pins
* add "poll-interval" property if using "gpio-keys-polled"
*/
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_button_0>;
f1_button {
label = "GPIO Key F1";
linux,code = <59>; /* KEY_F1, see include/uapi/linux/input-event-codes.h */
gpios = <&pio 0 7 1>; /* PA07 GPIO_ACTIVE_LOW */
};
};
};
};
};
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=WebRTC Ring Service
[Service]
ExecStart=/usr/local/bin/ring
EnvironmentFile=-/etc/ring/ring.conf
[Install]
WantedBy=multi-user.target