This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modifying defaults.json doesn't seem to do anything
#1
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!
- Tony

Seafarer 30 
"Novaturient" 
(adj.) desiring or seeking powerful change in one’s life, behavior, or situation; the root of wanderlust 
(pronuntiation/”nO-va-‘tUr-E-ent)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)