New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Google AIY to DietPi #94
Comments
|
Button light does not flash, button, speaker and mic do not work: |
|
Could you run the checkpoint scripts: Another thing to check is whether the driver got loaded: |
|
Thank you for the reply, ensonic. I can't look at it again, right now, but i actually did manually run all the checkpoint scripts and if I recall correctly, they all failed. (I was up very late last night fiddling around with this thing.)
It could be something to do with HDMI: I set it up headless with /boot/dietpi.txt, but didn't completely disable it. It also does look like it's a problem with drivers not loading. I'll try the I've been given a couple of pointers over at my other issue page, so I'll try those suggestions, too. |
|
I think we've identified the problem: It's to do with file paths, mainly. Dietpi uses the directory Also, there are a few hard-coded paths in the code, which will need rectifying at this end, I think. Examples: Thanks, |
|
Just to let you know; I've got it working, with the exception of the system services, because they all contain hard-coded links to Thanks for your input. |
|
@R1CH-T, let us know if you found any other places that could be made more generic. |
|
Thanks so much for replying.
I'm not a coder at all and even my rudimentary script-kiddie skills are not up to the task of keeping up with you guys, but I think that the fact that the sed command in question starts
...and go up one level from that; but apply for all of the system services. I'm not sure if this is viable and I'm not sure that I even know what I'm saying, myself; but rectifying this could potentially prevent (some) future issues of this kind. In the case of DietPi, everything is run under Root, so all stuff directed to Please forgive me if I am rattling on, but I need to educate myself and I hope that I can, in some small way, help both of the projects that I dragged into this issue. It's just that it's so easy and so much of a time-saver, to use Dietpi to set up and connect applications and services, that I find it hard to beat. Also, I have had so much more fun playing around with the AIO kit than I ever did with using the Google Assistant on a phone. |
The reason for this is that the files themselves contain "/home/pi/..." in their current state. This command should replace "/home/pi/..." with the correct path "${repo_path}" as it installs the scripts. You can try running the script and looking at However, you will need to manually edit the files You may also have other issues running as root - I seem to remember someone trying this before and having some problems before getting it working, but can't find the thread. Let us know how it goes!
Not at all - we're happy to have the feedback! |
|
Well, I got it all working now. I just had to add a few sed commands to the installer code to change the file paths and remove MichaIng/DietPi#1065 (comment) The only issues I have now are a lack of Power Off and Reboot commands and the silent alarm, mentioned in another issue, here. Thanks, |
|
I think #156 resolved the issue with the new voicekit branch, so hopefully everything's working now. |
I have spent most of the day trying to add the Google Assistant AIY code to DietPi and have had limited success. I have been able to write an installation entry for DietPi, which is working up until the point that the script and /or service are started. It gets all the way through the installation and OAUTH stuff, but then fails because of audio issues and also button failure.
The pre-configured .iso image works flawlessly on my MagPi AOI kit.
If I start it up with
python3 src/main.py, I get the following errors:It seems that the drivers either did not install or configure properly, in order to get the Voice Hat working...
Am I missing something? Perhaps I am lacking some dependencies, or something.
Please look at this GitHub issue for further details.
The text was updated successfully, but these errors were encountered: