Skip to content

b-madhukar/Firebase-IOT-Raspberry-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Firebase-IOT-Raspberry-pi

config = {
"apiKey": "Paste your secret key", "authDomain": "ProjectID.firebaseapp.com", "databaseURL": "Database complete link", "storageBucket": "ProjectID.appspot.com" }

Secret key

you will find secret key at, In Project Overview --> Project settings --> Service accounts -->Database Secrets (Click on show)

Project ID

You will find Project ID at, In Project Overview --> General (Your project)

Domain URL

You will find domain url at , In RealTime Database --> Data (Complete link you need to copy)

To get values from cloud

firebase = pyrebase.initialize_app(config)

database = firebase.database()

val = database.child("Prod1").get().val()

To set values to cloud

firebase = pyrebase.initialize_app(config)

database = firebase.database()

database.child("Prod1").set("Sample")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages