From 651d2747807a7f6cc8c122dfec67ff96f0238957 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Mon, 21 Mar 2022 12:37:17 -0400 Subject: [PATCH 1/5] Update to AI connection string --- Power/Service/deploy/manifest.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Power/Service/deploy/manifest.yaml b/Power/Service/deploy/manifest.yaml index 493ff3b..cfe05ad 100644 --- a/Power/Service/deploy/manifest.yaml +++ b/Power/Service/deploy/manifest.yaml @@ -94,7 +94,7 @@ spec: securityContext: privileged: true env: - - name: ApplicationInsights__InstrumentationKey + - name: ApplicationInsights__ConnectionString valueFrom: secretKeyRef: name: telemetry From ede7e389af6c1ac8f5886fa1293d32791eb13e13 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Mon, 21 Mar 2022 12:43:46 -0400 Subject: [PATCH 2/5] Update agent pool setting --- Power/Service/deploy/azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Power/Service/deploy/azure-pipelines.yml b/Power/Service/deploy/azure-pipelines.yml index c187c12..7a8b1ec 100644 --- a/Power/Service/deploy/azure-pipelines.yml +++ b/Power/Service/deploy/azure-pipelines.yml @@ -16,7 +16,7 @@ stages: jobs: - job: Build pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: Docker@0 displayName: 'Build an image' From a7e5b271f8c301fe522917a1ff5a37499b5687a4 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Mon, 21 Mar 2022 12:48:08 -0400 Subject: [PATCH 3/5] Update pool everywhere this time --- Display/deploy/azure-pipelines.yml | 4 ++-- Hub/Service/deploy/azure-pipelines.yml | 4 ++-- Power/Service/deploy/azure-pipelines.yml | 2 +- Weather/SerialReader/deploy/azure-pipelines.yml | 4 ++-- Weather/Service/deploy/azure-pipelines.yml | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Display/deploy/azure-pipelines.yml b/Display/deploy/azure-pipelines.yml index 722df4d..4bfa624 100644 --- a/Display/deploy/azure-pipelines.yml +++ b/Display/deploy/azure-pipelines.yml @@ -16,7 +16,7 @@ stages: jobs: - job: Build pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: Docker@0 displayName: 'Build an image' @@ -48,7 +48,7 @@ stages: jobs: - job: Deploy pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: DownloadBuildArtifacts@0 inputs: diff --git a/Hub/Service/deploy/azure-pipelines.yml b/Hub/Service/deploy/azure-pipelines.yml index 1acce78..f56cebd 100644 --- a/Hub/Service/deploy/azure-pipelines.yml +++ b/Hub/Service/deploy/azure-pipelines.yml @@ -16,7 +16,7 @@ stages: jobs: - job: Build pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: Docker@0 displayName: 'Build an image' @@ -48,7 +48,7 @@ stages: jobs: - job: Deploy pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: DownloadBuildArtifacts@0 inputs: diff --git a/Power/Service/deploy/azure-pipelines.yml b/Power/Service/deploy/azure-pipelines.yml index 7a8b1ec..7726731 100644 --- a/Power/Service/deploy/azure-pipelines.yml +++ b/Power/Service/deploy/azure-pipelines.yml @@ -48,7 +48,7 @@ stages: jobs: - job: Deploy pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: DownloadBuildArtifacts@0 inputs: diff --git a/Weather/SerialReader/deploy/azure-pipelines.yml b/Weather/SerialReader/deploy/azure-pipelines.yml index df1bfc3..15bf104 100644 --- a/Weather/SerialReader/deploy/azure-pipelines.yml +++ b/Weather/SerialReader/deploy/azure-pipelines.yml @@ -16,7 +16,7 @@ stages: jobs: - job: Build pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: Docker@0 displayName: 'Build an image' @@ -48,7 +48,7 @@ stages: jobs: - job: Deploy pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: DownloadBuildArtifacts@0 inputs: diff --git a/Weather/Service/deploy/azure-pipelines.yml b/Weather/Service/deploy/azure-pipelines.yml index 0969ec4..5706931 100644 --- a/Weather/Service/deploy/azure-pipelines.yml +++ b/Weather/Service/deploy/azure-pipelines.yml @@ -16,7 +16,7 @@ stages: jobs: - job: Build pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: Docker@0 @@ -52,7 +52,7 @@ stages: jobs: - job: Deploy pool: - name: Hosted Ubuntu 1604 + vmImage: 'ubuntu-latest' steps: - task: DownloadBuildArtifacts@0 inputs: From 58688d50baf7fa948d72d6ee90a9e700e24e5461 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Mon, 21 Mar 2022 15:32:47 -0400 Subject: [PATCH 4/5] Add simple temperature property --- Weather/Models/WeatherReading.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Weather/Models/WeatherReading.cs b/Weather/Models/WeatherReading.cs index 3bca508..269a0b4 100644 --- a/Weather/Models/WeatherReading.cs +++ b/Weather/Models/WeatherReading.cs @@ -15,6 +15,8 @@ namespace ChrisKaczor.HomeMonitor.Weather.Models public decimal WindSpeed { get; set; } + public decimal Temperature { get; set; } + public decimal Humidity { get; set; } public decimal HumidityTemperature { get; set; } From 3edcf2f6a430e8bcde1d1ed2d499da40aa8041d8 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Mon, 21 Mar 2022 15:38:12 -0400 Subject: [PATCH 5/5] Update for temperature --- Weather/Service/Data/Resources/GetRecentReading.sql | 2 ++ Weather/Service/Service.csproj | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Weather/Service/Data/Resources/GetRecentReading.sql b/Weather/Service/Data/Resources/GetRecentReading.sql index da422d7..9f4dcc8 100644 --- a/Weather/Service/Data/Resources/GetRecentReading.sql +++ b/Weather/Service/Data/Resources/GetRecentReading.sql @@ -5,6 +5,8 @@ SELECT TOP 1 Timestamp, Rain, Pressure, HumidityTemperature AS Temperature, + HumidityTemperature, + PressureTemperature, LightLevel, Latitude, Longitude, diff --git a/Weather/Service/Service.csproj b/Weather/Service/Service.csproj index 858ac8f..ded3df1 100644 --- a/Weather/Service/Service.csproj +++ b/Weather/Service/Service.csproj @@ -34,13 +34,13 @@ - - + + - - + +