Skip to Content
Practical Internet of Things with JavaScript
book

Practical Internet of Things with JavaScript

by Arvind Ravulavaru
December 2017
Intermediate to advanced
296 pages
5h 56m
English
Packt Publishing
Content preview from Practical Internet of Things with JavaScript

Testing the code

Now that we are done with the setup, let us test it. Power Raspberry Pi, upload the code if not done already, and run the following:

npm start

Once the code is running, trigger a motion. This will start the camera recording and save the video for five seconds. Then this video will be emailed to the user. The following is a list of the output:

The received email would be as follows:

This is an alternative of using Raspberry Pi 3 for surveillance.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driving JavaScript Applications

Test-Driving JavaScript Applications

Venkat Subramaniam
Web Caching and Replication

Web Caching and Replication

Michael Rabinovich, Oliver Spatscheck

Publisher Resources

ISBN: 9781788292948Supplemental Content