-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPIOinput.service
More file actions
45 lines (36 loc) · 1.13 KB
/
GPIOinput.service
File metadata and controls
45 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[Unit]
Description=GPIO input reader daemon
After=domoticz.service
[Service]
Type=simple
ExecStart= /home/pi/GPIOinput/GPIOinput.py
#
# usage: GPIOinput.py [-h] [-v] [-u URL] [-n UNAME] [-x PASSWORD] [-l LOGFILE]
# [-w WAIT] [-W WAIT_DETECT]
#
# GPIO input read daemon
#
# optional arguments:
# -h, --help show this help message and exit
# -v, --verbose Verbose logging
# -u URL, --url URL Domoticz server. Default http://localhost:8085
# -n UNAME, --uname UNAME
# username Domoticz server
# -x PASSWORD, --password PASSWORD
# password Domoticz server
# -l LOGFILE, --logfile LOGFILE
# Log file. Default ./GPIOinput.log
# -w WAIT, --wait WAIT Wait <n> seconds between readings. Default 10s
# -W WAIT_DETECT, --wait_detect WAIT_DETECT
# Wait <n> seconds between new detection of switches.
# Default 60s
TimeoutStopSec=3
#SyslogLevel=err
#SyslogIdentifier=bbb
WorkingDirectory=/home/pi/GPIOinput
User=pi
#Group=evok
Restart=always
[Install]
WantedBy=multi-user.target
#Alias=evok.service