Blynk - How do we install the library?
-
Thanks Kit, appreciate the links.
It would seem the hardware support list may need updating as Blynk has Onion Omega listed in the iOS app.
-
@Kris-Hamilton Yup, we are actually working with the Blynk team on this right now. Blynk does support the Raspberry Pi, and the Raspbian is relatively similar to OpenWRT, so they should have it working soon!
-
Thats awesome! Thanks for the update @Boken-Lin.
-
Hey @Boken-Lin , just wondering if there is any update on Blynk?
-
I would also like to be able to use Blynk
-
You could install it on your PC and then transfer the
node_modules
folder over to the Omega.I've done it myself but unfortunatelly it doesn't work. I don't know if it's because of the nodejs version on the Omega or something else, but it doesn't keep the connection with Blynk cloud open. Right now it's pretty much useless.
-
Hi @Kris-Hamilton, First of all, with regards to the Blynk accounts, I believe the Blynk team is performing some upgrades to their service this month, and as soon as the upgrades are done (their estimate is mid February), they will be releasing the Blynk accounts so that you can use Blynk to control boards such as the Arduino, Raspberry Pi, etc.
Second, integration with the Omega is still underway. It took much longer than expected because it seems that our GPIO library wasn't compatible with their program, so we are making a few changes to our GPIO library so that the Blynk app can make use of it to control the Omega.
Cheers!
-
Hey @Boken-Lin, thanks for the update.
-
@Boken-Lin Any details yet? Even if we can't use it on the onion, it'd be nice to have the license so we can at least familiarize ourselves with it on something else in the meantime?
-
Hi Shawn,
You could use Bylnk with NodeJS, however it turns out I'm not the only one having issues installing npm installing new packages https://community.onion.io/topic/621/error-while-trying-to-install-with-npm
Also as a reference once that issue is resolved, you can follow the guide here http://www.instructables.com/id/Blynk-JavaScript-in-20-minutes-Raspberry-Pi-Edison/ & here https://github.com/vshymanskyy/blynk-library-js
Matt
-
I still can't use Blynk on the Omega, even with the latest opkg nodejs package.
I have installed Blynk through NPM in another machine and just copied over the node_modules folder to the Omega.
When trying to run a simple script I get an error when it's trying to connect to the blynk cloud:events.js:146 throw err; ^ Error: Uncaught, unspecified "error" event. (ENOTFOUND) at emit (events.js:144:17) at Blynk.error (/root/blynk/node_modules/blynk-library/blynk.js:569:8) at null.<anonymous> (/root/blynk/node_modules/blynk-library/blynk.js:532:48) at emitOne (events.js:77:13) at emit (events.js:169:7) at Socket.<anonymous> (/root/blynk/node_modules/blynk-library/blynk-node.js:56:7) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at connectErrorNT (net.js:997:8) at nextTickCallbackWith2Args (node.js:437:9)
I manually changed some code in the library to print out the real error and this is what I found:
getaddrinfo ENOTFOUND http://cloud.blynk.cc http://cloud.blynk.cc:8442
I'm guessing it might be related to the problem some people is having when trying to install stuff through NPM.
-
Howdy Daniel,
Well you got further than I did! And yea looks like the issue is related to IPv6 as Zheng Han has just hinted at.
Hope this gets resolved shortly, it's external tools & apps like Blynk that make the implementation of the Omega into the real world possible (without a degree in nerd) :).
Matt
-
Thanks Matt, I'm actually more interested in the license that I signed up for during the campaign. (Blynk + all widgets) I can wait for onion support if I can use one of my pi's in the meantime.
-
@Shawn-Ferris we have provided Blynk with a list of all KS backers who have backed the Blynk bundle. They should already upgraded your account. If you think they have missed yours. Please shoot an email to hello@onion.io with your detailed info.
-
With the new 0.0.8 firmware release you can now install blynk-library with npm. We are aware that the disk space on the Omega is limited. There will be a more compact version of Blynk library that you can install with opkg soon.
-
Hi @Zheng-Han, is there any further update on the compact Blynk library via OPKG?
-
As above??
-
Awfully quiet about this.
-
@Michael-Vowles @Kris-Hamilton @Anders-Öster
Check out the new Blynk Library wiki article!
-
Great, thanks!