import pyrebase
import firebase_admin
from firebase_admin import credentials

config = {
  "apiKey": "<KEY> <KEY>",
  "authDomain": "motion-sensor-39267.firebaseapp.com",
  "databaseURL": "https://motion-sensor-39267.firebaseio.com",
  "storageBucket": "motion-sensor-39267.appspot.com"
}

firebase = pyrebase.initialize_app(config)

db = firebase.database()
db.child("users").child("Morty")

data = {"name": "Mortimer 'Morty' Smith"}
db.child("users").push(data)
