In this tutorial, we learn how to scrape data from web pages and display the results in Google Sheets. We start with the standard built-in Sheets functions and move on to more advanced methods using custom JavaScript functions. What is web scraping, ... more
In Create a Web Server in Node without any Code, we used the http-server npm module to create a web server and serve up files in record time. Today I will share a way you can take the web server you built and make it available beyond your local network ... more
I'm a big fan of Redis, a fast in-memory database that persists on disk, and I've previously written a Guide to Using Redis with Node.js which provides a fairly comprehensive overview of using Redis from the command line and using it in conjunction with ... more
In a previous article on counting unique items in a JavaScript array, I introduced you to the system I am creating that enables our family to log when the fish š in our aquarium have been fed. The feeding times are logged to a file by pressing a push-button ... more
The fish š in our home aquarium arenāt very communicative. I donāt necessarily need them to communicate their deepest emotions, but it would be helpful if they would at least tell me when they are hungry. Believe it or not, they donāt. Alas, when I ... more
Our friend Freddy Fishman needs our help. He recently launched an aquaponics business to raise fish š and cultivate underwater plants, and he needs a real-time report to ensure the environmental conditions of his fish tanks are optimized so both his ... more
Itās easy to install and upgrade Node.js on the Raspberry Pi as explained in my guides on installing Node.js and upgrading Node.js on a Raspberry Pi. In fact, itās easy on any Linux-based system. For Windows systems, however, the default installation ... more
In this article, weāll learn how to use TOML, a rising star āin the configuration file world, with Node.js. After reading this article, you will understand the TOML syntax including how to use it to model JavaScript objects in your Node applications. ... more
In this tutorial, weāre going to build a highly optimized Raspberry Pi system that runs very lean on resources with the help of Raspbian Lite. Whereas a baseline Raspbian system consumes around 158 MB of RAM, Raspbian Lite runs at a mere 34 MB. To achieve ... more
In this article, we learn how to copy from Visual Studio Code with color syntax highlighting to various other applications including Word, PowerPoint, Outlook, OneNote, and Gmail to achieve beautiful, clear code samples for documentation, presentations, ... more
I just completed a pretty extensive Guide to Using Redis with Node.js. In this guide, we explore using Redis, a fast in-memory database that persists on disk, in conjunction with Node.js. We work through real examples to help equip you to: Install Redis ... more
My son Benjamin (junior in high school) and I received a unique opportunity. We traveled to Microsoftās headquarters in Redmond to conduct an interview in honor of the launch of Visual Studio 2017, and the 20th anniversary of Visual Studio. One of the ... more
OK, Google Sheets! Send me an email if I need an umbrella today. Send an email using Google Sheets? Yes, thatās right! Sheets can do a lot more than add numbers and calculate your mortgage payments. In our last article, we learned how to consume JSON ... more
Iāve said it before, and Iāll say it again. JSON has become the lingua franca for exchanging data on the web, and we (as developers) need to know how to process JSON data received from RESTful web services so we can be positioned for the present and for ... more
Hey everyone! I decided to put a few extra batteries in the background color of the article image above. š Iām actually pretty charged up about our topic today, particularly about jq, which is a lightweight and flexible command-line JSON processor with ... more
In our last article, we learned how to control a Raspberry Pi from a mobile device and, as a bonus, we created a menu to make it even easier to issue commands and control our Pi. Weāre back today to put that remote menu to good use because weāre building ... more
In my Beginnerās Guide to Installing Node.js on a Raspberry Pi, I equipped you with the knowledge needed to build an awesome Raspberry Pi system that could also run in a headless mode. Weāre able to avoid a dedicated monitor, keyboard, and mouse, and ... more
In our last article, we learned how to create Node.js microservices using Polybitās stdlib platform. We created a fabulous (IMHO š ) GPS service that enabled us to retrieve the name of a city based on its GPS coordinates. Today, weāre going to learn ... more
In a previous tutorial, we learned how to send email notifications Using Nodemailer and Gmail. In todayās session, we will learn how to play sounds using Node.js. As a bonus, we will learn how to continue to play a sound until our notification has been ... more
Microservices and serverless architectures are all the rage in the software industry. After working with Polybitās amazing stdlib platform, I am clearly seeing the value of this promising technology! Today, I will introduce you to stdlib. I encourage ... more
Iāve received questions from readers of my Beginnerās Guide to Installing Node.js on a Raspberry Pi wanting to know how to upgrade to more recent versions of Node.js on the Raspberry Pi. The steps are quite easy and can be adapted to other Debian variants ... more
This article has been updated to cover the installation of the latest version of Node at the time of this writing which is Node 7.x. In this installment of our LTM (Learning through Making) series of Node.js tutorials, weāre going to get Node up and running ... more
Itās here! The Node.js Foundation has released version 7 of Node.js, an open-source, cross platform JavaScript runtime environment. Node.js provides an event-driven architecture capable of asynchronous I/O and allows us to build a gamut of software from ... more
We all want to be in the loop and notified when certain events occur within our Node.js programs. For example, email notifications can be very important for creating situational awareness with IoT systems we develop that interact with our physical world. ... more
Iām preparing for an upcoming speaking engagement around the topic of using Node.js and the Raspberry Pi for IoT applications. While at home, I enjoy the luxury of being the owner of my network which provides complete freedom in network configuration. ... more
In this tutorial, we harness the power of YAML for use within Node.js. As described on the official YAML site, YAML (YAML Aināt Markup Language) is a āhuman friendly data serialization standard for all programming languagesā. YAML and JSON are closely ... more
The ability to log data is an important capability in IoT applications. In this tutorial, we learn how to use Node.js to log data by utilizing built-in Node modules. There are certainly excellent logging modules available including pino and Winston (see ... more
In preparing for an upcoming Node.js IoT tutorial focused on creating notifications based on sensor values (for example, audible alerts), I wave of brilliance came over me. š Wouldnāt it be awesome if these notifications could be interactively acknowledged ... more
Weāre back today to embark on another cool Node.js IoT project. This time, weāre going to interact with the International Space Station (ISS) and track it as it flies through the sky. Weāll eventually work with physical sensors that sit right on our desk, ... more