Skip to content

Make an LED blink when a Firebase database value changes

License

Notifications You must be signed in to change notification settings

drouhard/firebase-blinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Blinker


Blinks an LED on an arduino when a value changes in a firebase database.

Installation


Prerequisites:

git clone

npm install

Usage

Plug your LED into your board as shown below. The default pin is 13.

alt tag

Then connect via USB and enter npm start in the console. The LED will blink off and on for four seconds when the watched database path's value changes.

Configuration (config.js)

Use your own firebase project url and authentication. You can use any subdomain of firebaseio-demo.com without authenticating or creating a project, but note that the data could be changed or removed at any time.

Change watchedPath to the path in your database you want to watch. Use null to watch the entire database.

If you use a pin other than 13 for the LED, change it to match.

About

Make an LED blink when a Firebase database value changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published