Does node.js not include packages in opkg yet?
-
@Steve-Fister yea, ok. I might try that, but I use node for work, and need a different version for that. NVM has worked for me in the past, but I haven't used this old a branch before.
-
@Boken-Lin Ok, so I'm having trouble figuring out how to cross-compile a node package (i.e. twit). I've already cross compiled nodejs using JXCore, but can't seem to find any info on doing this for just a package/module. Any help is appreciated!
-
Hi @Steve-Fister, We are still trying to figure this out ourselves as well. As soon as we figure out a systematic way to do it, we'll post a tutorial on it.
Currently you just need a package to use the Twitter streaming API? I'm pretty sure there should be a way to use the twitter streaming API without using the
request
package, which is required bytwit
and a few other twitter modules for node.js. To solve your immediate problem, I will try to hack together a native-only implementation of the twitter streaming API. Once we have a consistent method to cross-compile node modules, we can then migrate over to existing node modules.Does that work?
-
@Boken-Lin Ok, that's kind of what I figured. Thought I could be Superman, guess not
Yes! If you could figure out a way to get a Twitter stream working in node on the Omega I would OWE YOU BIG TIME!!!!!!
-
@Steve-Fister There you go: https://github.com/OnionIoT/simple-twitter-stream. I've tested it out and it seems to work. There are probably some bugs, but they should be easy to debug.
Cheers!
-
@Boken-Lin said:
You are a Super Hero! Thank you so much for the help on this! I now have my project completely running. I will share the details with the community soon. It's been a very fun little project and I've learned a lot since I unboxed the Omega. My project is not all that special, but it's fun and quirky and uses the Omega!!
Thank you again!
-
@Steve-Fister Awesome! Looking forward to seeing it
-
Well, here's my little project! I used a small electro-mechanical toy bird which I purchased online for about $10 (bought a couple in case I made fried parakeet). The bird uses a photoresistor to detect movement in front of the bird, like a hand, and causes the bird to move its head/tail and tweet.
I remove the photoresistor and connected the pins to one of the Omega's GPIO pins, set to high. With the use of Node.js and a Twitter Streaming module (Thanks @Boken-Lin!!!), I was able to get the bird to chirp by setting the GPIO pin to low, based on the keyword being found in the Twitter Stream!
I have a short little video of it in action here: https://www.dropbox.com/s/earpuvg5vgdgw24/20151221_145132.mp4?dl=0
Again, thanks for the help of the Onion Community! Couldn't have done it without you. Looking forward to the next, more in-depth project!
-
@Steve-Fister Wow! That's so cool!!!
Thanks for sharing
-
@Boken-Lin Any updates on supporting later versions of node.js (>4)?
-
Hi @Mikael-HĂ„kansson, Unfortunately we don't have any update yet. It turns out to be a much harder problem than we anticipated. But don't worry, we will keep on trying, and we will send out an update as soon as we have made any progress on it!
-
Hi all,
Just wanted to mention that you can install Blynk using an IPK file, which is currently provided with Blynk library.
https://github.com/vshymanskyy/blynk-library-js/blob/master/dist/blynk-library-js.ipk
-
This post is deleted!