This module syncs the date and time to whichever device requests it, in this case, an Arduino.
app.js: listens for the
#datemessage and send a timestamp.
serial.js: handles all serial connections and messages.
listener.js: just listens for any messages sent from the arduino.
How it works
When an Arduino UNO sends the following message over a serial connection:
This script will send the current date as a Unix EPOCH timestamp as a string, prepended with
timestamp. So a full response message will look like this: