Setting up Google Assistant to auto start on boot
- Open the service files in the /GassistPi/systemd/ directory and verify your project and model ids and save the file.
- Change directory:
cd /home/${USER}
- Make the service installer executable:
sudo chmod +x ./GassistPi/scripts/service-installer.sh
- Run the service installer:
sudo ./GassistPi/scripts/service-installer.sh
- Enable the service:
sudo systemctl enable gassistpi.service
- Start the service:
sudo systemctl start gassistpi.service
Steps to manually start the assistant
At any point of time, if you wish to manually start the assistant:
- Stop the service if it is already running:
sudo systemctl stop gassistpi.service
-
- Ok-Google Hotword/Pi3/Pi2/Armv7 users
- Open a terminal and execute the following:
/home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --device_model_id 'replace this with the model id'
-
- Pushbutton/Pi Zero/Pi B+ and other Non-Armv7 users
- Open a terminal and execute the following:
/home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/pushbutton.py --project-id 'replace this with your project id' --device-model-id 'replace this with the model id'
Insert your Project Id and Model Id in quotes in the mentioned places
Disabling assistant’s auto start
At any point of time, if you wish to stop the auto start of the assistant:
Open a terminal and execute the following:
sudo systemctl stop gassistpi.service
sudo systemctl disable gassistpi.service
Getting this error every time I configure. I tried multiple times with different email account
ReplyDeletepi@raspberrypi:~ $ /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --device_model_id myrasp-4e376-myrasppro-6hdyft
INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
INFO:gmusicapi.Mobileclient1:version: 12.1.1
INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
INFO:gmusicapi.Mobileclient1:initialized
INFO:gmusicapi.Mobileclient1:logged out
/home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
2019-08-27 13:28:03,630 - gmusicapi.Mobileclient1 (shared:183) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
INFO:gmusicapi.Mobileclient1:failed to authenticate
[021d6838] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[021dcc20] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
USB-DAC
ReplyDeleteALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Fatal Python error: Segmentation fault
Current thread 0x76f12ad0 (most recent call first):
File "/home/pi/env/lib/python3.7/site-packages/google/assistant/library/assistant.py", line 98 in __init__
File "/home/pi/GassistPi/src/main.py", line 987 in main
File "/home/pi/GassistPi/src/main.py", line 1024 in
Segmentation fault