Practical Node-RED Programming

BIRMINGHAM—MUMBAI

Practical Node-RED Programming

Copyright © 2021 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Associate Group Product Manager: Pavan Ramchandani

Publishing Product Manager: Kaustubh Manglurkar

Senior Editor: Sofi Rogers

Content Development Editor: Rakhi Patel

Technical Editor: Saurabh Kadave

Copy Editor: Safis Editing

Language Support Editor: Safis Editing

Project Coordinator: Divij Kotian

Proofreader: Safis Editing

Indexer: Manju Arasan

Production Designer: Alishon Mendonca

First published: March 2021

Production reference: 1190321

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-80020-159-0

www.packt.com

To my colleague, Nick O'Leary, and Node-RED Community co-organizers, Atsushi Kojo, Seigo Tanaka, and Kazuhito Yokoi, I would like to thank you for taking time from your busy schedules to help me with the book. I would also like to thank my wife, Akiko, for being my loving partner and supporting me throughout writing this book and always.

– Taiji Hagino

Foreword

Taiji has been deeply involved with the Node-RED User Group Japan since its creation. In his developer advocate role, he has worked with many users to help them build meaningful applications with Node-RED. This book reflects Taiji's skills and experience with the project and will be a great resource for many readers.

This book will provide you with a good introduction to Node-RED and give you a sense of how quickly you can get started with creating applications. The examples in each chapter will give you a taste of how much can be achieved with very little coding.

I hope it inspires you to continue building with Node-RED and to explore everything that is possible.

Nick O'Leary

Co-creator of Node-RED

Taiji has extensive development knowledge in the web/cloud, mobile, IoT, blockchain, and so on. We have known each other since the inception of the Node-RED User Group Japan 5 years ago.

Taiji has been an active contributor to the Node-RED community since the early days of Node-RED, running Node-RED meetups with us. He was a co-author of the book First Node-RED published by the Node-RED User Group Japan 3 years ago.

For more than 5 years, Node-RED has been evolving to meet the needs of developers around the world. During this time, Taiji has been a key member of IBM and has been active in Developer Advocates and Developer Relations.

In addition, Taiji has been able to gain a deep understanding of other languages and cultures through his global activities as a developer advocate and in developer relations.

Taiji has used his knowledge and experience from these global activities to organize the Node-RED Conference Tokyo, a global Node-RED event that has run for two consecutive years, where he has used his global skills to communicate with speakers from overseas and to facilitate the day of the event.

I believe Taiji will continue to serve as a global career model for Japanese developers and will be a key player in the development of the Node-RED community around the world.

Atsushi Kojo

Chief research officer at Uhuru Corporation

Taiji and I have been working together at the Node-RED User Group Japan for 5 years. He is one of the user group organizers. Taiji is especially looking globally with the aim of sharing technological possibilities, such as setting up a meeting between the organizer of a Japanese user group and the Node-RED development team at IBM Hursley. Recently, we held Node-RED Con Tokyo 2019 and 2020 together. Taiji has also carried out an important role as an online moderator and manager.

Taiji has written various blogs where he has shared his immense knowledge of Node-RED smartly. The source of his knowledge comes from his great experience as an excellent developer and developer advocate at IBM. He has gained experience with business use cases and development knowledge such as IoT, mobile applications, cloud technologies, databases, and blockchain in his developer relations activity.

He has a strong understanding of the synergies and difficulties of combining each technology. Many developers find Node-RED attractive because of him. This book represents how knowledgeable he is as a developer.

Read this book and discover how wonderful it is to combine various technologies such as IoT and the cloud using Node-RED, and expand your possibilities as a developer.

Seigo Tanaka

President, 1ft seabass

Contributors

About the author

After becoming a software engineer, Taiji Hagino started Accurate System Ltd. with his amazing software development experience. After working as a system integrator of a subsidiary of a general trading company, he now works as a developer advocate in the IBM Global team, developing DevRel (developer relations), a marketing approach to engineers. He also works as a lecturer at the Faculty of Informatics, University of Tsukuba. Works he has authored include Developer Marketing DevRel Q&A (Impress R&D), First Node-RED, Practical Node-RED Application Manual (Kogakusha), and so on. He has been awarded Microsoft MVP and was previously a musician and a hairdresser.

I want to thank all the people who have been close to me and supported me throughout writing this book, especially my wife, Akiko, and my family.

About the reviewers

Nick O'Leary is an open source developer and leads the OpenJS Node-RED project. He spends his time playing with IoT technologies, having worked on projects ranging from smart meter energy monitoring to retrofitting sensors to industrial manufacturing lines with Raspberry Pis and Arduinos. With a background in pervasive messaging, he is a contributor to the Eclipse Paho project and sits on the OASIS MQTT Technical Committee and the OpenJS Cross Project Council.

Kazuhito Yokoi works for OSS Solution Center in Hitachi, Ltd. as a software engineer. On GitHub, he is a member of the Node-RED project. Hitachi has used Node-RED in their IoT platform, Lumada. To improve the code quality and add new features, his team joined the Node-RED project as contributors. For 4 years, 19 contributors in his team have added over 700 commits and 80,000 lines to the project. Currently, they are contributing to not only Node-RED but also sub-projects such as a node generator to generate nodes from various sources without coding, and a Node-RED installer to set up Node-RED without CLI operations. He held sessions about Node-RED at the Open Source Summit Japan 2020, Node+JS Interactive 2018, and other global conferences.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.42.208