giftdavid.blogg.se

Raspberry pi magic mirror code
Raspberry pi magic mirror code













raspberry pi magic mirror code
  1. #Raspberry pi magic mirror code how to
  2. #Raspberry pi magic mirror code install
  3. #Raspberry pi magic mirror code upgrade
  4. #Raspberry pi magic mirror code full
  5. #Raspberry pi magic mirror code code

So now I had a server running on a piece of hardware on my local network, but no display for that server.Īh, but I did.

raspberry pi magic mirror code

You get cool new features (and security fixes). But, I ended up getting a newer version of Chromium that supported optional chaining! The site loaded! I realised this about an hour into the roughly two hour apt dist-upgrade process (not including time lost to user prompts that sat there, waiting for input).

raspberry pi magic mirror code

So I didn’t have any display to permenantly use. However, at this point I hadn’t purchased any hardware, just used what I had on hand. This would be a problem if I wanted to open the website on a display connected to the raspberry pi. The server worked, I just couldn’t fully load the website.

#Raspberry pi magic mirror code upgrade

I could possibly do an OS upgrade and get new things. Running an apt upgrade brought it up to Chromium 72, still not new enough.

#Raspberry pi magic mirror code code

I could also reproduce this issue by trying to run the code sample on MDN, which was neat. Support for optional chaining was introduced to Chrome 80, in in Feb 2020. syntax, if the function called is undefined or null, undefined is returned (rather than throwing an error). This error didn’t occur on my laptop, using a clone of the repo at the same commit.Ī recent addition to JavaScript is optional chaining. After slowly loading the developer tools in Chromium, where was a syntax error in weather.js line 165. Newsfeed on the bottom (from the Reductress RSS feed).īut, the entire weather section wasn’t showing up.Weather to the right (for Melbourne), and.Calendar to the left (substituing for Australian holidays ( ical),.I could get the npm run server process to start, and then (eventually) get Chromium to load it! But some of my content was missing.Īs you’ll see from the photo at the top of this article, I had something not to disimilar from the config.js.sample: An architecture that predates Electron itself, I could find ARMv7 binaries, but not ARMv6.īut, according to the package.json, it was only an optional extra (and probably why it wasn’t installed in the first place).

raspberry pi magic mirror code

#Raspberry pi magic mirror code install

Actually, no I couldn’t, the install fails.Īgain I hit issues with ARMv6. With the config installed, I should just be able to npm run start. Takeaway: You can copy/paste with keyboard shortcuts in Debian terminals by adding Shift (Shift-Ctrl-C/V). A lesson I’d already learnt years ago, but recently re-encountered: And my reflective vi driving wasn’t working. Loading the gist up in Chromium was slow, but then I had to get that code onto my file system. Takeaway: exists, but no guarentees/support is given.Ĭontinuing the installation process, it only took ~8 minutes, and I thought it would be fine.Ĭopying the configuration from my initial poking at the project to the raspberry pi via a gist meant I should be up and running. Using the unofficial nodejs builds, I was able to find a built binary for ARMv6, which I could then install with a simple cp to the system directories. But I was able to eventually copy and paste the commands, until the nodejs installation failed. The first sign I might have problems is that loading Chromium pegged the CPU. The Magic Mirror docs are super useful, with easy copy-paste instructions. Plugging in my desktop USB hub and my monitor, I was able to use the pi as a desktop with my default perphierals, which really helped with the endless sysadminning I ended up having to do. Thankfully for me I had a bit of a shortcut at the first point, with Raspbian Stretch already installed and connected to my network. So, armed with a 2015 micro computer, a mini HDMI to standard HDMI adapter, and a micro USB Host Cable, I set to work. But more importantly, I found all the extra components I ordered back in 2019 from Core Electronics. Normally I use serverless compute so I wanted to try and get it working on physical hardware, and I was able to find the Raspberry Pi Zero I got in my swag bag at 2019. I was able to get it working and configured to my liking very quickly on my MacBook Pro. This is totally in my wheelhouse, and I know this stack. Turns out it’s just an Electron app, or just a node based web server.

#Raspberry pi magic mirror code full

I didn’t exactly want to create a two way mirror and the full setup, but I vibed with the UI of the application, so I wanted to try running it.

#Raspberry pi magic mirror code how to

So one quiet Sunday morning How to make a DIY Smart Mirror by Wicked Makers came up in my recommendations, and I learnt about MagicMirror.















Raspberry pi magic mirror code