diff --git a/SensorDeViento.json b/SensorDeViento.json index 44a4d4c..00f1477 100644 --- a/SensorDeViento.json +++ b/SensorDeViento.json @@ -54,7 +54,7 @@ "targetType": "full", "statusVal": "payload", "statusType": "auto", - "x": 650, + "x": 730, "y": 60, "wires": [] }, @@ -70,7 +70,7 @@ "initialize": "", "finalize": "", "libs": [], - "x": 390, + "x": 470, "y": 60, "wires": [ [ @@ -90,8 +90,8 @@ "initialize": "", "finalize": "", "libs": [], - "x": 710, - "y": 140, + "x": 730, + "y": 200, "wires": [ [ "9eeec0837153c824", @@ -113,8 +113,8 @@ "targetType": "msg", "statusVal": "payload", "statusType": "auto", - "x": 930, - "y": 200, + "x": 950, + "y": 260, "wires": [] }, { @@ -141,8 +141,8 @@ "seg2": "10", "diff": false, "className": "", - "x": 970, - "y": 140, + "x": 990, + "y": 200, "wires": [] }, { @@ -153,8 +153,8 @@ "path": "environment.wind.speedApparent", "source": "node-red-wind", "meta": "{}", - "x": 980, - "y": 80, + "x": 1000, + "y": 140, "wires": [] }, { @@ -174,8 +174,8 @@ "from": "", "to": "", "reg": false, - "x": 500, - "y": 140, + "x": 520, + "y": 200, "wires": [ [ "d6c4f0aeee28dff6" @@ -209,7 +209,7 @@ "repair": false, "outputs": 2, "x": 740, - "y": 460, + "y": 440, "wires": [ [ "129be4eb1a46fa37" @@ -232,7 +232,7 @@ "finalize": "", "libs": [], "x": 930, - "y": 440, + "y": 420, "wires": [ [ "2182ef5de4dec356" @@ -252,7 +252,7 @@ "finalize": "", "libs": [], "x": 930, - "y": 480, + "y": 460, "wires": [ [ "2182ef5de4dec356" @@ -271,34 +271,14 @@ "initialize": "", "finalize": "", "libs": [], - "x": 520, - "y": 420, + "x": 540, + "y": 440, "wires": [ [ - "524293978f86d016", - "f336915d356e57c2", - "ee65399e38db2339", - "5d7a57aa3fd8cec9" + "524293978f86d016" ] ] }, - { - "id": "f336915d356e57c2", - "type": "debug", - "z": "44d283ea6b7c10e4", - "name": "Dirección Real", - "active": true, - "tosidebar": true, - "console": false, - "tostatus": true, - "complete": "payload", - "targetType": "msg", - "statusVal": "payload", - "statusType": "auto", - "x": 780, - "y": 360, - "wires": [] - }, { "id": "b5d068337b7b3f1f", "type": "change", @@ -317,53 +297,13 @@ "to": "", "reg": false, "x": 320, - "y": 420, + "y": 440, "wires": [ [ "433a508466e9cba6" ] ] }, - { - "id": "ee65399e38db2339", - "type": "ui_gauge", - "z": "44d283ea6b7c10e4", - "name": "", - "group": "786fd9e70bfb3a7b", - "order": 0, - "width": 0, - "height": 0, - "gtype": "compass", - "title": "Dirección Real", - "label": "º", - "format": "{{payload}}", - "min": 0, - "max": "360", - "colors": [ - "#00b500", - "#e6e600", - "#ca3838" - ], - "seg1": "", - "seg2": "", - "diff": false, - "className": "", - "x": 780, - "y": 320, - "wires": [] - }, - { - "id": "6ba28b152969d7ed", - "type": "signalk-send-pathvalue", - "z": "44d283ea6b7c10e4", - "name": "wind.angleTrueWater", - "path": "environment.wind.angleTrueWater", - "source": "node-red-wind", - "meta": "{}", - "x": 1000, - "y": 260, - "wires": [] - }, { "id": "2182ef5de4dec356", "type": "function", @@ -377,7 +317,7 @@ "finalize": "", "libs": [], "x": 1090, - "y": 460, + "y": 440, "wires": [ [ "db43738fe70d0528", @@ -411,7 +351,7 @@ "diff": false, "className": "", "x": 1310, - "y": 520, + "y": 500, "wires": [] }, { @@ -423,7 +363,7 @@ "source": "node-red-wind", "meta": "{}", "x": 1300, - "y": 360, + "y": 340, "wires": [] }, { @@ -440,29 +380,9 @@ "statusVal": "payload", "statusType": "auto", "x": 1280, - "y": 460, + "y": 440, "wires": [] }, - { - "id": "5d7a57aa3fd8cec9", - "type": "function", - "z": "44d283ea6b7c10e4", - "name": "Pasa a radianes", - "func": "let grados = msg.payload;\n\n// Convertir a radianes\nlet radianes = grados * (Math.PI / 180);\n\n// Asignar el resultado a msg.payload\nmsg.payload = radianes;\nreturn msg;", - "outputs": 1, - "timeout": 0, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 780, - "y": 260, - "wires": [ - [ - "6ba28b152969d7ed" - ] - ] - }, { "id": "bf89d6dd2cb68747", "type": "function", @@ -476,7 +396,7 @@ "finalize": "", "libs": [], "x": 1100, - "y": 360, + "y": 340, "wires": [ [ "51f2c03e3dd98307"