Giter VIP home page Giter VIP logo

gpxpod's People

Contributors

csware avatar doc75 avatar julien-nc avatar mayeulc avatar tomchiverton avatar umgfoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gpxpod's Issues

Sharing does not work - "not accessed by owner"

The link generated by pressing share in gpxpod does not seem to point to any track for me, instead it triggers this error:

['error' => $this->l10n->t('Track or directory has never been accessed by its owner')],

It does not matter if I'm logged in or not, I always get this message, even after already having viewed the track directly (without share link).

zipped gpx file
Potentially relevant: I'm storing the gpx file in a subdir of a local share.

Nextcloud Hub 5 (27.0.2), gpxpod v5.0.12

Prefill password field in new UI

Very cool that pubshares now can be password protected!

Feature request: It would be handy when the password would be auto generated and prefilled when the password option is enabled, the same as in when sharing with password in the Files section.

Ability to draw tracks

It's probably would be a little too much to ask, but would be great if there is an ability to draw own tracks, like in Google My Maps. As far as I know KML format does allow multiple polygons and lines in a single file.

(enhancement idea) Publishing activities on nextcloud's calendar

I would personally find very useful the possibility to publish my workouts on my own nextcloud calendar. The best would be to include some basic activity details for each event.

Could such a function be of interest to someone else? Would it be difficult to implement?
Thank you for this great project

Speed

Would it be possible to make it show speed in every point (average calculation from some of points) and a speed/distance chart?

File order ascending-descending

In the new version I see the new files at the bottom.
In the option there is just the possibility to chose the field to use for ordering the files, but not if ascending or descending.
This would be very useful!
Also, the menu options scrolls with the files, I think that it should stay at the top always visible.

Error when trying to add directory

Failed to add directory: Impossible to insert. An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_open' in 'field list'

NC 25.0.1

I already tried occ update again

How to fix "invalid hash" ?

hello, i run gpxpod 5.0.12 on my nextcloud 27.0.2, and i found 2 "invalids files".

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- gpxpod
	- INVALID_HASH
		- lib/Controller/tileservers.php

Raw output
==========
Array
(
    [gpxpod] => Array
        (
            [INVALID_HASH] => Array
                (
                    [lib/Controller/tileservers.php] => Array
                        (
                            [expected] => 1ad2aba7588d5d9350e3c3d33550eddb396bb2ab7f85606274dad0c0b7903f934bd794d6d500659da24aabddcf006368c3196d84d2ced40a0d62b331e04a087a
                            [current] => c87a4d1c4b4c18094e711123f37e85ca6d51e072179f543fb22fc762447afd9c42311b741979ef4b271a41121f2a97ad821339ce462250e84069f9d417067535

Please, how can i fix that ?

gpxpod stopped to work

Hello,

I use this extension since several years.
Could you help me to initialize them ?

Since 2 or 3 months this application stopped to work, if I add a folder with a GPX file : no trace available
If I click on a GPX trace, I will see only the world map.
I try old and new UI
I try to delete .geojson, .marker files, metadata, ... remove and delete the application

{"reqId":"3Veorn6OXttRPYXWLGSM","level":3,"time":"2023-04-06T05:19:16+00:00","remoteAddr":"X.X.X.X","user":"bob","app":"index","method":"POST","url":"/apps/gpxpod/tracks-old","message":"Division by zero in file '/var/www/html/apps_w/gpxpod/lib/Service/ConversionService.php' line 291","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0","version":"26.0.0.11","exception":{"Exception":"Exception","Message":"Division by zero in file '/var/www/html/apps_w/gpxpod/lib/Service/ConversionService.php' line 291","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\GpxPod\\Controller\\OldPageController"],"getTrackMarkersText"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\GpxPod\\Controller\\OldPageController","getTrackMarkersText",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["gpxpod.oldPage.getTrackMarkersText"]]},{"file":"/var/www/html/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/gpxpod/tracks-old"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"DivisionByZeroError","Message":"Division by zero","Code":0,"Trace":[{"file":"/var/www/html/apps_w/gpxpod/lib/Service/ConversionService.php","line":272,"function":"exifCoordToNumber","class":"OCA\\GpxPod\\Service\\ConversionService","type":"->","args":["0/0"]},{"file":"/var/www/html/apps_w/gpxpod/lib/Controller/OldPageController.php","line":998,"function":"getDecimalCoords","class":"OCA\\GpxPod\\Service\\ConversionService","type":"->","args":[["0/0","0/0","0/0"],""]},{"file":"/var/www/html/apps_w/gpxpod/lib/Controller/OldPageController.php","line":563,"function":"getGeoPicsFromFolder","class":"OCA\\GpxPod\\Controller\\OldPageController","type":"->","args":["/Photos/2023/03-mars",false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getTrackMarkersText","class":"OCA\\GpxPod\\Controller\\OldPageController","type":"->","args":["/Photos/2023/03-mars",false,false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\GpxPod\\Controller\\OldPageController"],"getTrackMarkersText"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\GpxPod\\Controller\\OldPageController"],"getTrackMarkersText"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\GpxPod\\Controller\\OldPageController","getTrackMarkersText",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["gpxpod.oldPage.getTrackMarkersText"]]},{"file":"/var/www/html/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/gpxpod/tracks-old"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/apps_w/gpxpod/lib/Service/ConversionService.php","Line":291},"CustomMessage":"--"}}

Errormessage after updating to NC 27.0

Hi,
i've updated to NC 27. When I click onto a gpx-file I get the message "Failed to load track geojson: " The same message appears when I reload the folder. The track is shown when I hover the filename.
Changing to the old interface, I can't download the gpx-file: ERROR File cannot be downloaded.
Regards.
Bernd

elevation correction error

When using the elevation correction feature.
The feature fails and there is the following error in the server logbook:
Optional parameter $recursive declared before required parameter $directoryId is implicitly treated as a required parameter at /var/www/nextcloud/apps/gpxpod/lib/Service/ProcessService.php#803

GpxPod suddenly stops parsing files after update to NC 25

The error:


  | Exception: Failed to parse time string (2022-03-27T15:32:37.504+02:00[Europe/Brussels]) at position 29 ([): Unexpected character/var/www/html/custom_apps/gpxpod/lib/Controller/OldPageController.php - line 611: DateTime->__construct("2022-03-27T ... ]")
/var/www/html/custom_apps/gpxpod/lib/Controller/OldPageController.php - line 1074: OCA\GpxPod\Controller\OldPageController->getMarkerFromFile([ "OC\\Files\\Node\\File"], "kekkon")
/var/www/html/custom_apps/gpxpod/lib/Controller/OldPageController.php - line 1268: OCA\GpxPod\Controller\OldPageController->getMarkersFromFiles([ [ "OC\\Fil ... "], "kekkon")
/var/www/html/custom_apps/gpxpod/lib/Controller/OldPageController.php - line 1143: OCA\GpxPod\Controller\OldPageController->processGpxFiles([ "OC\\Files ... "], "/Documents/Mototracks", "kekkon", false, true, true, false)
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 225: OCA\GpxPod\Controller\OldPageController->getTrackMarkersText("/Documents/Mototracks", false, false)
/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 133: OC\AppFramework\Http\Dispatcher->executeController([ "OCA\\GpxP ... ]], "getTrackMarkersText")
/var/www/html/lib/private/AppFramework/App.php - line 172: OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\\GpxP ... ]], "getTrackMarkersText")
/var/www/html/lib/private/Route/Router.php - line 298: OC\AppFramework\App::main("OCA\\GpxPod ... r", "getTrackMarkersText", [ "OC\\AppFr ... "], [ "gpxpod.ol ... "])
/var/www/html/lib/base.php - line 1047: OC\Route\Router->match("/apps/gpxpod/tracks-old")/var/www/html/index.php - line 36: OC::handleRequest()
-- | --

I am on the latest version op GpxPod (5.0.5).

Unable to add a directory

In the new interface, i can't add a directory.
GPXPod says that this directory is already selected. It has the same name, but it is in a other sub-diretory of an other directory.

Traces

  • Rando
    • Ventoux
      -VTT
      -- Ventoux

Karoo 2 FIT files are not correctly converted to GPX

I have some FIT files from a Hammerhead Karoo 2 that I've uploaded to the Nextcloud folder. When I open this folder in Gpxpod I can see new GPX files being created in the same folder but these files are zero size.

When I open that folder in the terminal and execute for example:

gpsbabel -i garmin_fit -o gpx f4851544-c3e3-42db-8665-5a7715dea415.fit f4851544-c3e3-42db-8665-5a7715dea415.gpx

then the GPX file is correctly created and I can open it in Gpxpod.

I didn't see anything in the Nextcloud log indicating any problems, other than:

Exception in f63a27f9-788a-4483-b47f-f3398fb9fcbc.gpx gpx parsing : String could not be parsed as XML

which is likely just Gpxpod trying to open the zero size files.

I put a bit of debug code in Gpxpod and I can see the parameters sent to gpsbabel are:

/usr/bin/gpsbabel -i garmin_fit -f - -o gpx -F -

and the stderr output was:

fit: This format cannot be used in piped commands!

which looks to come from this line of code:
https://github.com/GPSBabel/gpsbabel/blob/7da564a27e7d664dd0bf5924d6651f6d0a626084/gbfile.cc#L134

My guess is that there is something in the FIT files which requires seeking inside the data, and by using the piped input this is not supported.

"No folder selected" when sharing a link (and no mobile view)

Hello and thank you for this awesome app !
I am experimenting to see what I can do with my gpx files and the "new interface" of gpxpod looks very nice.

I'd like to share some tracks with relatives, but I have a weird behavior when opening a shared link: the left panel always displays "No folder selected".
It does not matter if the link was to share a single track or a folder; track(s) are displayed on the map, but the left panel always says "No folder selected".

I guess I should have the list of track(s) and maybe stats / graphs, similarly to the connected version of the page?

On mobile, the map is not displayed and all I see is the "No folder selected" panel...

Would it be possible to have only the map displayed on mobile maybe? I'd love to be able to share with people mostly using their phone.

Just upgraded NC to 27.0.0 but I had the same behavior with 26.x.x

Have a good day,

How to add custom tileserver?

In earlier versions I could add custom tileservers for all users by adding the tileserver to lib/Controller/tileservers.php

However, I noticed that this does not work anymore. When I try to add, for example,

 Array(
    'name' => 'Peruskartta (FIN)',
    'type' => 'tile',
    'url' => 'https://tiles.kartat.kapsi.fi/peruskartta/{z}/{x}/{y}.jpg',
    'attribution' => 'Map data <a href="https://kartat.kapsi.fi/">Kapsi.fi</a>',
    'minzoom' => '1',
    'maxzoom' => '20'
),

it does not show up in the drop-down menu in gpxpod. In fact, I noticed that even some other maps that are present in the default tileservers.php (e.g. "Hike & bike") don't show up.

I would appreciate if someone could point out how it is possible to add a custom tileserver for all users of one NC instance. Thanks a lot!

GpxEdit

Hi Julien,
gpxedit worked in NC 26.x, in NC 27.0 the following messages appear:

OCP\AutoloadNotAllowedException: Autoload path not allowed: /var/www/html/nextcloud/apps/gpxedit/appinfo/application.php

  1. /var/www/html/nextcloud/lib/autoloader.php - line 166:
    OC\Autoloader->isValidPath()

  2. <>
    OC\Autoloader->load()

  3. /var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php - line 217:
    class_exists()

  4. /var/www/html/nextcloud/lib/private/App/AppManager.php - line 400:
    OC\AppFramework\Bootstrap\Coordinator->isBootable()

  5. /var/www/html/nextcloud/lib/private/App/AppManager.php - line 216:
    OC\App\AppManager->loadApp()

  6. /var/www/html/nextcloud/lib/private/legacy/OC_App.php - line 126:
    OC\App\AppManager->loadApps()

  7. /var/www/html/nextcloud/lib/base.php - line 1044:
    OC_App::loadApps()

  8. /var/www/html/nextcloud/index.php - line 36:
    OC::handleRequest()

Do you have an idea?
Regards.
Bernd

[broken workflow] New UI: Please backport nested folders

I have the following folder structure with GPX tracks, collected over many years:

  • Hiking
    • City
      • District A
        • Watch
        • Phone
      • District B
        • Watch
        • Phone
    • Mountains
    • Abroad
      • Country 1
      • Country 2
  • Paragliding
    • Domestic
    • Country 1
    • Country 2

In old UI, there was an option to select tracks from 'Hiking' or 'Abroad' and get all tracks from all nested folders. There's no such an option in new UI.

Please add it, maybe with an extra option in settings to turn this on or off. It really breaks my workflow and makes me use the old UI.

New interface: MapTiler / Custom tileservers

Why the choice for maptiler? It adds unnecessary hassle and privacy concerns for private users plus it severely limits the choice of maps. The missing option for custom tile servers makes GPXpod effective unusable for many regions of the world where maptiler doesn't have uptodate maps for, such as (rural) Finland.

I'd kindly ask you to reconsider that design choice.

[FEAT] Use two tiles server to render

Hi,

Thanks for this great project.

I would like to add OpenSeaMap layer.
The thing is that OpenSeaMap layer do not render tiles terrain but transparent tiles with some objects on it.

On this site, https://leaflet-extras.github.io/leaflet-providers/preview/, we can activate OpenSeaMap layer with a checkbox and not a radio button so that we need a layer with a radio button AND we can add on top of it OpenSeaMap layer.

Is it possible to add it like on leaflet's website?

Thanks

How to add a custom map ?

I have an IGN account and i does not find how to add the same wmts map that i added in the old interface.

Override api.maptiler.com domain

Hello,

is it possible to override default api.maptiler.com domain?

I would like to set up a proxy on my server that would perform requests to api.maptiler.com on behalf of my users, thus preserving their privacy and hiding their IPs.

How to add a directory to display with nextcloud 27.1.1

what is the correct procedure for add a directory in GpxPod ?

When i click on "Ajouter des dossiers", this opens a window that allows me to navigate to the directory to be displayed. But then, I can't select anything. The only thing i can do is to create a new directory in the wanted directory.

Edit : it's a shared directory from an other disk on the server. It worked fine on older versions

Images not loading since v5.0.12

Since 5.0.12 images aren't loading/displayed anymore. When I select a folder containing images the load animation plays indefinitely and the log states a lot of entries like this one:

[PHP] Error: exif_read_data(): Unable to open file at /srv/www-local/nextcloud/apps/gpxpod/lib/Service/ProcessService.php#940

This occurs in both new and old interface. Tracks are loaded/displayed correctly in both interfaces.

Tracks not loading anymore

Hi,

After updating to 5.0.9 some directories with tracks aren't loading anymore. In the Nextcloud log is logged:

Exception: OCA\GpxPod\Service\ProcessService::sanitizeGpxContent(): Return value must be of type string, null returned in file '/srv/www-local/nextcloud/apps/gpxpod/lib/Service/ProcessService.php' line 1174

Fails to load in both new and old GUI. Another dir however, does load.

Manual installation in ownCloud 10.10.0.3 does not work

Have downloaded the newest package into APP folder on my owncloud server. See the app in "not installed" - with activation of the app I have to start "occ upgrade" (which looks good) but afterwards owncloud did not start anymore? I have deactivated the app now with "sudo -u apache php occ app:disable gpxpod" so owncloud is running again.

Is there a solution already available?
THX
Andreas

Time on the track

Until...well, I don't know, some month ago, I used to move the mouse in the altitude window
08-08-2023_10-47-55_2_GpxPod_-Nextcloud—_Mozilla_Firefox
to view the point in the map moving and the relative time, now moving in that window doesn't do anything.
Is this possible in some other way?
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.