sphero-inc / sphero-sdk-raspberrypi-nodejs Goto Github PK
View Code? Open in Web Editor NEWSphero SDK to run on Raspberry Pi using a Node.js RESTful web api and web sockets
License: Other
Sphero SDK to run on Raspberry Pi using a Node.js RESTful web api and web sockets
License: Other
Hello! I just found out RVR supports shutdown commands via the UART port via here. Is there any chance we can receive an update to the power commands to include this functionality?
When hitting endpoint /ledControl/setAllLedColor and a few other color related endpoints, my route 404s. Would appreciate advice in resolving this as I would like to have LED control over the RVR.
When starting the dashboard, by running "npm run start" or "yarn run start", there is an error when the application sends a request to /api/v1.0/sensor/configureStreamingService/, ends up in a 400 bad request error:
URL: http://raspberrypi.local:2010/api/v1.0/sensor/configureStreamingService/1
Request method: PUT
Payload: {"token":3,"configuration":[0,10,1],"isResponseRequested":true}
Response: {"error":"Error in configureStreamingService while sending API Command: Response has error code 6 (Command Failed)."}
This can be reproduced without any customization to the dashboard's code base.
Device: Sphero RVR
Main Application Version:
Nordic: 8.3.432
ST: 8.6.448
In public/dashboard/src/App.js, an internal IP address (10.211.2.18) is hard coded into the example for determining which WebSocket to connect to. This address should instead be dynamic based on where the dashboard is loaded - ideally, using window.location.origin to auto detect the correct value if the dashboard is hosted on the same device connected to the RVR.
This error occurs after a node dist/server.js, testing some api-docs as reported below
info: DRIVE (0X16) >> Response -- Route: /drive/rawMotors/2 | Method: PUT
debug: DRIVE (0X16) >> Response -- Route: /drive/rawMotors/2 | Method: PUT | Device: Drive (0x16) (22) | Command: RawMotors (1) | SourceId: 1 | TargetId: 18 | Payload:
events.js:174
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT 107.178.243.76:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
Emitted 'error' event at:
at Socket.socketErrorListener (_http_client.js:392:9)
at Socket.emit (events.js:189:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
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.