tinuzz
Forum Replies Created
-
Forum: Plugins
In reply to: [Trackserver] Track could not be loadedNo, I need more information. A ‘gettrack’ URL is not very helpful, the nonce in it expires within 24h. Can you give me the URL of the page that your map is on?
- This reply was modified 7 years, 11 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] Error uploading positionHello Bas,
You are mixing up two things. Please read the FAQ about Trackserver slugs:
https://wordpress.org/plugins/trackserver/#what%20is%20this%20%E2%80%98slug%E2%80%99%20you%20are%20talking%20about%3FTo display a map on a page or post, you always need to use the [tsmap] shortcode. The URL of your page cannot conflict with / be the same as the URL you use in TrackMe. Those are different things.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Changing from http:// to https://In version 4.0.2 the default tile URL was updated, but that is only used for new installations. On upgrades, the currently configured tile server URL is not touched. You have to update it yourself o the settings page.
I guess Trackserver could try to be smart about it and check if the current URL is equal to the default URL, and if it is, update it, but that has not been implemented.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Tracking information of markersHi Ramon,
That would be doable. The name of the track is already present in the results from the database, it’s just not added to the metdata.
After line 3750
( https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L3750 )
add the following:'trackname' => $row['name'],Then, in trackserver.js, in the ‘process_data’ function
( https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.js#L57 )
you will have the track name available aso.metadata.tracknameand you can do anything you want with it.I will add this in the next release, but it will take a while before I get back to Trackserver development.
Let me know if this works for you.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Tracking information of markersHi,
Good question. Unfortunately, it’s not easy to accomplish, because the information you are looking for (the timestamp of the first track point) is simply not available in the data on the web page.
The metadata is only sent for the last trackpoint. See
https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L3743
for where the metadata is compiled, and
https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L3626
for where this function is called.
Basically, the database results are evaluated row by row, and at the end, the metadata is collected from the last row only. If you need metadata for other trackpoints, the ‘send_as_polyline’ function needs to gather that information. Perhaps you can copy the ‘get_metadata’ function, adapt it for the first trackpoint, and call that from the loop in ‘send_as_polyline’.
The reason for this is efficiency: the metadata for other trackpoints than the last one is seldomly needed, and sending timestamps for all trackpoints would make the dataset almost twice as big. However, the need for more metadata comes up every now and then, and I’m thinking about how to fix that, without sending a lot of unnecessary data for every track. Of course, that doesn’t help you at this time, I’m sorry about that.
If you implement a solution, I’d be interested in how you do it.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Vehicules trackingYes.
Forum: Plugins
In reply to: [Trackserver] Real time locationGreat, let me know how it goes!
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Style of marker, pulse markerSorry, I forgot the second part of your question. The default center coordinates are hardcoded at this time, it’s on the roadmap to make them configurable.
You’ll have to edit trackserver.php to change them:
https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.php#L1673Sorry about that.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Style of marker, pulse markerHi,
Styling markers is on the roadmap, but I can’t give you an ETA, I’m afraid.
The one you proposed might be hard to integrate into Trackserver, but a quick search got me to https://github.com/mapshakers/leaflet-icon-pulse, which is a Leaflet plugin and as such much probably easier to integrate.
If you’re a bit handy with JavaScript, you should be able to replace the the current marker with that one.
https://github.com/tinuzz/wp-plugin-trackserver/blob/master/trackserver.js#L275
is the place you need to edit.
Cheers,
Martijn.P.S. If you like Trackserver, please consider writing a review here:
https://wordpress.org/support/plugin/trackserver/reviews/#new-postForum: Plugins
In reply to: [Trackserver] Real time locationwe need to use the app to publish the location, right? I donβt want to use the phone of my wife, but I want a fixed gps tracker in the bus. Therefore, I need to have a phone with a sim with the app installed and it works?
Yes, Trackserver only works with a limited number of apps, most for Android and one for iOS (SendLocation). You’ll need mobile data on your subscription, of course.
is it possible to see the exact address when onhovering over the location?
No, currently it isn’t. What you are talking about is called ‘reverse geocoding’. There is no code in Trackserver to do that. An external service would be needed for that, it’s not entirely trivial to implement. Please open a feature request issue on Github if you really need it.
I see that you use open street maps instead of Google maps.
Yes, Google doesn’t allow for Maps to be used the way Trackserver uses maps without a paid subscription.
Is it possible to fill in
your address to see how far the bus is from this address with a route?No, sorry, that is a bit beyond Trackservers goals. I’m not sure what that would look like, exactly, but I guess a link to Google Maps would be an easy solution. That wouldn’t be hard to implement, but I’m not sure it belongs in Trackserver.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Real time locationYes, that what it’s for!
She would have to use a mobile app (TrackMe, OruxMaps, OsmAnd) to publish her location, and the web site can display a map with her latest location on it.
See demos of what Trackserver can do here:
https://www.grendelman.net/wp/trackserver-wordpress-plugin/All the way at the bottom is a ‘live tracking’ example. The track, which is shown as a dashed line in the demo, can also be made completely transparent, so you will only see the current location.
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Real Time Location TrackingHi,
It’s an interesting use case.
First of all, the plugin does not (and cannot) control when the client device starts and stops sending updates. At least, I don’t know any app that supports this kind of remote control. I can think of an app listening to HTTP responses and stopping the reports on command, but the case of starting to track, I can’t even imagine how that should work. Anyhow, Trackserver doesn’t do this at the moment, and without client support, it will never happen.
Regardless of client support, Trackserver (on the server side) could of course decide to store the location or not. What you seem to need is an inverse geofence, where location updates are ignored of discarded outside the fence. The current implementaion of geofences in Trackserver only hides or discard locations inside specified areas.
I think it would be feasable to add ‘inverse’ functionality to the geofences as they are in Trackserver now. I will consider it, if you think that it will solve your problem. Keep in mind that geofences are circle-shaped (defined by center coordinates and a radius), and that I have no intention of adding other shapes or forms to Trackserver.
Please let me know!
Cheers,
Martijn.- This reply was modified 8 years, 2 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] Not working on 000webhost & question USER nameAny luck getting it to work?
Cheers,
Martijn.Forum: Plugins
In reply to: [Trackserver] Lifetracking without centering the mapHi,
The idea is, that if you want to have a closer look at a track, you temporarily stop live updates with the control button, maybe you can just add a note about that to the page, so people know to click the button?
Other than that, it’s not possible. You can comment line 333 (*) in trackserver.js to disable the behaviour, but then it won’t center on first load either.
That’s one great trip you’re making there, btw. I’m jealous π
Cheers,
Martijn.(*) Line 333 in the latest version
Forum: Plugins
In reply to: [Trackserver] Shortcode infobar templateGreat, thanks!
Martijn.