Giter Club home page Giter Club logo

Comments (13)

monteslu avatar monteslu commented on September 28, 2024

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.

gadgethome avatar gadgethome commented on September 28, 2024

Great. That would be really helpful. Thanks

from meshblu.

monteslu avatar monteslu commented on September 28, 2024

Docs updated: https://github.com/skynetim/hub/tree/master/devices/raspberryPi

from meshblu.

gadgethome avatar gadgethome commented on September 28, 2024

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.

monteslu avatar monteslu commented on September 28, 2024

possibly git pull origin master from the hub directory to make sure you're at the latest?

from meshblu.

monteslu avatar monteslu commented on September 28, 2024

also, can you confirm which node version you're running? node --version

from meshblu.

gadgethome avatar gadgethome commented on September 28, 2024

On my Pi I am running v0.10.23. Its not the latest but the hub did work 2-3 days ago.

from meshblu.

monteslu avatar monteslu commented on September 28, 2024

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.

gadgethome avatar gadgethome commented on September 28, 2024

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.

gadgethome avatar gadgethome commented on September 28, 2024

Its all installed and up and running now. Also tested the skynethub.sh and all good so far.

from meshblu.

 avatar commented on September 28, 2024

w00t!

from meshblu.

gadgethome avatar gadgethome commented on September 28, 2024

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.

chrismatthieu avatar chrismatthieu commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.