-
Notifications
You must be signed in to change notification settings - Fork 1
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
Project still alife and supported? & Firsttime run issue 'vwi_waypoints_generator.py' script #6
Comments
I can't check right now, but the error is about missing lastPublication.json file. In it |
Hi Marcel and all followers, What I did so others can benefit from it: The required python3 module is not present in this OpenPlotter image so I had to install that using the command 'sudo apt install python3-gpxpy' in the CLI command screen. Which can be opened via the shortcut 'LXTerminal' from the menu for those not familiar with command line and so on. To test this script I first created a directory 'Test' in the './Documents' directory to see what would happen and not created all kind of directories and files throughout my working OpenCPN application (command: 'mkdir Test'). In that directory I had to copy the files 'vwi_waypoints_generator.py' and 'lastPublication.json' It turned out I also had to create a sub-directory './working' in the './Test' directory. Now I can run the command 'python3 vwi_waypoints_generator.py' having the './Test' directory as my active directory. The next step would be to import the GPX of your choise and needs in OpenCPN My next actions is to make up my mind whether:
Have fun! |
Happy that it works for you. Based on your notes, I guess you copied the specific python files, rather than cloning the whole project (as in that case the working directory & lastPublication.json should have been already available for you. If you want to limit the files created, you can play around e.g. with editing this section: Note: I don't cleanup the working directory as some of the files may not be updated, and it would require you to download these files each time again. So the script first checks how old are the files and creates newer files only when required. Wrt automaticllty updating in OpenCPN, I found no great way. |
Hi,
for boat owners and OpenCPN users this project is a great find.
Marcel are you still supporting this project?
If yes: I have an issue with first run of the 'vwi_waypoints_generator.py' script in a fresh install of OpenCPN 5.10.2 installed on Raspberry using the OpenPlotter provided image (openmarine.org).
I assume the script performs a file check to a non existing file or something like that. My programming skills are to limited to adjust this. (below I used the -force option though there is no difference not using this option)
>>>>>>>>>>>start>>>>>>>>>
pi@openplotter:~/Documents/Test $ python3 vwi_waypoints_generator.py -force
Latest geoinfomation: {
"GeoType": "geogeneration",
"GeoGeneration": 3408,
"PublicationDate": "2024-10-21T14:24:07.575Z",
"Active": true
}
Traceback (most recent call last):
File "/home/pi/Documents/Test/vwi_waypoints_generator.py", line 431, in
if readJson(last_publication_filename).get('GeoGeneration') == geoInfo.get('GeoGeneration'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/Documents/Test/vwi_waypoints_generator.py", line 400, in readJson
with open(filename) as f:
^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'lastPublication.json'
<<<<<<<<<<end<<<<<<<<<<<<<
The text was updated successfully, but these errors were encountered: