Go to advanced search

by stockton
Mon Jan 29, 2018 3:08 pm
Forum: AIY Projects
Topic: Error after installing the 2018-01 version of AIY img
Replies: 11
Views: 1519

Re: Error after installing the 2018-01 version of AIY img ?solved?

:~/Desktop $ cat dev_terminal.desktop [Desktop Entry] Encoding=UTF-8 Type=Application Name=Start dev terminal Commment=Start a terminal with the environment for the AIY projects kit. Exec=/home/pi/bin/AIY-projects-shell.sh Terminal=true Icon=utilities-terminal [\code] I did that and ran src/assista...
by stockton
Mon Jan 29, 2018 12:31 pm
Forum: AIY Projects
Topic: Error after installing the 2018-01 version of AIY img
Replies: 11
Views: 1519

Re: Error after installing the 2018-01 version of AIY img

How does one get into the virtual environment running "headless"?
by stockton
Mon Jan 29, 2018 11:37 am
Forum: AIY Projects
Topic: Error after installing the 2018-01 version of AIY img
Replies: 11
Views: 1519

Re: Error after installing the 2018-01 version of AIY img

If I sudo find / -name google_auth_oauthlib /home/pi/assistant-sdk-python/google-assistant-sdk/env/lib/python3.5/site-packages/google_auth_oauthlib /home/pi/AIY-projects-python/env/lib/python3.5/site-packages/google_auth_oauthlib /usr/local/lib/python2.7/dist-packages/google_auth_oauthlib and I did ...
by stockton
Mon Jan 29, 2018 11:20 am
Forum: AIY Projects
Topic: Error after installing the 2018-01 version of AIY img
Replies: 11
Views: 1519

Re: Error after installing the 2018-01 version of AIY img

I tried your suggestion but I am afraid after much grunting and grinding from the Raspberry I still get the same errors. AIY-projects-python $ src/my_assistant.py Traceback (most recent call last): File "src/my_assistant.py", line 31, in <module> import aiy.assistant.auth_helpers File "/home/pi/AIY-...
by stockton
Sun Jan 28, 2018 1:40 pm
Forum: AIY Projects
Topic: Error after installing the 2018-01 version of AIY img
Replies: 11
Views: 1519

Error after installing the 2018-01 version of AIY img

I am now getting Traceback (most recent call last): File "src/my_assistant.py", line 31, in <module> import aiy.assistant.auth_helpers File "/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.py", line 24, in <module> import google_auth_oauthlib.flow ImportError: No module named 'google_aut...
by stockton
Mon Jan 22, 2018 1:00 pm
Forum: AIY Projects
Topic: AIY and authorisation
Replies: 0
Views: 249

AIY and authorisation

I know this is very Star Trek like but I would like to program my setup to allow one to get authorisation before the AIY will execute command. Example would be like:- OK Google and reply with users auth code AIY reports accepted or rejected If accepted user can now issue command else they are ignore...
by stockton
Sun Jan 21, 2018 3:54 pm
Forum: General programming discussion
Topic: remotely read the GPIO input status
Replies: 2
Views: 1045

Re: remotely read the GPIO input status

I have done this previously with a socket program on the android side calling a socket program on the alarm machine whose GPIO data you require.
by stockton
Sun Jan 21, 2018 3:46 pm
Forum: General programming discussion
Topic: triggering program on another machine
Replies: 9
Views: 7591

Re: triggering program on another machine

I would look at socket programming in whatever language you prefer, C or python or php or for that matter bash. Never done bash on Windows but never the less socket programming is about as quick as you are going to get and either ethernet or wifi will do.
by stockton
Sun Jan 21, 2018 3:41 pm
Forum: General programming discussion
Topic: mqtt versus socket programming
Replies: 3
Views: 2574

mqtt versus socket programming

Will someone please tell me why I should use MQTT rather than socket programming.
Surely MQTT is just another name for socket programming?
by stockton
Thu Jan 18, 2018 1:57 pm
Forum: AIY Projects
Topic: Located in the UK - Are you getting weather info in a British accent?
Replies: 4
Views: 605

Re: Located in the UK - Are you getting weather info in a British accent?

I was just trying to show what I was trying to get a british accent.
by stockton
Thu Jan 18, 2018 11:21 am
Forum: AIY Projects
Topic: Located in the UK - Are you getting weather info in a British accent?
Replies: 4
Views: 605

Re: Located in the UK - Are you getting weather info in a British accent?

It does not necessarily answer your question but I have used aiy.audio.say('I have been running for %s' % uptime, lang='en-GB') BTW I also seem to have noticed that if I say "up time" rather than "uptime" I get better results elif 'up time' in text: rather than elif 'uptime' in text: am I kidding my...
by stockton
Thu Jan 18, 2018 11:05 am
Forum: AIY Projects
Topic: Checking for new email (solved)
Replies: 1
Views: 277

Checking for new email (solved)

Based on what I read at https://www.raspberrypi.org/forums/viewtopic.php?f=114&t=200446 I am attempting to do something similar. #!/usr/bin/env python3 import aiy.audio import imaplib import time SMTP_SERVER='stockton.co.za' FROM_EMAIL='alf' FROM_PWD='********' MAIL_CHECK_FREQ=float(25) def loop(): ...
by stockton
Thu Jan 18, 2018 8:57 am
Forum: AIY Projects
Topic: espeak on AIY (SOLVED)
Replies: 4
Views: 633

Re: espeak on AIY

It turned out easier to just get AIY to say want I wanted rather than use espeak.
by stockton
Tue Jan 16, 2018 11:40 am
Forum: Teaching and learning resources
Topic: Google AIY class project
Replies: 0
Views: 1769

Google AIY class project

I am a few thousand kilometers away else I would do this so I am now looking for a teacher/class in the Bexhill-on-Sea area to take on a simple class project that would enable checking on a 94 year old mother living in Bexhill on her own. This project would be using a Google AIY/Raspberry Pi v3 whic...
by stockton
Tue Jan 16, 2018 11:23 am
Forum: General discussion
Topic: D-Link DWM-157 Modem
Replies: 0
Views: 788

D-Link DWM-157 Modem

Has anyone managed to get the D-Link DWM-157 HSPA+ USB Adapter working with their Raspberry. I have battled for a while and have not managed.
by stockton
Tue Jan 16, 2018 7:25 am
Forum: AIY Projects
Topic: AIY voice kit and official display?
Replies: 7
Views: 1840

Re: AIY voice kit and official display?

How do you envisage connecting the display to the raspberry? If HDMI I would think that that should be OK.
by stockton
Mon Jan 15, 2018 5:44 pm
Forum: AIY Projects
Topic: Total control of LED & Button (SOLVED)
Replies: 2
Views: 641

Re: Total control of LED & Button

As I am much better in C than in python I wrote a bit of C and seem to have the results I required. The physical size of the Raspberry caused me to forget that it is a computer and that it can do more than one thing at a time. So now I have an AIY behaving like an AIY but doing what I want as well. ...
by stockton
Sun Jan 14, 2018 9:21 am
Forum: AIY Projects
Topic: Total control of LED & Button (SOLVED)
Replies: 2
Views: 641

Total control of LED & Button (SOLVED)

I have implemented sheridat's suggestion in https://www.raspberrypi.org/forums/viewtopic.php?t=196471 successfully but what I really want is to have total control, in a program, of both led & button. In other words I want the led off at all times, which I have achieved with the above, but when I wan...
by stockton
Sun Jan 07, 2018 2:04 pm
Forum: AIY Projects
Topic: AIY Voice HAT Hardware Reverse Engineering
Replies: 19
Views: 7816

Re: AIY Voice HAT Hardware Reverse Engineering

My hat is only due to be delivered tomorrow or the day after. That is why I am wiring and I apologise if you feel I am wasting your time.
by stockton
Sun Jan 07, 2018 1:28 pm
Forum: AIY Projects
Topic: espeak on AIY (SOLVED)
Replies: 4
Views: 633

Re: espeak on AIY

Sorry I jumped the gun. I did install jack but the messages still appear.
by stockton
Sun Jan 07, 2018 1:25 pm
Forum: AIY Projects
Topic: espeak on AIY (SOLVED)
Replies: 4
Views: 633

Re: espeak on AIY

Thank you. I installed jack and message went away or rather did not reappear.
by stockton
Sun Jan 07, 2018 1:12 pm
Forum: AIY Projects
Topic: AIY Voice HAT Hardware Reverse Engineering
Replies: 19
Views: 7816

Re: AIY Voice HAT Hardware Reverse Engineering

Thank you for your response. Did you wire yours up as per the image I alluded to?
by stockton
Sun Jan 07, 2018 8:27 am
Forum: AIY Projects
Topic: AIY Voice HAT Hardware Reverse Engineering
Replies: 19
Views: 7816

Re: AIY Voice HAT Hardware Reverse Engineering

Using the information from sheridat, I have created the following simple script, which however does not work and all I want is to blink the led and stop blinking with the button. My Raspberry is a Bv3 running Raspbian stretch with no other hardware plugins as yet. and the script looks like:- #!/usr/...
by stockton
Sat Jan 06, 2018 1:55 pm
Forum: AIY Projects
Topic: How to update AIY software
Replies: 14
Views: 8947

Re: How to update

So far all I have done is the normal sudo apt update and upgrade
sudo apt update
sudo apt upgrade
by stockton
Sat Jan 06, 2018 10:51 am
Forum: AIY Projects
Topic: AIY Voice HAT Hardware Reverse Engineering
Replies: 19
Views: 7816

Re: AIY Voice HAT Hardware Reverse Engineering

am I missing something for I see about the LED on BCM25 / wiringPi 6 but i cannot seem to see what gpio the button is connected to.

Go to advanced search