These Firebase Realtime Database Functions are part of the Yellow Heat vegetable oil burner monitoring system. The other components in this system are:
More information about Yellow Heat vegetable oil burners is available at https://www.yellowheat.com/
These functions calculate total fuel use for the burner and store the current burner status and fuel level.
Read more about Cloud Functions for Firebase
- Create your project in the Firebase Console.
- Enable the Google sign-in provider in the Authentication > SIGN-IN METHOD tab.
- You must have the Firebase CLI installed. If you don't have it, install it and then configure it with firebase login:
$ npm install firebase-functions@latest --save
- Clone this repository and open the functions directory:
$ git clone https://github.com/a-pasquale/yellow-heat-firebase-functions; cd functions
- Install cloud functions dependencies:
$ npm --prefix functions install
- On the command line select the Firebase project you have created.
$ firebase use --add
- Configure Gmail SMTP transport for nodemailer:
$ firebase functions:config:set gmail.email='[email protected]'
$ firebase functions:config:set gmail.password='XXXXXXXXXXX'
- On the command line run firebase deploy to deploy the application.
$ firebase deploy --only functions