Forum Replies Created

Viewing 15 replies - 136 through 150 (of 415 total)
  • Plugin Author tinuzz

    (@tinuzz)

    Hi Jeremy,

    Thank you for the report. This is a bug in Trackserver!

    The conversion from local time to UTC, which is needed for GPX output, doesn’t handle negative offsets correctly, which means that if you’re in the western hemisphere (which I am not ;-)), you’ll run into this bug.

    I’ll prepare a fix ASAP, probably this evening and post it here.

    If you wan to go ahead and do it yourself:
    – the calculated value in line 3954 ((int) get_option( ‘gmt_offset’ ) * 3600) needs to be converted to its absolute value (wrap it in abs() )
    – if the original value was negative, the ‘sub()’ call on line 3956 should become an ‘add()’ call, so something like:

    if ((int) get_option( ‘gmt_offset’ ) > 0) {
    $occurred = $occurred->sub( $timezone_offset );
    else {
    $occurred = $occurred->add( $timezone_offset );
    }

    Well, this is ugly code so my final fix will look differenly, but this is the idea.

    I’ll post an update later.

    Plugin Author tinuzz

    (@tinuzz)

    Ah, it seems it is reproducible after all. If I select 100 tracks and click ‘Download as GPX’, I get the same error. In my case, it’s a memory limit error (“PHP Fatal error: Allowed memory size of 134217728 bytes exhausted”).

    How many tracks did you select? Does it work if you select less tracks?

    I’m not sure if it is possible to catch this type of error and handle it gracefully, though…

    Plugin Author tinuzz

    (@tinuzz)

    The error message would indicate a runtime problem with Trackserver’s code, like a typo in a function name or something. I cannot reproduce it with my code.

    Which version are you running? It it the published version from the plugin directory, 4.2.2?

    In this case, please take a look a your PHP error log, it should contain the actual reason why the request is failing. There should be an error message of some kind.

    Best regards,
    Martijn.

    Forum: Reviews
    In reply to: [Trackserver] Super!
    Plugin Author tinuzz

    (@tinuzz)

    Too bad it doesn’t work with OruxMaps for you, but glad it works with TrackMe. TrackMe is more reliable in any case. Thank you for the rating!

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    I’m not sure I understand the question.

    During live tracking with TrackMe, your live position would be visible on a Trackserver map that has ‘user=@’ in the [tsmap] shortcode (that being the whole point of Trackserver’s existence), but I also think that the TrackMe will display your current track as long as tracking is on, even if the postition cannot be sent to the server for some reason. Use the ‘live map’ feature for that.

    Just don’t use the cloud sharing feature, it doesn’t work with Tracksever.

    To be complete: “cloud sharing” in TrackMe (the ‘cloud’ button at the bottom) means you’re sharing your location with other people. It does NOT mean online tracking. That’s what the red dot ‘recording’ button at the top-right is for.

    Is this helpful?

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi Michael, Like Leo said, I am only able to reproduce it when enable the cloud sharing feature, which is indeed not supported by Trackserver. If you disable cloud sharing, it shoud just work. I used the latest version of TrackMe on a cycling trip this morning, and I didn’t have any problems.

    If you disable the cloud sharing feature in TrackMe, I would be very surprised if the app still gave you the error that cloud sharing is not supported by the server. That just doesn’t make sense.

    That said, I think the cloud sharing feature could be interesting, so I’ll put support for it on my TODO list. IIRC, earlier versions of TrackMe only had cloud sharing with the official TrackMe servers and not with custom servers like Trackserver, but that seems to have changed now.

    • This reply was modified 6 years, 9 months ago by tinuzz.
    Plugin Author tinuzz

    (@tinuzz)

    Before I forget: can you tell me which version of TrackMe you are running?

    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi, this almost sounds like there has been a change in the TrackMe protocol, like the app expects a different response than Trackserver is sending.

    I’ll look into it ASAP!

    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    This is actually in the FAQ:
    https://nl.wordpress.org/plugins/trackserver/#can%20trackserver%20support%20protocol%20x%20or%20device%20y%3F

    You need some sort of middleware to translate the device’s protocol to one of the HTTP based protocols that Trackserver handles. It’s the only way.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    When you get the error, it should be sufficient to reload the page, i.e. press F5, to display the latest track. If that doesn’t work, please let me know.

    The page keeps requesting the latest track for user X, but the response contains a track that is referenced by ID and the map is initialized using that ID. When a new track is started, the track with previous ID is no longer present in the server response, and the already initialized map still looks for the previous ID, hence the error. A page reload will re-init the map with the new ID. This can be considered a bug, but I’m not sure how easy it is to fix in a secure manner.

    There is no need to go into the WP backend and resave the page.

    About your goal, I’m not sure it’s very easy to do at this time, since Trackserver can display either the latest single track of a user, or a number of tracks by ID, but not the ‘latest X’ number of tracks for a user. One hack that might work, is to create a shortcode with a list of not-yet-existing track IDs, so that they will appear on the map once they exist. You just have to think in advance about how many tracks you will create.

    And remember that to display other users’ tracks ([tsmap user=oruxMaps] when the page author is not ‘oruxMaps’, or [tsmap id=x,y,z] where x,y,z are not /your/ tracks), you have to be a WP admin.

    Hope this helps,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    I am unable to help you if you don’t ask concrete questions and give the necessary information.

    Plugin Author tinuzz

    (@tinuzz)

    I don’t think there is such a thing, at least I never made one.

    There are screenshots in the Trackserver Options page in the WP backend.

    Plugin Author tinuzz

    (@tinuzz)

    By the way, the URL that you posted does in fact display a track, so I’m not sure what the problem is?

    The live update feature that reloads the track every 10 seconds also seems to work corectly on that page.

    Plugin Author tinuzz

    (@tinuzz)

    For shortcode, please try [tsmap user=@]

    But first things first. If you start live tracking with any of the apps you mentioned, do you actually get a track in the Trackserver database? You should see tracks in the ‘Manage tracks’ page. If there are no tracks, there is nothing to display.

    If there are tracks under your user ID, the shortcode I wrote above will surely display the latest track.

    • This reply was modified 7 years, 1 month ago by tinuzz.
    Forum: Reviews
    In reply to: [Trackserver] Works good
    Plugin Author tinuzz

    (@tinuzz)

    Good to hear, thank you.

Viewing 15 replies - 136 through 150 (of 415 total)