mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Add history endpoint and do some cleanup
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using System.Text.Json;
|
||||
using ChrisKaczor.HomeMonitor.Environment.Service.Data;
|
||||
using ChrisKaczor.HomeMonitor.Environment.Service.Data;
|
||||
using ChrisKaczor.HomeMonitor.Environment.Service.Models.Indoor;
|
||||
using Microsoft.AspNetCore.SignalR.Client;
|
||||
using MQTTnet;
|
||||
using MQTTnet.Client;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace ChrisKaczor.HomeMonitor.Environment.Service;
|
||||
|
||||
@@ -22,8 +22,6 @@ public class MessageHandler : IHostedService
|
||||
_configuration = configuration;
|
||||
_database = database;
|
||||
|
||||
_database.EnsureDatabase();
|
||||
|
||||
_topic = _configuration["Mqtt:Topic"] ?? string.Empty;
|
||||
|
||||
if (string.IsNullOrEmpty(_topic))
|
||||
|
||||
Reference in New Issue
Block a user