Closed gadgethome closed 9 years ago
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 :)
Great. That would be really helpful. Thanks
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.
Have I missed any steps out? thanks
possibly git pull origin master
from the hub directory to make sure you're at the latest?
also, can you confirm which node version you're running? node --version
On my Pi I am running v0.10.23. Its not the latest but the hub did work 2-3 days ago.
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?
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 :)
Its all installed and up and running now. Also tested the skynethub.sh and all good so far.
w00t!
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
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.
Can the Skynet In and Skynet Out send messages to the Skynet installation on my Raspberry Pi or are they just for http://skynet.im/ when devices are registered?
Please could you give some steps on how to use Skynet In and Out?
Thanks