NodeJS Blynk - Code Examples for Basic Tasks (Work in Progress)

7 - Terminal Repeat

A simple Terminal repeating function, with added Time and Date.

image

// ----- Repeat terminal input -----
var term = new blynk.WidgetTerminal(13);  // Setup Terminal Widget

term.on('write', function(data) {
 term.write('You wrote:' + data + " @ " + new Date().toTimeString() + " " + new Date().toDateString() + '\n');
});