Skip to content

IInfluxRepo

Namespace: Database.Repository.InfluxRepo

Interface for the InfluxDB repository.

public interface IInfluxRepo

Methods

GetOutsideWeatherData(DateTime, DateTime, String)

Retrieves outside weather data for a given place and time range.

IAsyncEnumerable<PointDataValues> GetOutsideWeatherData(DateTime start, DateTime end, string place)

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.

IAsyncEnumerable<PointDataValues> GetSensorWeatherData(DateTime start, DateTime end)

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

Task

WriteSensorData(Double, String, Int64, Int32)

Generates a point in the InfluxDB database with the given sensor data for the temperature measurement.

Task WriteSensorData(double measurement, string sensor, long timestamp, int sequence)

Parameters

measurement Double

Temperature Value

sensor String

SensorId

timestamp Int64

Unix Timestamp

sequence Int32

Returns

Task