Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GkcA authored Mar 1, 2019
1 parent 849949a commit cb70826
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Raspberry Pi/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* Firebase Admin SDK Configuration */
var admin = require("firebase-admin");
var fs = require('fs');

// filestream library for writing file
var fs = require('fs');

const ACTIVATE = "activate";
const DEACTIVATE = "deactivate";
Expand All @@ -22,14 +23,8 @@ admin.initializeApp({
var defaultDatabase = admin.database();
var ref = defaultDatabase.ref();

// You can retrieve services via the defaultApp variable...
var defaultDatabase = admin.database();
var ref = defaultDatabase.ref();

entitiesFromAssistant = {}

var ref = defaultDatabase.ref();

ref.on('value', function (snapshot) {
snapshot.forEach(function (childSnapshot) {

Expand Down

0 comments on commit cb70826

Please sign in to comment.