[RELEASE] Echo Speaks V4

Does your raspberry pi have a fixed local IP address? If not you need to setup that first.

thank you user2305. It is set to manual IP assignment and has remained at the same IP address. But I figured out in reading the last series of posts that I may need to rerun the commands you originally shared. Between that and rebooting, I was able to get access to IP address (which shows the echo speaks config page for those not there yet).

additional info - I closed down tab to PI url and then opened HE, navigated to echospeaks app page to check that it was connected and accepted cookies and there were no errors there (you may get everything good to go in PI, but still have an error in HE app page). I then used the experimental test features down lower in ES app on one device to make sure it was working in reality. It worked for me; thanks again.

Is there a way to have the server on a docker container rather than on Heroku? It seems like since that free tier is going away it would be easier and cheaper to just host it locally. Also makes me feel like it's more secure.

Several people have done it…

Would love some details from those people on which docker they went with and what additional steps, if any, were needed. Less than 3 weeks and I'm getting a little anxious to get a replacement in place before Heroku pulls our access.

2 Likes

You're in luck, the support group meets on Tuesdays.

8 Likes

Let’s make that Tuesdays and Thursdays!!

1 Like

Should we just change it to any day that ends in Y?

2 Likes

Hi @user2305 It went much better this time in the sense there was just a single error and not a whole bunch screaming at me! If there's anything else that jumps out to you that could help my install, just say. It's a Rpi3plus with Raspian,

pi:~ $ sudo npm i https://github.com/tonesto7/echo-speaks-server
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q https://github.com/tonesto7/echo-speaks-server.git /root/.npm/_cacache/tmp/git-clone-9d1f1224/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-9d1f1224/.git'
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-11-09T06_35_20_053Z-debug.log
pi@raspberrypi:~ $

Reading the error message:
It failed to clone the git repo. Either github was offline or the url was wrong.
I'm guessing the latter. Somewhere above in this thread is the proper url to enter.
Retry it after correcting the error.

1 Like

Wondering how much time to test the new api we will have

If npm i https://github.com/tonesto7/echo-speaks-server fails:

Try instead:

cd /home/pi/Desktop
git clone https://github.com/tonesto7/echo-speaks-server
cd echo-speaks-server
sudo npm install

Depending on the error message it should point to what's not working on your install.

Are there instructions or a step-by-step to make the local server run in Windows 11 Pro? I bought a mini PC that is running Windows 11 Pro, but a walktrhough would be higly appreciated once I'm less smart than a donkey when talking about Linux...

Thanks in advance!

Okay so I have the server code and a functioning rPi. Is there anything special that needs to be done other than getting this running as a service?

You’ll want to run it through WSL. I haven’t personally done that, but it should be possible.

Thanks for that, I now have the server on my Desktop...

I got this far...

pi@raspberrypi:~ $ cd /home/pi/Desktop
pi@raspberrypi:~/Desktop $ cd echo-speaks-server
pi@raspberrypi:~/Desktop/echo-speaks-server $ sudo npm install
npm WARN http-proxy-middleware@2.0.6 requires a peer of @types/express@^4.17.13 but none is installed. You must install peer dependencies yourself.

audited 365 packages in 12.65s
found 0 vulnerabilities

I'm stuck getting the server up and running on the Pi, has anybody got any ideas what I'm missing please? Still can't access via http://RPI_IP_ADDRESS:8091...

The Pi is all up to date.

pi@raspberrypi:~/Desktop/echo-speaks-server $ git pull
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/tonesto7/echo-speaks-server
 * [new branch]      dependabot/npm_and_yarn/minimatch-3.1.2 -> origin/dependabot/npm_and_yarn/minimatch-3.1.2
Already up-to-date.
pi@raspberrypi:~/Desktop/echo-speaks-server $ sudo pm2 restart index
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
[PM2] PM2 Successfully daemonized
Use --update-env to update environment variables
[PM2][ERROR] Process or Namespace index not found
pi@raspberrypi:~/Desktop/echo-speaks-server $

From express - npm, you need to do
sudo npm install express and then redo the sudo pm2 restart index You will probably find some additional npm packages to install - just google the name + 'npm' to find the npm doc page with the install instructions.

What is the expected behavior for mute and unmute? I have a rule that mutes it, sets a series of alarms using voice command as text, and unmutes it, so I don't wake up my partner with ALARM SET FOR X AM four times in a row. Weirdly mute really just lowers the volume to the lowest volume setting rather than actually silencing it

I’m glad you guys are sharing how to install the current server locally.
I need to be honest, I haven’t made it as far as I hoped on the new version.
Work and family have been dominating my time.
I’m not saying I won’t have a new version by the 28th,
But it’s possible it will only be in beta form on the 28th.
Once I'm ready for testers I will make a post here.
Anyone who knows me will tell how well I work under pressure!!!

34 Likes

There's no obligation here. Family and a job that pays the bills comes first. Full stop.

6 Likes