From d28f3172c7d3823c976cd3e644763fa8034d6375 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez Date: Sun, 13 Nov 2022 20:56:16 -0800 Subject: [PATCH] Clima Pro updates for Mobile app --- Docs/Clima.Pro/Deploy_Instructions/readme.md | 9 +++++ .../CommonContracts/Models/ClimateModel.cs | 17 +-------- .../Models/TemperatureModel.cs | 6 +--- Source/Clima/MobileClima/View/MaplePage.xaml | 15 ++++++-- .../MobileClima/ViewModel/MapleViewModel.cs | 36 ++++++++++++++++++- 5 files changed, 58 insertions(+), 25 deletions(-) diff --git a/Docs/Clima.Pro/Deploy_Instructions/readme.md b/Docs/Clima.Pro/Deploy_Instructions/readme.md index ffdfeee..0ca49c1 100644 --- a/Docs/Clima.Pro/Deploy_Instructions/readme.md +++ b/Docs/Clima.Pro/Deploy_Instructions/readme.md @@ -12,6 +12,15 @@ * Install the Meadow Visual Studio Extension(s). * Create and deploy the Meadow template application to ensure everthing is setup correctly. +### Expected Development version stack (RC-1) +At this point, you should have the following versions on your dev machine and Meadow: +* Meadow.CLI - v.0.90.0 +* VS Tools for Meadow - v0.90.0 +* Meadow + * Meadow.OS - v0.9.0.2 + * Mono Runtime - v0.9.0.2 + * ESP32 Coprocessor - v0.9.0.2 + ### Step 2. - Deploy the Clima App * **Clone the Clima Repo** - [Clone](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/cloning-and-forking-repositories-from-github-desktop) the [Clima(this) repository](https://github.com/wildernesslabs/Clima) locally. diff --git a/Source/Clima/CommonContracts/Models/ClimateModel.cs b/Source/Clima/CommonContracts/Models/ClimateModel.cs index ca06ae7..b041d04 100644 --- a/Source/Clima/CommonContracts/Models/ClimateModel.cs +++ b/Source/Clima/CommonContracts/Models/ClimateModel.cs @@ -1,28 +1,13 @@ -using System.Text.Json.Serialization; - -namespace CommonContracts.Models +namespace CommonContracts.Models { public class ClimateModel { - [JsonPropertyName("date")] public string Date { get; set; } - - [JsonPropertyName("temperature")] public string Temperature { get; set; } - - [JsonPropertyName("pressure")] public string Pressure { get; set; } - - [JsonPropertyName("humdity")] public string Humidity { get; set; } - - [JsonPropertyName("rain")] public string Rain { get; set; } - - [JsonPropertyName("windspeed")] public string WindSpeed { get; set; } - - [JsonPropertyName("winddirection")] public string WindDirection { get; set; } } } \ No newline at end of file diff --git a/Source/Clima/CommonContracts/Models/TemperatureModel.cs b/Source/Clima/CommonContracts/Models/TemperatureModel.cs index a7719c5..cf6ac1b 100644 --- a/Source/Clima/CommonContracts/Models/TemperatureModel.cs +++ b/Source/Clima/CommonContracts/Models/TemperatureModel.cs @@ -1,12 +1,8 @@ -using System.Text.Json.Serialization; - -namespace CommonContracts.Models +namespace CommonContracts.Models { public class TemperatureModel { - [JsonPropertyName("Temperature")] public string Temperature { get; set; } - [JsonPropertyName("DateTime")] public string DateTime { get; set; } } } \ No newline at end of file diff --git a/Source/Clima/MobileClima/View/MaplePage.xaml b/Source/Clima/MobileClima/View/MaplePage.xaml index dd13568..19d1d35 100644 --- a/Source/Clima/MobileClima/View/MaplePage.xaml +++ b/Source/Clima/MobileClima/View/MaplePage.xaml @@ -75,7 +75,16 @@ -