Giter Site home page Giter Site logo

sphero-inc / sphero-sdk-raspberrypi-clientjs Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 6.0 176 KB

Sphero SDK to use in a web client to connect to the Node.js API running on a Raspberry Pi

License: Other

HTML 20.00% TypeScript 79.66% JavaScript 0.34%

sphero-sdk-raspberrypi-clientjs's People

Contributors

anthonyv44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sphero-sdk-raspberrypi-clientjs's Issues

Is anyone using this?

Hi @AnthonyV44 / authors,

I'm trying to use the ClientJS library for the RVR.

First of all - I'm trying to understand a proper set-up using Raspberry Pi. I've got the wires connected, RPi software installed & all preconditions met.

  1. The server must be running on the RPi - done. Found the swagger API - tested, seems to be working fine, driving, LED changing color works OK.

  2. The client SDK is really just a JS API for using the exposed web-services. Having that said - the client could use just about any language that supports http requests.

Anyways, a few questions:

  • should the client be running on the same machine as the server? Why are they separate, then?
  • what are the cons & pros of running them on the same vs different machines?

I'm familiar with NodeJS & server-client architecture, but the ClientJS lib is confusing.

Why are the examples written in JS embedded in HTML? Is the intention to trigger the script by opening the HTML in the browser?
If yes - the HTML needs to be opened inside the machine running the server, meaning I have to be connected using smth like a VNC to the same raspberry, in parallel to SSH where I'm running the server, which is very confusing.

and the final, but most important question of the day:
Where do I find the ../../client-library/index.js dependency? Which is used in the examples, e.g. api-and-shell

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.