Skip to content

Commit 8c132e1

Browse files
committed
fix: update documentation service parameters
1 parent a50d785 commit 8c132e1

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,22 @@ In case of error message from the dot-matrix driver, try chaning line 69 of midd
3737
```
3838
serial = spi(port=0, device=0, cs_high=True, gpio=noop())
3939
```
40+
## Command line arguments
41+
The program iterprets some command line arguments. Tese are:
42+
|Argument|Description|
43+
|----------|----------|
44+
|-h, --help| The help instructions|
45+
|-m, --mode| Repeat mode. Specify 'loop' as argument if the program should enter an eternal loop |
4046

47+
Specifying nothing will keep the program running for 10 minutes approximately, suitable for a cron based run schedule
4148
# Setting up continuous running from boot
4249
## CRON run
4350
To run the display continuously, enter a crontab line like this:
4451
```
4552
*/10 * * * * python3 /home/pi/Middager/middag.py
4653
```
4754
## Service
48-
Alternatively, install as service by copying the service file `/lib/systemd/system` using root.:
55+
Alternatively, install as service by copying the service file `/lib/systemd/system` using root:
4956
```
5057
sudo cp middager-sync.service /lib/systemd/system/middager-sync.service
5158
```

middager-sync.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ After=network-online.target
55

66
[Service]
77
User=pi
8-
Group=appropriate-group
9-
8+
Group=pi
9+
KillMode=mixed
1010
WorkingDirectory=/home/pi
1111
Type=simple
1212
Restart=on-abort

0 commit comments

Comments
 (0)