Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
sphero-connector-http
Advanced tools
[![npm version](https://img.shields.io/npm/v/sphero-connector-http.svg?style=flat)](https://www.npmjs.org/package/sphero-connector-http) [![Dependency Status](https://david-dm.org/chrkhl/sphero-connector-http.svg)](https://david-dm.org/chrkhl/sphero-conne
This is a small CLI tool to run an express based HTTP server for connecting and controlling Sphero toys via HTTP requests. It uses Sphero Connector Core, a tiny wrapper around the unofficial Sphero V2 API for communicating with Sphero toys.
Install Sphero-Connector-HTTP via npm:
npm install --save sphero-connector-http
Add npm run script to your package.json
:
{
"scripts": {
"sphero-connector-http": "sphero-connector-http"
}
}
Add the following section to your package.json
:
{
"sphero-connector": {
"type": "http"
}
}
Finally, run npm run sphero-connector-http
and sphero-connector-http will start its express server listening on port 3000.
By default, sphero-connector-http will listen on port 3000 for incoming HTTP requests.
You can change the port number (range from 3.000 to 40.000) in the sphero-connector
section of your package.json as follows:
{
"sphero-connector": {
"type": "http",
"port": 7331
}
}
To auto-connect with a Sphero toy on start, you can specify the toy type and name in your package.json.
{
"sphero-connector": {
"type": "http",
"connectOnStart": {
"toyType": "SpheroMini",
"toyName": "SM-0815"
}
}
}
Valid values for toyType
are: SpheroMini
, LightningMcQueen
, R2D2
, R2Q5
, BB9E
.
The toyName
option is currently only supported for toyType: "SpheroMini"
.
POST /connect
(body: { type: 'SpheroMini' }, name: 'SM-0815' }
)POST /wake
POST /sleep
POST /main-led-color/random
POST /main-led-color/hex
(body: { color: '#ACADDB' }
)Please be aware of the licenses of the components used in this project. Everything else that has been developed by the contributions to this project is under MIT License.
FAQs
A small CLI tool to run an express based HTTP server for connecting and controlling Sphero toys via HTTP requests
We found that sphero-connector-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.