def sensorFinisher(dateTime,sensorName,sensorDictionary):
    # Getting Write Path
    writePath = getWritePath(sensorName,dateTime)
    exists    = directoryCheck(writePath)
    writeCSV2(writePath,sensorDictionary,exists)
    print(writePath)
    if(latestDisplayOn):
       mL.writeJSONLatest(sensorDictionary,sensorName)
    print("-----------------------------------")
    print(sensorName)
    print(sensorDictionary)
Beispiel #2
0
def sensorFinisherIP(dateTime, sensorName, sensorDictionary):
    #Getting Write Path
    writePath = getWritePathIP(sensorName, dateTime)
    exists = directoryCheck(writePath)
    writeCSV2(writePath, sensorDictionary, exists)

    if (latestOn):
        mL.writeJSONLatest(sensorDictionary, sensorName)
    if (mqttOn):
        mL.writeMQTTLatest(sensorDictionary, sensorName)

    print("===================================")
    print(sensorName)
    print(sensorDictionary)
    print(writePath)
    print("-----------------------------------")