Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.
This repository was archived by the owner on Dec 31, 2019. It is now read-only.

In v2.x.x, openplotter crash when ~/.signalk is missing  #250

@FredericGuilbault

Description

@FredericGuilbault

On my install, signalk run under it's own user. So I don't have any ~/.signalK for the user of openplotter. This make openplotter crash like this:

Traceback (most recent call last):
  File "./openplotter", line 4157, in <module>
    MainFrame().Show()
  File "./openplotter", line 50, in __init__
    self.SK_settings = SK_settings()
  File "/var/www/openplotter/classes/SK_settings.py", line 28, in __init__
    self.load()
  File "/var/www/openplotter/classes/SK_settings.py", line 102, in load
    if not OPcan: self.data['pipedProviders'].append({'pipeElements': [{'type': 'providers/simple', 'options': {'logging': False, 'type': 'NMEA2000', 'subOptions': {'device': '/dev/ttyOP_', 'type': 'ngt-1'}}}], 'enabled': False, 'id': 'OPcan'})
KeyError: 'pipedProviders'
  1. it should not make openplotter crash,
  2. The Folder location variable should not imply every services that Openplotter manage run under the same user. (self.home+'/.signalk/settings.json')

This is what im gonna work on in the next days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions