sh77
July 28, 2019, 7:12pm
1
Hey guys, I’m a bit new to this but I tried to connect my mark 1 to the PC.
The Mark 1 device is an Enclosure for Mycroft, based on Raspberry Pi. It is designed as a reference hardware device, and is able to be easily modified, hacked and extended.
When I enter the command mycroft-cli-client
, nothing happens. Am I doing this correctly? Basically, I just want to record and save audio through mark 1 microphone and access the file on my PC. Thanks
Are you running the command on the mark 1 or on your pc?
sh77
July 28, 2019, 9:58pm
3
On PC, ubuntu terminal. I can connect to the device, but command cli interface doesnt work.
Hi sh77,
Can I check, from your ubuntu terminal have you SSH’d into the Mark 1? Your shell prompt should then read:
pi@mark_1:~ $
When you say nothing happens, do you mean just get a new blank shell prompt with nothing new output to the terminal? Eg:
pi@mark_1:~ $ mycroft-cli-client
pi@mark_1:~ $
sh77
July 29, 2019, 2:39am
5
Yeah, the second one
pi@mark_1:~ $ mycroft-cli-client
pi@mark_1:~ $
I’m pretty new to this, should’ve mentioned it clearly earlier, my bad.
Strange, I haven’t seen this happen before.
Let’s work backwards from the command and see what’s going wrong.
For any command you can see where the executable is located using which
:
which mycroft-cli-client
this should return
/usr/bin/mycroft-cli-client
Read the contents of that script to see what it’s doing:
cat /usr/bin/mycroft-cli-client
should return:
#!/usr/bin/env sh
/opt/venvs/mycroft-core/bin/mycroft-cli-client $@
This shows the command is calling another executable so we’ll inspect that:
cat /opt/venvs/mycroft-core/bin/mycroft-cli-client
should return:
#!/opt/venvs/mycroft-core/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: ‘mycroft-core==19.2.14’,‘console_scripts’,‘mycroft-cli-client’
requires = ‘mycroft-core==19.2.14’
import re
import sys
from pkg_resources import load_entry_point
if name == ‘main ’:
sys.argv[0] = re.sub(r’(-script.pyw?|.exe)?$', ‘’, sys.argv[0])
sys.exit(
load_entry_point(‘mycroft-core==19.2.14’, ‘console_scripts’, ‘mycroft-cli-client’)()
)
Are each of these as they should be?
sh77
July 29, 2019, 5:47am
7
when i enter cat /usr/local/bin/mycroft-cli-client
I got the large text below and the version specified for me is 0.8.17
Would the version be the issue in this case?
That’s a rather outdated version. 19.2 is the most current major release. Might need to update your mk1.
sh77
July 29, 2019, 6:50am
9
Yeah, I’ve set it to update, but I have to reset the device, every time I change the wifi so that’s gonna be cumbersome I guess.
And why you need to change the wifi? Having a Mark I, perhaps you should consider to re-image the SD with a newer image https://mycroft.ai/to/mark-1-image
sh77
July 29, 2019, 9:44pm
11
It doesn’t connect to a new wifi without resetting, which is strange. Would re-image be the only solution to this?
try mycroft-wifi-setup wifi.reset
- this will reset the wifi configuration and you can start the wifi setup process by connecting to wifi-ssid mycroft
with password 12345678
or edit /etc/wpa_supplicant/wpa_supplicant.conf
Well, I’ve suggested to reimage because you have a very old Mycroft version and perhaps reimaging is quicker and easier, but you could try first what @Dominik says.
1 Like
sh77
August 1, 2019, 11:45am
14
Delete, I didn’t sleep last night
sh77
August 1, 2019, 11:17pm
15
Just ignore again, still no sleep. Im sorry.
j1nx
August 2, 2019, 4:05pm
16
Zzzzzzzzzzzzzzzzzzzzzz zzzz zzzzz
2 Likes