예제 #1
0
def sensorFinisherIP(dateTime, sensorName, sensorDictionary):
    #Getting Write Path
    writePath = getWritePathIP(sensorName, dateTime)
    exists = directoryCheck(writePath)
    writeCSV2(writePath, sensorDictionary, exists)
    print(writePath)
    if (latestDisplayOn):
        mL.writeJSONLatest(sensorDictionary, sensorName)
    if (mqttOn):
        mL.writeMQTTLatest(sensorDictionary, sensorName)

    print("-----------------------------------")
    print(sensorName)
    print(sensorDictionary)
예제 #2
0
def sensorFinisherRef(dateTime, sensorName, sensorDictionary):
    writePath = getWritePathRef(sensorName, dateTime)
    exists = directoryCheck(writePath)
    writeCSV2(writePath, sensorDictionary, exists)

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

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