Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

spyghost

borgaster13ISC1.0.6TypeScript support: included

A very simple library to control the SpyGhost Wifi car

SpyGhost, wifi

readme

A simple library to control the SpyGhost wifi car

📝 Table of Contents

🧐 About

Since the original IConSpy app hasn't been updated in a while, I decided to create a small library to enable controlling the SpyGhost wifi car.

🏁 Getting Started

Prerequisites

This library uses nodejs and Typescript. To handle the data stream to and from the car, I'm using RxJs

Installing

npm install spyghost

🎈 Usage

const ghost = SpyGhost.getInstance(); // Establishes a connection. Ensure you're connected to the car's wifi 
ghost.move( movement: Movement ); // Moves the car. 
ghost.close(); // Closes the connection

The Movement interface represents the movements (forward, backward, left, right) and velocity. The direction of the movement is abstracted by the Axis interface

⛏️ Built Using

✍️ Authors

🎉 Acknowledgements

  • Hat tip to anyone whose code was used
  • Inspiration
  • References