OpenMarine

Full Version: Wind Speed Apparent
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
Values should be an array.