sphero-inc / sphero-sdk-raspberrypi-clientjs Goto Github PK
View Code? Open in Web Editor NEWSphero SDK to use in a web client to connect to the Node.js API running on a Raspberry Pi
License: Other
Sphero SDK to use in a web client to connect to the Node.js API running on a Raspberry Pi
License: Other
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.
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.
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:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.