Blynk local server on RPI

This might sound stupid, but is it possible to get both the client and local server running on the same RPI?

Hello. Yes. Why not =)?

1 Like

@Dmitriy, when I try to connect to the server running on pi from mobile app, it successfully connects (login). But when I try to setup a RPI device and use the RPI ID from the app on pi like blynk.js ID, it’s trying to connect to the cloud Blynk server and gets terminated abruptly. What am I doing wrong?

Did you change javascript sketch to connect to local server?

I didn’t change any files. You mean the blynk.js file? What & where should I include to point to my local server?

I have it set up like so:

bastiaan@legotrainz:/usr/local/bin $ cat blynk.js
#!/usr/bin/env node

var Blynk = require("../");

if (!process.argv[2]) {
  console.log("Please specify auth token.");

var blynk = new Blynk.Blynk(process.argv[2], options= {addr : ""});

blynk.on('connect', function() {
  console.log("Blynk ready.");
1 Like