OpenMarine
Wind Speed Apparent - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: Wind Speed Apparent (/showthread.php?tid=4851)



Wind Speed Apparent - joey_sailing - 2023-08-24

Hi!

I have a websocket up and running on Raspberry Pico W in MicroPython. Pico is connected to an anemomiter and the pico is calculating wind speed correct on the pico. 

All delta messages works fine and updates the paths as they should, except for enviroment.wind.speedApperent:

mesg4 = {
  "context": "vessels.urn:mrnConfusedignalk:uuid:f54f46bf-f256-422f-98f5-39cf5421a99a",
  "updates": [
    {
      "source": {
        "label": "Pico W",
      },
      "values":
        {
          "path": "environment.wind.speedApparent",
          "value": meter_sec
        },
    }
  ]
}

Every time I get a loooong TypeError in the server log and no respons in the WebSocket: "TypeError: update.values.find is not a function at .................

Have tried updating the meta via a update message for environment.wind.speedApparent... Same TypeError!

Anyone have any ideas what to do... im stuck!


RE: Wind Speed Apparent - tkurki - 2023-08-25

Values should be an array.