Howto for Raspberry Pi

Ok, got around the problem, must have been something temporary on the blynk site…

The blynk app seems to be unresponsive at times. I start the app, have a single button on the app screen to affect a gpio pin on the pi but when I start the app, the button does not work. When it does work, it does not tell me the proper current state of the gpio. Any solution? Running on loli pop using sm-P900 samsung note pro tablet.

Searching further, part of the problem appears to be an authentication issue. What I have found is that when blynk app is non responsive, if I press that back button it asks me if I want to log out… then if I say I want to log out it gives me the option to log in… if I then log in blynk now starts responding… so there seems to be a problem when blynk starts that it may not log in properly… and it gives no warning or status… except the buttons are unresponsive. There is also an issue when a button is in switch mode that it does not properly indicate the current pi gpio state… je it always starts as off even though the gpio state is on

@ivanareede what mobile device do you have and are you using latest app version?

Pin problems! I have a raspberry +b I have the blank installed correctly I believe and it dose link to my phone (iOS) and I can use a switch and see the print out of it turning on and off but I can’t seem to get it to even light a led and I have tried every pin/setting I can change? What am I doing wrong here? Or do you think the Pi is damaged?

Please can someone explain who to use virtual ports ?

did u change raspberry name when install raspbian???
make clean all target=raspberry (target= your raspberry name)
I have change than i need to use
make clean all target=pi

Hi all, please check this one:

I’m using a samsung sm-p900 tablet with the latest OS.

I have tried it with and without the -fpermissive line, but with no luck.

I get this error:

pi@raspberrypi ~/blynk-library/linux $ make clean all target=raspberry
rm main.o BlynkDebug.o …/utility/BlynkHandlers.o blynk
rm: cannot remove main.o': No such file or directory rm: cannot removeBlynkDebug.o’: No such file or directory
rm: cannot remove ../utility/BlynkHandlers.o': No such file or directory rm: cannot removeblynk’: No such file or directory
Makefile:62: recipe for target ‘clean’ failed
make: [clean] Error 1 (ignored)
g++ -I …/ -I ./ -DLINUX -c -O3 -w -DRASPBERRY -fpermissive main.cpp -o main.o
In file included from main.cpp:13:0:
./BlynkApiWiringPi.h: In member function ‘void
BlynkApi::processCmd(const void*, size_t)’:
./BlynkApiWiringPi.h:40:18: error: ‘BLYNK_HW_IN’ was not declared in this scope
Makefile:68: recipe for target ‘main.o’ failed
make: *** [main.o] Error 1
pi@raspberrypi ~/blynk-library/linux $

The only suggestion I’ve seen for dealing with it is the -fpermissive thing, and it hasn’t helped here. Any idea how to get Blynk running on a Raspberry Pi?

Working on the fix…

Fixed it on the latest master.

Can somebody help me to figure out what is magic is happening here… I have raspberry pi B rev2. I followed instruction and installed everything. So now when i am making python blynk_ctrl.py --token TOKEN -vw 1 23 it is execute without errors and even i see that message Device offline is gone in Blink IOS app. But i don’t see any updates on my listeners in the ios app. I started troubleshoot this and found this topic and @rabe69 message about some scripts in test folder. I tried to run python pseudo-library.py --token TOKEN and it is updating values in IOS app successfully. So i don’t understand why blynk_ctrl.py is not updating values in the app but pseudo-library.py is doing that. Can somebody help?

Hi manusovich,

I too see the Blynk app going offline when running the Python command blynk_ctrl.py on the Raspberry Pi. For me it is with Android rather than iOS. When I run the same command on a Windows machine it all seems to work ok. Any thoughts from the Blynk guys?

manusovich do you have anything connected to the Raspberry Pi? Just LED’s or perhaps an Arduino.

See also the thread I staerted at Python Gateway for Openelec on Raspberry Pi

I have display connected (extension board) to pi. Also Bluetooth, wifi dongle and relay.

Can you pls repost the link? as the the link provided gives a 404 error

1 Like

This link from above is dead
https://github.com/blynkkk/blynk-library/blob/master/docs/Platforms.md#linux-raspberry-pi

This link appears to be broken too

Just check the docs: http://docs.blynk.cc/#hardware-set-ups-raspberry-pi