ampledata / node-red-contrib-aprs

Node-RED Nodes for connecting to APRS-IS and parsing APRS frames.
Apache License 2.0
9 stars 4 forks source link

Error: Wrong longitude format: ndefined0" #25

Open wazoo666 opened 4 months ago

wazoo666 commented 4 months ago

Hi Recently I am trying to use your APRS flow under node-red. I am using node-red v3.1.9 and your latest node "node-red-contrib-aprs2 v3.0.2" Could you check for this error ??

Error: Wrong longitude format: ndefined0" ---> (partial RAW from APRS RX node) :@061820z4258.66Nundefined00238.59W_239/

node-red returns error when using your help code for CWOP. it shows "undefined" but must be a"/" slash character , right ?? under APRS TX node, location works fine.

ThankU for your time.

ampledata commented 4 months ago

Can you share your flow? (hamburger > export)

On Mon, May 6, 2024 at 11:36 AM wazoo666 @.***> wrote:

Hi Recently I am trying to use your APRS flow under node-red. I am using node-red v3.1.9 and your latest node "node-red-contrib-aprs2 v3.0.2" Could you check for this error ??

Error: Wrong longitude format: ndefined0" ---> (partial RAW from APRS RX node) @.***_239/

node-red returns error when using your help code for CWOP. it shows "undefined" but must be a"/" slash character , right ?? under APRS TX node, location works fine.

ThankU for your time.

— Reply to this email directly, view it on GitHub https://github.com/ampledata/node-red-contrib-aprs/issues/25, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWIXWFBZO4IG5RDCSLPBDZA7ESXAVCNFSM6AAAAABHJQZL6OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4DCNBZGMYDKMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Greg Albrecht @.***> W2GMD Public Safety Technologist & EMT Signal: +1-310-621-9598 www.snstac.com

wazoo666 commented 3 months ago

Can you share your flow? (hamburger > export)

Sorry for my late reply. I see this on debug node: image

used this palette version. image

wazoo666 commented 3 months ago

flow code is as simple as this the error appears throught node WX data inject

[
    {
        "id": "212adf89be038b38",
        "type": "tab",
        "label": "Flujo 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "a6a8d9fdcf74c8b3",
        "type": "aprs tx",
        "z": "212adf89be038b38",
        "name": "",
        "aprsConfig": "48b3c0adad1f6eef",
        "from": "",
        "to": "APRS",
        "via": "TCPIP*",
        "server": "euro.aprs2.net",
        "port": 14580,
        "x": 560,
        "y": 120,
        "wires": []
    },
    {
        "id": "8204666b6139246d",
        "type": "inject",
        "z": "212adf89be038b38",
        "name": "GPS pos",
        "props": [],
        "repeat": "900",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 190,
        "y": 80,
        "wires": [
            [
                "c9d9a8cfc2c4481f"
            ]
        ]
    },
    {
        "id": "c9d9a8cfc2c4481f",
        "type": "function",
        "z": "212adf89be038b38",
        "name": "APRS position",
        "func": "// APRS TX Node uses WorldMap serialized data:\nmsg.payload = {\n    'from': 'EA2DXT-1',\n    'lat': '42.977609',\n    'lon': '-2.642484',\n    'symbol': 'Q',\n    'comment': '(node-red beacon)'\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 360,
        "y": 80,
        "wires": [
            [
                "a6a8d9fdcf74c8b3"
            ]
        ]
    },
    {
        "id": "8bc5a126139644b6",
        "type": "debug",
        "z": "212adf89be038b38",
        "name": "APRS Data Received",
        "active": true,
        "tosidebar": true,
        "console": true,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 610,
        "y": 220,
        "wires": []
    },
    {
        "id": "b37c268310217df4",
        "type": "aprs rx",
        "z": "212adf89be038b38",
        "name": "APRS receiver",
        "user": "EA2DXT",
        "url": "ws://srvr.aprs-is.net:8080",
        "filter": "b/EA2DXT*/EB2EMZ*",
        "x": 380,
        "y": 220,
        "wires": [
            [
                "8bc5a126139644b6"
            ]
        ]
    },
    {
        "id": "cedb57518f03efb6",
        "type": "function",
        "z": "212adf89be038b38",
        "name": "CWOP data",
        "func": "// APRS TX Node uses WorldMap serialized data:\nmsg.payload = {\n    from: { call: \"EA2DXT\", ssid: \"6\" },\n    data: {\n        latitude: 42.977627,\n        longitude: -2.642388,\n        extension: { courseDeg: 239, speedMPerS: 1.543333332 },\n        weather: {\n        windGust: 4.4704,\n        temperature: 20.55,\n        rain1h: 0,\n        rain24h: 2.794,\n        rainSinceMidnight: 2.794,\n        pressure: 996.9,\n        humidity: 83,\n        luminosity: 0,\n    },\n    comment: \"Node-RED WX Station\",\n//    timestamp: \"2021-01-23T18:21:00.000Z\",\n    },\n};\n\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 350,
        "y": 140,
        "wires": [
            [
                "a6a8d9fdcf74c8b3"
            ]
        ]
    },
    {
        "id": "8bb39f56c6fb4271",
        "type": "inject",
        "z": "212adf89be038b38",
        "name": "WX data",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 180,
        "y": 140,
        "wires": [
            [
                "cedb57518f03efb6"
            ]
        ]
    },
    {
        "id": "48b3c0adad1f6eef",
        "type": "aprs config",
        "filter": "",
        "user": "EA2DXT",
        "name": "",
        "pass": ""
    }
]