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
- @borgaster - Idea & Initial work
🎉 Acknowledgements
- Hat tip to anyone whose code was used
- Inspiration
- References