Autostart
To enable Blynk autostart for Pi, find /etc/rc.local
file and add there:
node full_path_to_your_script.js <YourAuthToken> &
Run forever
Use forever
utility to auto-restart your script.
npm install -g forever
Run external scripts/utilities from Blynk
You can run external python, batch, or just anything executable from Node.js using child_process
module:
var exec = require('child_process').exec;
exec('command', function callback(error, stdout, stderr){
// result
});
PiBakery
PiBakery allows you to pre-configure Raspberry Pi, while creating SD Card.