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

automatic update of gpx layer? #1

Open
eried opened this issue Oct 14, 2022 · 2 comments
Open

automatic update of gpx layer? #1

eried opened this issue Oct 14, 2022 · 2 comments
Labels
question Further information is requested

Comments

@eried
Copy link

eried commented Oct 14, 2022

hi, is there any way to automatically update the contents from the gpx file? i.e. if the file is generated again, make opencpn reload it?

@marcelrv
Copy link
Owner

marcelrv commented Dec 4, 2022

As far as I know there is no such a feature in opencpn.

@marcelrv marcelrv added the question Further information is requested label Dec 4, 2022
@formifan2002
Copy link

formifan2002 commented Jan 31, 2025

So far not. You have to close opencpn and start it again to get the latest gpx files loaded when they are defined as "permanent layer". I extended the existing vwi_waypoints_generator.py for my purpose with the following things:
- translation to other languages via JSON language files (for fixed texts in the program, file names and variable data received in
the gpx data). So far I added German language. Other languages can easiely added by copying and translating existing JSON
files.
- optional copy of generated gpx files to opencpn layer directory
- use of additional JSON configuration file (vwi_waypoints_generator.json) to control outputs (e.g. translation engine to be used,
file creation for opencpn, regions and countries to be created as gpx files, steering of message output during program run, number of days for age of gpx files)
I will add the program as cron job in order to always have the latest version in opencpn.
I tried to modify the existing program code as less as possible. If you are interested in this version just pn me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants