Class Statistics
java.lang.Object
com.github.kaklakariada.fritzbox.model.homeautomation.Statistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NumbercomputeValue(String aValue) intgetCount()Provide the gathered data as provided by Fritz!BoxGet the timestamp.Get the raw timestamp in seconds since epoch.intgetGrid()Provide the measurement unit to be used with the statistics.Provide the gathered data as computed as meant to be used by AVMvoidsetMeasurementUnit(MeasurementUnit measurementUnit)
-
Constructor Details
-
Statistics
public Statistics()
-
-
Method Details
-
getCount
public int getCount() -
getGrid
public int getGrid() -
getDataTimeRaw
Get the raw timestamp in seconds since epoch.- Returns:
- raw timestamp or
nullif not available
-
getDataTime
Get the timestamp.- Returns:
- timestamp or
nullif not available
-
getCsvValues
Provide the gathered data as provided by Fritz!Box- Returns:
- data provided by the Fritz!Box
-
getValues
Provide the gathered data as computed as meant to be used by AVM- Returns:
- the gathered data
-
getMeasurementUnit
Provide the measurement unit to be used with the statistics.Consists of:
- measurment unit [V, W, Wh, %]
- precision as double to multiply with the gathered Integer
- Returns:
- the measurement unit
-
setMeasurementUnit
-
computeValue
-