Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the chartplotters need to be setup to use same chart directory to re-use charts #87

Open
mgrouch opened this issue Nov 25, 2020 · 3 comments
Labels
Need more info 🕐 Need more details, info or answers.

Comments

@mgrouch
Copy link

mgrouch commented Nov 25, 2020

All the chartplotters need to be setup to use same chart directory to re-use charts

@FredericGuilbault
Copy link
Contributor

FredericGuilbault commented Nov 26, 2020

yes, in the folder /srv/charts

The folder /home /user/charts bind to /srv/charts OpenCpn is pre-configured to use this folder,
freeboard-sk rely on the sk charts server which is instructed to store/query mbtitles charts from /srv/charts

There is a known problem with having xygrib and opencpn both packaging the same costal line seperately, I contacted both regarding the issue and the answer where :

xygrib: we lack of resource to make it append.
opencpn: we don't see that as a problem, windows users don't use package managers. Their concern was mainly about having the coastline blob in their git repo or not...

is there some other place where charts are stored ?

@FredericGuilbault FredericGuilbault added the Need more info 🕐 Need more details, info or answers. label Dec 14, 2020
@mgrouch
Copy link
Author

mgrouch commented Dec 15, 2020

They need to have single place for original downloaded charts which we have I think. OpenCpn one.
All signalK based ones will use it as primary source to generate mbtiles from it.
Then there is AvNav and qtVlm. they also should use it as primary local source.
AvNav also generates mbtiles from it.
qtVlm I need to take a closer look at what it does

@FredericGuilbault
Copy link
Contributor

They need to have single place for original downloaded charts which we have I think. OpenCpn one.

Each app have their location... that's kinda the core of the problem.

All signalK based ones will use it as primary source to generate mbtiles from it.

no, the signalk user should not have read/write access to the user home.

When AvNav will be implemented, as it's a web server with write capability. It will have its own user and should have the most limited access to other users privileges.

No app should be the god app that hold the canonical location where all others app should bind to. specially if this live app only in the userspace.

In lysmarine. The core point of the decision of using /srv/charts was.

  • A location that is app neutral (so app depend on another app location/existence)
  • A location that is user neutral (cuz many users will need to access them: User, signalk, www-data, root )
  • A location compliant to the FHS
  • A location that is historically used to store large datasets of dynamic content.
  • A location where human users could manage the dataset without root access.

Decision made considering that most apps have a config file where we can change the location, or we can link folders in the worst cases. It's possible to create a single location without having to sit every upstream at a table until they decide for a standard (cuz this likely won't happen)


For the record /var/share/charts was my first guess. But after discussion on IRC with hardcore linux devs /srv/charts was found more appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need more info 🕐 Need more details, info or answers.
Development

No branches or pull requests

2 participants