IInfluxRepo¶
Namespace: Database.Repository.InfluxRepo
Interface for the InfluxDB repository.
Methods¶
GetOutsideWeatherData(DateTime, DateTime, String)¶
Retrieves outside weather data for a given place and time range.
Parameters¶
start
DateTime
The start of the time range.
end
DateTime
The end of the time range.
place
String
The location for which to retrieve data.
Returns¶
An async enumerable of weather data points.
GetSensorWeatherData(DateTime, DateTime)¶
Retrieves sensor weather data for a given time range.
Parameters¶
start
DateTime
The start of the time range.
end
DateTime
The end of the time range.
Returns¶
An async enumerable of sensor weather data points.
WriteOutsideWeatherData(String, String, Double, DateTime, Int32)¶
Generates a point in the InfluxDB database with the given outside weather data.
Task WriteOutsideWeatherData(string place, string website, double temperature, DateTime timestamp, int postalcode)
Parameters¶
place
String
website
String
temperature
Double
timestamp
DateTime
postalcode
Int32
Returns¶
WriteSensorData(Double, String, Int64, Int32)¶
Generates a point in the InfluxDB database with the given sensor data for the temperature measurement.
Parameters¶
measurement
Double
Temperature Value
sensor
String
SensorId
timestamp
Int64
Unix Timestamp
sequence
Int32