Hi,
I have an issue with the button led of the Google Voice AIY.
I have got 3 different results after a new install or reboot:
- blinking when listening which seems the normal form of operation
- blinking all the time, not funny if your device is in your bedroom
- off, not funny too
The first sign of led lightning occurs with “Starting up Mycroft service”.
There are different threads on button and lights but none on this issue.
Did someone work on this ?
I look at /home/pi/lights.py and find this (sorry for losing identation):
def on_error(ws, error):
print(error)
def on_close(ws):
print(“### closed ###”)
Then at the end :
if name == “main”:
websocket.enableTrace(True)
ws = websocket.WebSocketApp(“ws://localhost:8181/core”,
on_message = on_message,
on_error = on_error,
on_close = on_close)
ws.run_forever()
So, I connected to my device with ws, asked for time and read this :
{“type”: “recognizer_loop:record_end”, “context”: null, “data”: {}}
{“type”: “recognizer_loop:wakeword”, “context”: null, “data”: {“utterance”: “hey mycroft”, “session”: “ebd6dee7-6b92-448c-9cfc-fd02cd02faec”}}
{“type”: “recognizer_loop:utterance”, “context”: {“ident”: “1538292862.464371-842722306”, “client_name”: “mycroft_listener”}, “data”: {“lang”: “en-US”, “utterances”: [“what time is it”], “session”: “ebd6dee7-6b92-448c-9cfc-fd02cd02faec”}}
{“type”: “mycroft-date-time.mycroftai:handle_query_time”, “data”: {“target”: null, “confidence”: 1.0, “mycroft_date_time_mycroftaiQuery”: “what”, “mycroft_date_time_mycroftaiTime”: “time”, “intent_type”: “mycroft-date-time.mycroftai:handle_query_time”, “utterance”: “what time is it”, “tags”: [{“from_context”: false, “start_token”: 0, “end_token”: 0, “entities”: [{“match”: “what”, “data”: [[“what”, “fallback_wolfram_alpha_mycroftaiGive”], [“what”, “mycroft_date_time_mycroftaiQuery”], [“what”, “mycroft_configuration_mycroftaiGetKeyword”], [“what”, “mycroft_ip_mycroftaiquery”], [“what”, “mycroft_configuration_mycroftaiWhat”]], “confidence”: 1.0, “key”: “what”}], “match”: “what”, “key”: “what”}, {“from_context”: false, “start_token”: 1, “end_token”: 1, “entities”: [{“match”: “time”, “data”: [[“time”, “mycroft_date_time_mycroftaiTime”]], “confidence”: 1.0, “key”: “time”}], “match”: “time”, “key”: “time”}]}, “context”: {“target”: null, “client_name”: “mycroft_listener”, “ident”: “1538292862.464371-842722306”}}
{“type”: “mycroft.skill.handler.start”, “data”: {“name”: “TimeSkill.handle_query_time”}, “context”: {“target”: null, “client_name”: “mycroft_listener”, “ident”: “1538292862.464371-842722306”}}
{“type”: “speak”, “data”: {“expect_response”: false, “utterance”: “zero nine thirty four”}, “context”: {“target”: null, “client_name”: “mycroft_listener”, “ident”: “1538292862.464371-842722306”}}
{“type”: “enclosure.mouth.events.deactivate”, “data”: {}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 0, “yOffset”: 0, “img_code”: “HIAAAAAAAAAAAAAA”}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 24, “yOffset”: 0, “img_code”: “HIAAAAAAAAAAAAAA”}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 7.0, “yOffset”: 0, “img_code”: “EIMHEEMHAA”}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 11.0, “yOffset”: 0, “img_code”: “EIMBEBMHAA”}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 15.0, “yOffset”: 0, “img_code”: “CIICAA”}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 17.0, “yOffset”: 0, “img_code”: “EIEFEFMHAA”}, “context”: null}
{“type”: “enclosure.mouth.display”, “data”: {“clearPrev”: false, “xOffset”: 21.0, “yOffset”: 0, “img_code”: “EIMBABMHAA”}, “context”: null}
{“context”: null, “data”: {“side”: “b”}, “type”: “enclosure.eyes.blink”}
{“context”: null, “data”: {}, “type”: “recognizer_loop:audio_output_start”}
{“context”: null, “data”: {“until”: 1538292868.2138433, “code”: “3”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.3378432, “code”: “0”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.4618433, “code”: “2”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.5858433, “code”: “2”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.6685433, “code”: “3”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.7512434, “code”: “0”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.8339434, “code”: “3”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.9114432, “code”: “3”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292868.9889433, “code”: “2”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292869.0664432, “code”: “3”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292869.1439433, “code”: “0”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292869.2679434, “code”: “5”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292869.3919432, “code”: “6”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {“until”: 1538292869.5159433, “code”: “2”}, “type”: “enclosure.mouth.viseme”}
{“context”: null, “data”: {}, “type”: “recognizer_loop:audio_output_end”}
{“type”: “enclosure.mouth.reset”, “data”: {}, “context”: null}
{“type”: “enclosure.mouth.events.activate”, “data”: {}, “context”: null}
No message from lights.py .
I added this :
def on_message(ws, message):
print(“==== message ====”)
without any success.
It seems that for some reason lights.py became inactive.
Looking at /home/pi/button.py , I read this :
or better: add it to your autorun.sh like this:
python /home/pi/lights.py </dev/null &>/dev/null &
# just before:
# else
# # running from a SSH session
# echo “Remote session”
# fi
Adding this line in auto-run.sh is not necessary because it’s already in /home/pi/custom_setup.sh .