A data processor for data in influxDB.
Developed by Chai Wen Xuan 2021
- To fill in missing value cause by random error from data collector
- To produce fixed time sampling range data
import pandas as pd
from influxdbDataProcessor.processor import processCsvData
df = processCsvData()
- Token
- influxDb url
- Organization
- Bucket name
- CSV file location
- Sampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')
- Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')
- Contains two column ("Measurement", "Field")
import pandas as pd
from influxdbDataProcessor.processor import processArrayData
measurementArr = ["Air Conditioner"]
fieldArr = ["Temperature"]
df = processArrayData(measurementArr,fieldArr)
- Token
- influxDb url
- Organization
- Bucket name
- Sampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')
- Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')
import pandas as pd
from influxdbDataProcessor.processor import processArrayData
df = processData(token,url,org,bucket,samplerange,length,mea,field)
- Token
- influxDb url
- Organization
- Bucket name
- Sampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')
- Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')
- MeasurementArr
- FieldArr