src/sleepy-to-sleeping.py
def main():
    """
    Read data from mongo and write (some of) it to InfluxDB
    """
    global DEBUG

    config = tesladata.readconfig()
    DEBUG = config["debug"]

    client = tesladata.mongoclient(config["mongo_server"])
    mongo_db = client[config["mongo_database"]]

    tesladata.sleepy_to_sleep(mongo_db=mongo_db, influx_server=config["influx_server"])

    Read data from mongo and write (some of) it to InfluxDB
    
Read data from mongo and write (some of) it to InfluxDB
Read data from mongo and write ( some of ) it to InfluxDB
def main():
    global DEBUG
    config = tesladata.readconfig()
    DEBUG = config["debug"]
    client = tesladata.mongoclient(config["mongo_server"])
    mongo_db = client[config["mongo_database"]]
    tesladata.sleepy_to_sleep(mongo_db=mongo_db, influx_server=config["influx_server"])
def main ( ) : global DEBUG config = tesladata . readconfig ( ) DEBUG = config [ "debug" ] client = tesladata . mongoclient ( config [ "mongo_server" ] ) mongo_db = client [ config [ "mongo_database" ] ] tesladata . sleepy_to_sleep ( mongo_db = mongo_db , influx_server = config [ "influx_server" ] )
Read data from mongo and write (some of) it to InfluxDB
Read data from mongo and write ( some of ) it to InfluxDB
"""
    Read data from mongo and write (some of) it to InfluxDB
    """