Input and Output to Physical Devices from JavaScript

The JavaScript interpreter in most browsers is very isolated from the PC for security reasons. However, that is getting better:

And those limitations can be removed or avoided by installing extra software into the computer. This can be a somewhat automated process where the user simply approves the installation and it is downloaded and installed. Security is only circumvented with the express approval of the user.

There are two basic means of doing this:

Or you can avoid the browser issue by running outside the browser:

Introduction to Automation: Living beyond yourself.
Web pages, HTML, Javascript and the Internet Of Things (IOT)

(A Google drive collaborative presentation)

See also:

HTML5 Web Apps.