Comments (13)
As long as you know the uuid for the pi, you can message it to and from NodeBlu. They'll pass through skynetim.
Just add the uuid of the pi in dialog of a skynet node in NodeBlu.
Also, you might want to look at https://github.com/skynetim/hub for running on the pi. I was coincidentally about to push some docs to help with that setup in a few minutes :)
from meshblu.
Great. That would be really helpful. Thanks
from meshblu.
Docs updated: https://github.com/skynetim/hub/tree/master/devices/raspberryPi
from meshblu.
I had the hub previously installed on my pi. Just following the above instructions and ran npm install and then ran sudo node server.js
Seems to be coming up with lots of errors that were not there before. Says express was missing so I installed it. Now saying
~/hub $ sudo node server.js
module.js:340
throw err;
^
Error: Cannot find module './lib/parse-js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/pi/hub/node_modules/skynet/node_modules/socket.io-client/node_modules/uglify-js/uglify-js.js:14:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Have I missed any steps out?
thanks
from meshblu.
possibly git pull origin master
from the hub directory to make sure you're at the latest?
from meshblu.
also, can you confirm which node version you're running? node --version
from meshblu.
On my Pi I am running v0.10.23. Its not the latest but the hub did work 2-3 days ago.
from meshblu.
Should be fine. Dependencies are versioned, so only thing else I can think is maybe an error in npm downloading. Perhaps remove the node_modules folder and run npm install
again?
from meshblu.
Thanks for checking. I removed the hub directory and decided to start the install fresh. Takes a long time on the Pi but hopefully be able to test before bed :)
from meshblu.
Its all installed and up and running now. Also tested the skynethub.sh and all good so far.
from meshblu.
w00t!
from meshblu.
Do you have any examples on communicating with a device attached to the hub on a Raspberry Pi? I'm struggling to understand how to achieve it. Thanks
from meshblu.
You can now run the following command from Nodeblu's background page to connect to private instances of SkyNet:
setupConn('http://192.168.100.20', 3000, function(data){ console.log('hi', data); } );
Replace the IP address and port with your local configuration.
from meshblu.
Related Issues (20)
- Help!!! Can not get message when i run meshblu on ubuntu14.04 x64 HOT 2
- Send/Receive messages HOT 5
- Cross-protocol send/Receive messages
- About unifying APIs for all protocols HOT 2
- Retaining messages HOT 1
- TypeError: callback is not a function HOT 2
- config.token or environment variable TOKEN is required. Exiting. HOT 1
- Forwarder of webhook
- Provide a way to run core-dispatcher & protocol adapters
- DispatcherWorker constructor is missing "@pepper on Ubuntu
- DispatcherWorker constructor is missing "@pepper
- meshblu.createConnection is not a function HOT 1
- Issues about "update" API in WebSocket / HTTP protocol with Meshblu 4.0.1 HOT 1
- Issues about "broadcast message" in WebSocket with Meshblu 4.0.1
- Issues about "subscribe" API in WebSocket with Meshblu 4.0.1 HOT 1
- Add optional support for Socket.io and Websockets
- Cannot receive message using "message.received" subscription
- Can get Devices use regex? HOT 1
- How to improve the amount of concurrency per second about Meshblu
- localhost 拒绝了我们的连接请求
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meshblu.