OpenMarine

Full Version: Modifying defaults.json doesn't seem to do anything
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, 

I've been working with SignalK for a few months now and am getting some things figured out, but I'm having a problem with the defaults.json file as the FAQ says to do. I'm trying to do two things that are addressed exactly in the FAQ page, namely add a depth from transducer to keel and setup units for Raspberry PI CPU temperature. However, despite the fact the defaults.json has the info (as seen below) and checks out as a valid JSON file, the value/unit are not actually showing up. 

I'm using the Derived Data Plugin to get Depth Below Keel based on depth.belowTransducer and depth.transducerToKeel. The data browser is reporting below keel and below transducer as exactly the same, and CPU temperature doesn't have any units. 

What am I missing? Is there another defaults.json somewhere? This is what it feels like, but the other files in the directory have been updated when I've made changes to the settings from the web interface, so it seems like it should be the right place.

Here are the contents of ~/.signalk/defaults.json:
{
  "vessels": {
    "self": {
      "uuid": "urn:mrnConfusedignalk:uuid:8d38f54e-3b53-4571-8384-4e1e95c0fdbc",
      "environment": {
        "depth": {
          "transducerToKeel": {
            "value": 1.2
          }
        }
      },
      "cpu": {
        "temperature": {
          "meta": {
            "description": "Raspberry Pi CPU temp",
            "units": "K",
            "displayName": "CPU temp"
          }
        }
      },
      "name": "Novaturient",
      "design": {
        "draft": {
          "value": {
            "maximum": 1.5
          }
        },
        "length": {
          "value": {
            "overall": 9.1
          }
        },
        "beam": {
          "value": 3.1
        },
        "airHeight": {
          "value": 12.44
        },
        "aisShipType": {
          "value": {
            "name": "Sailing",
            "id": 36
          }
        }
      },
      "sensors": {
        "gps": {
          "fromBow": {
            "value": 6
          },
          "fromCenter": {
            "value": 1
          }
        }
      }
    }
  }
}

Thanks!