Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.12 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.12 KB

IoT Joystick!

This simple setup will get you driving your IoT items from miles away in no time!

Requirements

Setup

  1. open up /public/index.html and fill out the config object with all of your Firebase credentials. If you do not have any credentials, create a project at Firebase and follow the setup guide (It will give you your credentials)
  2. Open up terminal (or Command Prompt), and cd insdie the IoT-joystick folder
  3. Once you are inside the project, run npm install
  4. Open your Firebase project and add two childs:
  • joystick_x
  • joystick_y
  1. Run node app.js and profit

At this point you should be able to click and drag anywhere on the screen to move the joystick. If you look at your firebase database, you will notice that both of your childs (joystick_x and joystick_y) are updating live. Use the firebase api to access this database from some other device to put the joystick into some good use!