<reponame>attackle/nomad-rpi<filename>api/fbase.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-

'''\
Classes to easily communicate python with Arduino edge devices.

created: 05-MAY-2018
since: 05-MAY-2018
'''

import pyrebase

class Firebase(object):
    '''Class for firebase project'''

    # firebase configuration
    config = {
        "apiKey": "<KEY>",
        "authDomain": "nomad-fire.firebaseapp.com",
        "databaseURL": "https://nomad-fire.firebaseio.com",
        "projectId": "nomad-fire",
        "storageBucket": "nomad-fire.appspot.com",
        "messagingSenderId": "1097082057466"
    }

    def __init__(self):
        self.firebase = pyrebase.initialize_app(self.config)
        self.database = self.firebase.database()

#!/usr/bin/python3
# -*- coding: utf-8 -*-

'''\
Classes to easily communicate python with Arduino edge devices.

created: 05-MAY-2018
since: 05-MAY-2018
'''

import pyrebase

class Firebase(object):
    '''Class for firebase project'''

    # firebase configuration
    config = {
        "apiKey": "<KEY>",
        "authDomain": "nomad-fire.firebaseapp.com",
        "databaseURL": "https://nomad-fire.firebaseio.com",
        "projectId": "nomad-fire",
        "storageBucket": "nomad-fire.appspot.com",
        "messagingSenderId": "1097082057466"
    }

    def __init__(self):
        self.firebase = pyrebase.initialize_app(self.config)
        self.database = self.firebase.database()
#!/usr/bin/python3 # -*- coding: utf-8 -*- \ Classes to easily communicate python with Arduino edge devices.  created: 05-MAY-2018 since: 05-MAY-2018 Class for firebase project # firebase configuration