note about credentials

This commit is contained in:
cpu
2023-12-13 13:25:07 +01:00
parent 8a22ef5436
commit 11696bc8a8

View File

@@ -48,6 +48,9 @@ Configuration
Check your Raspberry pi board pin layout and make sure your button matches with the GPIO pin `PIN = 27` from `kukuc-clock.py` Check your Raspberry pi board pin layout and make sure your button matches with the GPIO pin `PIN = 27` from `kukuc-clock.py`
> `pinout` > `pinout`
Set the username and password for the Text-To-Speech API as `username:password`
> `nano credentials.txt`
Use `raspi-config` `"System Options -> Audio"` to generate the ALSA config file Use `raspi-config` `"System Options -> Audio"` to generate the ALSA config file
> `sudo raspi-config` > `sudo raspi-config`
@@ -60,7 +63,11 @@ Put your sound card number `"card 0"` or `"card 1"` into the ALSA config file
Install the ALSA config file Install the ALSA config file
> `mv .asoundrc ~/` > `mv .asoundrc ~/`
Test it first with emulated GPIO. It will simulate the button event: 'press and hold for 8 seconds then release'
Run the simulation
------------------
Test it first with emulated GPIO. It will simulate the button event: `press and hold for 8 seconds then release`. It should play the time from the speaker. It should also work on an X86 platforms under linux
> `python3 kukuc-clock.py test` > `python3 kukuc-clock.py test`
Run it! Run it!