cake? Just open a terminal and type the commands below to grab and install Node for armhf. Node modules, or libraries, will allow our application to talk to serial ports and other hardware peripherals. Node is the runtime that allows you to program local applications in JavaScript. The main difference being that this web page can call nodeJS modules, which have access to hardware. By essentially wrapping your JavaScript, HTML5 and CSS in a Chromium window, NWJS allows you to build bona fide executable applications in the same way that you might design a web page. NWJS is a Chromium-based app runtime for creating native applications using web technologies. If you're not sure why it's cool to run NWJS on Raspberry Pi, here's a quick primer on the project formerly known as Node-Webkit. Because of this, I don't have a big hardware update for you this week, but what I do have to offer is a tested procedure for installing NWJS and the "serialport" node module onto a Raspberry Pi 3! Okay, but why? That worked great on my Windows 10 laptop, but moving to an arm Linux platform like the Raspberry Pi was surprisingly challenging. As a first step in developing my application, I wrote a simple GUI for the Nutritionix API that interfaces with a serial barcode scanner. In my last Digital Pantry update, I raved about using NWJS (formerly Node-Webkit) to build nice-looking applications using HTML, CSS and JavaScript, which have full access to your project's hardware peripherals. _ Hardware Hump Day: New Year's Resolution #2 – Healthier Eating (Continued) _ IoTuesday: New Year's Resolution #2 – Healthier Eating_ If you want to catch up on my Digital Pantry progress up to now, check out the links below: Since this is such a popular platform, I decided to dedicate a blog post to this process alone. In the course of working on my Digital Pantry project, I discovered that there are quite a few tricks to building NWJS applications for the Raspberry Pi.
0 Comments
Leave a Reply. |