Trying to install both Mycroft-Core and MagicMirror on the same PI

ok so im starting to see i need help installing the mycroft-core is anyone out there willing to help me please, as im at a loss iv reinstalled stretch as i think iv gone about this all wrong, iv got magicmirror installed.

thanks

I’m willing to help, but while I can help with the skill, my experience is limited as you can tell from my post. I have no experience with Stretch since i’m Running Debian Jesse. Also, i’m Running a previous version of MagicMirror.

Just from looking at your previous post, you were very close to succeeding, you just needed to start in the /home/pi/ folder when you started the process. That way the mycroft core will be within the “pi” user folder.

sorry for the questions just want to check a few things over before i start again :disappointed_relieved:

am i right in saying install virtualenv then make a folder with that -

pi/home/mycroft-core

and follow steps in post 17 using` pi/home/mycroft-core

then -

cd pi/home/mycroft-core

./dev_setup.sh

am i anywhere close with this please

@Jmh474 Is your MagicMirror set up to start automatically on reboot? If so, it should be starting as the Pi user. To avoid permission problems with mycroft, you need to install the virtualenv where the Pi user would have access to it. Which should be /home/pi/. So you need to be in the /Home/Pi/ folder when you execute the commands to install the Mycroft-core. If you read this entire post, you can see that I had this problem in the beginning and had to start over too.

@Jmh474 You should probably do a little research for your operating system. You said earlier you are using Stretch. You might want to check this out.

@Jmh474 From what I’ve been reading there are some differences between Jesse and Stretch that will probably make this nearly impossible for you to pull off on the same RPi as your Mirror. You may want to consider a seperate RPi with Mycroft, connected to the same network to control your Mirror. You could then install the appropriate Picroft Image on the 2nd RPi and then install the skills you’d like. Would be a much simpler process for sure. There are issues that you could avoid by doing that. Issues that I have been fighting like overheating, slower than expected performance, dependencies, updates etc. In fact, that is how I plan to update to the current MagicMirror and Mycroft on the stretch environment when I can get around to it.

I still think getting them both on the same RPi can be done, but I’m not sure it should be done.

So it can be done but I’m better installing Jesse nothing holding me to stretch, which would make life much simpler, I’m not really in a position to buy another pi :confused: as money is a little tight for me. So I was hoping to get them both running on the same pi

So I have a quick question don’t know if it’s a stupid thing to say or not but on the picroft image can’t we just add a gui using the raspbian light mod for pixel gui??

Well I know that it will work with Jesse (not Jesse lite like the Picroft image), because you need the full Jesse (with GUI) that you’ll need for MagicMirror. If you get the Jesse image, install it, then install MagicMirror, then follow the above steps to install the virtualenv, it will work.

Raspbian Jesse img

MagicMirror

Then follow this post

What RPi are you using. If it’s a RPi 3b+ you will have issues with Jesse.

See this post

Yes it’s the 3+ starting to get the impression that I’m going to lose this battle

Would the gui idea work??

@Jmh474 If you’re using the 3b+ you can install Jesse, but it looks like a lot of work and I’m not sure what all is involved. Keeping them on the same Pi looks as if, in your case, is a losing proposition - too many hurdles to overcome. Sorry to get your hopes up. Mycroft as an AI assistant is great to work with. Very easy to write skills etc. In my case, I’m going to bite the bullet and pick up an extra RPi 3b+ run my Mirror on my RPi3b and use the stetch image for Mycroft on the RPi3b+. I think it willm be much easier to update the seperate Pi’s in the future that way. Sorry Mate.

@Jmh474 You can always try the Stretch Mycroft-Core, but that would require the help of someone with vastly more experience than me. Maybe @steve.penrod would be able to give you a good place to start.

He’s helped me tremendously. Met him at the Kansas City Maker Faire last year.

OK thanks for all your help, I’ll be giving it ago and see what I can find, but I’m guessing I’ll be reinstalling than getting anywhere lol

I have a RPi 3+ with rasbian stretch and I have installed MM and Mycroft. I can confirm that beside that they communicate and working together the pi is not powerfull enough and it freezes periodically. Is there any possible way to have them on the same pi or I must buy one for each?

@Anthony_36 I’ve got them both working on a RPi 3b (not +) running Raspbian Jesse, an older version of MM and Mycroft. It does work, although it’s not exactly snappy in it’s performance. My preference is to have them running on seperate RPi’s which is what I intend to do at some point when work slows down a bit. Performance would be much better, also, fewer problems with updates and dependencies I’m hypothesizing. So… It can be done, but like I mentioned to @Jmh474, I’m not sure it should be done.

2 Likes

Maybe a beefier SBC like the Tinkerboard can run MM&Mycroft together? The benchmark shows about twice the performance of a RPI3.

But it also costs as much as two RPIs, so the only advantage is having only one SBC and power supply…

1 Like

I think I agree with you. You have them all working on the same pi (not b+) with jesse and older version of MM and you are not happy with the performance. I have them all working on the same pi (b+) with rasbian stretch and the latest MM and working for some time but pi freezes in the end. So from these two examples I think it is better to have them in seperate pi’s. I’ll try it when I have the time (and money) and I’ll let you know.

It’s great to hear about your tests with these and comparing the different models for real world performance. Did you have a look at the logs after rebooting to see what might have caused the freeze?

Would be super interested to see it all in action if you had any video?

I am very Exciting with this project and I love testing it but since I am not familiar with coding and programming I can’t do a lot of things. All I have done so far is through tones of googling, articles reading and forum chating. I’ll try to make a sort video and find the logs when I get home and I’ll let you know.