Blynk - How do we install the library?
-
@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!