better instructions
This commit is contained in:
@@ -60,13 +60,13 @@ Put your sound card number `"card 0"` or `"card 1"` into the ALSA config file
|
||||
Install the ALSA config file
|
||||
> `mv .asoundrc ~/`
|
||||
|
||||
Test it first with emulated GPIO. It will simulate button press and hold for 8 seconds
|
||||
Test it first with emulated GPIO. It will simulate the button event: 'press and hold for 8 seconds then release'
|
||||
> `python3 kukuc-clock.py test`
|
||||
|
||||
Run it!
|
||||
-------
|
||||
|
||||
Just run `python3 kukuc-clock.py` then press and hold the button for at least 5 seconds
|
||||
Just run `python3 kukuc-clock.py` then press and hold the button connected to the GPIO for at least 5 seconds
|
||||
> `python3 kukuc-clock.py`
|
||||
|
||||
Pres `Ctrl+c` to exit
|
||||
@@ -74,6 +74,7 @@ Pres `Ctrl+c` to exit
|
||||
Make it a service to automaticaly start and run in the backgroud
|
||||
------------------------------------------------------
|
||||
|
||||
Prepare the systemd service file
|
||||
If your `$HOME` directory is other then `/home/pi` then modify the systemd service file
|
||||
> `sed -i "s#/home/pi#$HOME#g" kukuc-clock.py.service`
|
||||
|
||||
@@ -81,7 +82,7 @@ If your username and group is other then `pi` and `pi` then also run
|
||||
> `sed -i "s#User=pi#User=$USER#" kukuc-clock.service`
|
||||
`sed -i "s#Group=pi#Group=$(id -gn)#" kukuc-clock.service`
|
||||
|
||||
Install the systemd service files
|
||||
Install the systemd service file
|
||||
> `sudo mv kukuc-clock.service /etc/systemd/system/`
|
||||
|
||||
Reload systemd manager configuration
|
||||
|
||||
Reference in New Issue
Block a user