Howto for Raspberry Pi

It worrks with sudo ./blynk --server=192.168.10.145 --token=xxxxxxxx, but now where I can put my own code?

Don’t bother with client-ssl-local.js for now, see my last post.

Hello everbody here
got some kind of quiestions about this topic

  1. I got raspberry pi 1 B+, bananpi m1, m2, R1 and orangepi one.
    All of them got wiringPI installed(WiringBP and etc).
    Can i run blynk to controll pins of my bpis and orangpi?

  2. I got ds18b20 and DHT22 sensors.
    i can periodicaly get values to string from them using adafruit and 1wire library(in #!bash for example) with cron
    How can i write string value to virtualpin?(i want indicate it in dashboard)

If you want i can send all output of “gpio readall” on all of my devices

Bananapi R1

OrangePi one

Bananpi M2

Bananapi M1

@zara

  1. Yes
  2. You need to write a small piece of java script.

For 1 and 2 if you search this site, Blynk’s GitHub, Instructables and Google you should find what you need.

1 - But how? They got different GPIO pinout))))))
There is no Bpi R1 or M1 or OrangePi one in android APP

Aha I got you!
executable .js with ness code will help)))

Thanks for samples above))

You can just use Virtual Pins for that:

Raspberry Pi is not able to connect to Blynk server

sudo ./blynk --token=AuthToken
[4001726] Blynk v0.4.0 on Linux
[4001728] Connecting to blynk-cloud.com:8442
[4001745] Cannot get addr info
[4006729] Connecting to blynk-cloud.com:8442
[4006734] Cannot get addr info
[4011730] Connecting to blynk-cloud.com:8442
[4011736] Cannot get addr info

Can some one help me ?

Are you actually sending this exact command or the correct command of:

sudo ./blynk --token=32charactertokenfromtheapp

where 32charactertokenfromtheapp is the token you see in your project?

yes copied from my newly created project in Blynk app.

try http://blynk-cloud.com/32charactertokenfromtheapp/project in a web browser.

Does it look ok?

try to telnet from Pi to server and see what it gives you. Should connect for perhaps 30s before disconnecting you.

the API call from a web browser should end with “isActive”:true if your Pi is connected (and false if it isn’t).

Isactive is true. http://blynk-cloud.com/Authtoken/project
But on Blynk app, Raspberry is offline even.

please remove your token from your last post as you are giving the world access to your hardware.
suggest you refresh the token in the app.

i notice your IoT project is shared, was that intentional?

sharing is a bit advanced if you are just starting and whoever did the sharing needs to have the project running for anyone else to use it.

did you try telnet?

For me, it was the step of finding this little tidbit out of all my other searches and “help requested” posts; scouring the DOC’s; (which, BTW are missing a few little lines of code):

git clone https://github.com/blynkkk/blynk-library.git
cd blynk-library/linux
make clean all target=raspberry

But after slowly locating and assembling together bits and pieces of info and code, etc, etc… I have, at last, found the lost piece :joy:

5 mins? Hah, more like 5 months… but the darn slider and value display now works without crashing… :stuck_out_tongue:

Now to go and resolve my latest “help” post with my own answer… again :wink:

@Gunner just uipdated the docs. should be more clear

Thank you @vshymanskyy However I admit that I am reluctant to go through the process again… now that I have things running smoothly using the wiringPi method.

And on that note; Why are there two different methods? Do you have pros/cons on each? And can they both methods be installed together, but run independently?

Just clone your SD card and make the mods to one copy. If it fails revert back to the good SD card.

1 Like

Ah, yes… if only I had another SD :frowning: Sorry for being a pain guys… Stuck with the toys I have; I do not have the resources to acquire anything else right now, every $ goes toward that powerful urge to eat :wink:

I will try imaging the SD to my PC and see how that goes.

Any answers to the rest of my questions? Is wiringPi a touchy subject?

I have got the exact same error.
I have a raspberry Pi 3.
I have followed all instructions listed above multiple times.
I even updated the Makefile as suggested in a comment below.
the issue is still the same – sudo: ./blynk: command not found.
Kindly suggest.