From 699e7d4bf4fded933d4d1c91259c9bfbe4b13d71 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez Date: Thu, 13 Jun 2024 11:02:18 -0700 Subject: [PATCH] Add Meadow.Cloud integration --- .../Meadow_Desktop/Display_Silk/index.md | 6 ++-- .../Meadow_Cloud_Integration/index.md | 33 ++++++++++++++++++- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/docs/Meadow/Meadow_Desktop/Display_Silk/index.md b/docs/Meadow/Meadow_Desktop/Display_Silk/index.md index d906b5316..dfc291a38 100644 --- a/docs/Meadow/Meadow_Desktop/Display_Silk/index.md +++ b/docs/Meadow/Meadow_Desktop/Display_Silk/index.md @@ -8,17 +8,17 @@ Meadow.Desktop includes a built-in Window that can render MicroGraphics directly ### Using Meadow.Desktop's Display -When running a Meadow.Desktop app, you can immediately access its integrated Silk.NET display by referencing the `Display` property exponsed by `Device`: +When running a Meadow.Desktop app, you can immediately access its integrated Silk.NET display by referencing the `Display` property exposed by `Device`: ```csharp IResizablePixelDisplay display = Device.Display; ``` -The default display says is 320x240, which is Project Lab's onboard display's resolution. +The default display size is 320x240, which is the same as Project Lab's onboard display. ### Adjust `Display` dimensions and scaling -Since that `Device.Display` is a `IResizablePixelDisplay`, you can change the resolution to whatever dimensions you want using the `Resize()` method: +Since that `Device.Display` is a `IResizablePixelDisplay`, you can change the display's resolution to whatever you want using the `Resize()` method: ```csharp Device.Display.Resize(width: 400, height: 300); diff --git a/docs/Meadow/Meadow_Desktop/Meadow_Cloud_Integration/index.md b/docs/Meadow/Meadow_Desktop/Meadow_Cloud_Integration/index.md index 1154a87a1..106469aea 100644 --- a/docs/Meadow/Meadow_Desktop/Meadow_Cloud_Integration/index.md +++ b/docs/Meadow/Meadow_Desktop/Meadow_Cloud_Integration/index.md @@ -4,4 +4,35 @@ title: Meadow.Cloud Integration subtitle: Meadow.Cloud Integration --- -Meadow.Cloud Integration \ No newline at end of file +As you start building Meadow applications on your development machine with Meadow.Desktop, you can use Meadow.Cloud's Logging to send telemetry data using actual or simulated sensors. There's only a couple things you need to do: + +### Step 1: Provision your development machine + +Make sure to provision your development machine to Meadow.Cloud with your Wilderness Labs Account. + +### Step 2: Enable Meadow.Cloud on your app + +In the `app.config.yaml` file, you need to enable Meadow.Cloud features: + +```yaml +# Logging configuration. +Logging: + + # Adjust the level of logging detail. + LogLevel: + + # Trace, Debug, Information, Warning, or Error + Default: Trace + +# Meadow.Cloud configuration. +MeadowCloud: + + # Enable Logging, Events, Command + Control + Enabled: true +``` + +:::caution +Command + Control, Health Metrics and OTA Updates are currently not supported on Meadow.Desktop. +::: + +Once enabled, you can now use Meadow.Cloud's Logs and Events as you would on a Meadow F7 device. \ No newline at end of file