Fix spacing of arrows

This commit is contained in:
Joseph Abbey
2024-01-27 14:02:05 +00:00
parent 4ff1509046
commit 96abff9339
2 changed files with 9 additions and 9 deletions

View File

@ -59,11 +59,11 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
{ {
"type" => "update_location", "type" => "update_location",
"data" => { "data" => {
"gps" => position.position.toDegrees(), "gps" => position.position.toDegrees(),
"gps_accuracy" => 10, "gps_accuracy" => 10,
"speed" => Math.round(position.speed), "speed" => Math.round(position.speed),
"course" => Math.round(position.heading * 180 / Math.PI), "course" => Math.round(position.heading * 180 / Math.PI),
"altitude" => Math.round(position.altitude), "altitude" => Math.round(position.altitude),
} }
}, },
{ {

View File

@ -184,11 +184,11 @@ class WebhookManager {
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Activity"); // System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Activity");
if (Activity has :getProfileInfo) { if (Activity has :getProfileInfo) {
registerWebhookSensor({ registerWebhookSensor({
"name" => "Activity", "name" => "Activity",
"state" => Activity.getProfileInfo().name, "state" => Activity.getProfileInfo().name,
"type" => "sensor", "type" => "sensor",
"unique_id" => "activity", "unique_id" => "activity",
"disabled" => false "disabled" => false
}, 2); }, 2);
break; break;
} }