diff --git a/source/BackgroundServiceDelegate.mc b/source/BackgroundServiceDelegate.mc index cb3fc6b..0f6afb8 100644 --- a/source/BackgroundServiceDelegate.mc +++ b/source/BackgroundServiceDelegate.mc @@ -59,11 +59,11 @@ class BackgroundServiceDelegate extends System.ServiceDelegate { { "type" => "update_location", "data" => { - "gps" => position.position.toDegrees(), + "gps" => position.position.toDegrees(), "gps_accuracy" => 10, - "speed" => Math.round(position.speed), - "course" => Math.round(position.heading * 180 / Math.PI), - "altitude" => Math.round(position.altitude), + "speed" => Math.round(position.speed), + "course" => Math.round(position.heading * 180 / Math.PI), + "altitude" => Math.round(position.altitude), } }, { diff --git a/source/WebhookManager.mc b/source/WebhookManager.mc index ea07dd8..1499a66 100644 --- a/source/WebhookManager.mc +++ b/source/WebhookManager.mc @@ -184,11 +184,11 @@ class WebhookManager { // System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Activity"); if (Activity has :getProfileInfo) { registerWebhookSensor({ - "name" => "Activity", - "state" => Activity.getProfileInfo().name, - "type" => "sensor", - "unique_id" => "activity", - "disabled" => false + "name" => "Activity", + "state" => Activity.getProfileInfo().name, + "type" => "sensor", + "unique_id" => "activity", + "disabled" => false }, 2); break; }