Пример #1
0
 public async Task _writeClipsal(List <ClipsalInflux> clipsal, IInfluxService influxService)
 {
     foreach (var d in clipsal)
     {
         await influxService.WriteObject("house", $"deviceUsage", d, null, d.date);
     }
 }
Пример #2
0
 public PowerwallService(ILogService logService,
                         IOptions <EnergyHostSettings> settings,
                         IHttpClientFactory httpClientFactory,
                         IInfluxService influxService)
 {
     _logService        = logService;
     _settings          = settings;
     _httpClientFactory = httpClientFactory;
     _influxService     = influxService;
 }
 public EnergyFuturesService(
     ILogService logService,
     IAmberService amberService,
     IDarkSkyService darkSkyService,
     IInfluxService influxService,
     IOptions <EnergyHostSettings> options)
 {
     _logService     = logService;
     _amberService   = amberService;
     _darkSkyService = darkSkyService;
     _influxService  = influxService;
     _options        = options;
 }
Пример #4
0
 public InfluxController(ILogger <InfluxController> logger, IInfluxService influxService)
 {
     _logger        = logger;
     _influxService = influxService;
 }
 public AnimusWebSocketEventHandler(IInfluxService influxService, AnimusHeartHttpClient httpClient)
 {
     _influxService = influxService;
     _httpClient    = httpClient;
 }