Read the statement by Michael Teeuw here.
Pi Zero
-
@evos I’ve only just seen this. Awesome work! I’ll check it out!
This means I can free up my Pi3 for something else
-
Hi All,
MM2 works on Pi0. If you want install MM2 on Pi0 use the @evos process or use my install file.
MagicMirrorInstallPi0.sh -
@Neokamikaze thanks, I’d manually got to the same sort of place the script would have got me to… It would have got me there faster ;) Further testing has shown it was my set up of kweb that was at fault not MM2 (the page loaded correctly with firefox). I was testing the page in regular browser mode before using kiosk mode so I can perfect my own config.sh. It turned out I had jScript and cookies off, with these enabled fixed the issue I was seeing.
Thanks for all your great work on getting MM2 working on the Pi0!
-
@KirAsh4 it may be worth getting the support statement updated to the same level as using the Pi1, the Pi0 will run MM2 quite happily using ‘node serveronly’… in my case it turn out you just need to be sure kweb is set up correctly if that is the browser of choice ;)
-
I can confirm. It is working with pi 1 in server only mode and kweb. Just some modules don’t show like mmm-sonos. If you connect with anotrr machine with chrome it works normally so it is a browser problem :( and I couldn’t find a solution for that till now
-
@darkeagl105 I found out with kweb you must enable cookies and Java Script for anything to work. So far I’ve only tested with the default modules, if I find out more about the non-default modules I’ll post here. Kweb is nice and light, I tried firefox but the Pi0 struggles to run it.
-
@nigel-daniels I know tried it with all kind of browser and stick with kweb. Will try this weekend with my settings and a pi0 to confirm it as well. I was using a Pi1 B+
-
Has anyone encountered the following issue with kweb. I got everything up and running on the Pi0 and used the platform to develop a new module MMM-FAA-Delay. I then stopped VNC from auto starting, set the boot to console with pi logged in, reinstated the autostart MM2 and kweb script. However this time I also set the screen rotation in config.txt. Everything works fine but it looks like kweb is still using the previous screen ratio even though it’s rotated. i.e. it only fills the top third or so of the screen and the left hand side is ‘off screen’.
Any thoughts?
-
@nigel-daniels Follow up I just did a full reinstall, Kweb now seems to get the screen width of the rotated screen but still only uses the upper third portion of the screen :( Any thoughts on how I tell it the screen height.
-
@nigel-daniels Ok deeper digging into the kweb code has revealed that the ratio options are hard coded :( I’ve put a request to the Kweb authors for this to be an option. As a short term hack you can install kweb as per @Neokamikaze suggested, then:
git clone https://github.com/ekapujiw2002/kweb
sudo apt-get install webkitgtk-3.0
Then open up kweb.c and change one of the parameter settings to be the ratio you need, for example I set 8 to be 1080x1920. Then make the kweb code and replace /usr/bin/kweb with your custom binary. Now alter the start.sh to use the number you chose for your custom ratio.