tinuzz
Forum Replies Created
-
Forum: Plugins
In reply to: [Trackserver] Pop up over userIf you use the ‘infobar’ feature, you can use it to show the user name. If you click the marker for a user, the infobar information will update to that user’s information.
For an example, see the second demo on https://www.grendelman.net/wp/trackserver-wordpress-plugin/.
For a mouse-over pop-up, there is no code in Trackserver. It might be possible to write Javascript code that does that without modifying Trackserver’s code, but I’m not 100% sure about that.
Can you create a feature request issue on Github if you want me to look into it?
https://github.com/tinuzz/wp-plugin-trackserver/issues
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Tagging/categories plans?Hi,
Sorry for the late reply, I was on holiday. This is an interesting feature. Could you create a feature request issue on Github?
https://github.com/tinuzz/wp-plugin-trackserver/issues
Regards,
Martijn.- This reply was modified 5 years, 9 months ago by tinuzz.
Hi,
Unfortunately, this is how Trackserver currently works. The client side JavaScript doesn’t handle the case where the track ID of a live track changes very well. See https://github.com/tinuzz/wp-plugin-trackserver/issues/7.
If your walks generally last longer than one hour, I would suggest to change the OsmAnd trackname format in Trackserer’s settings, and remove the ‘%H’. Trackserver will then generate a new track every day, instead of every hour.
But Trackserver does show a popup requesting a page refresh, right? So from the user perspective, it’s all working correctly?
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] live trackingHi,
Sorry, I don’t own an iOS device, so I don’t know if it’s different than on Android. In the Android version, it’s in the settings of the GPX-track plugin. The plugin has different profiles for diffent tracking settings, and in the profile settings, there is a section called ‘Online Tracking’.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] live tracking“Trackserver can display multiple live tracks in one map.”
“OsmAnd cannot display the map with multiple users’ locations”In the second statement, I was talking about the internal map in OsmAnd.
Multiple users are different WordPress accounts. A WP Admin (or rather: someone with the ‘trackserver_publish’ capability. I think that includes WP Editors too) can author a page with a [tsmap] shortcode that displays tracks from multiple users.
The OwnTracks config file is meant to be imported into the OwnTracks app, see https://owntracks.org/booklet/features/remoteconfig/.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] live trackingHi,
What exactly do you expect from OsmAnd regarding multiple users? OsmAnd can be used by multiple users with the same Trackserver installation, and Trackserver can display multiple live tracks in one map. Do you need more? OsmAnd cannot display the map with multiple users’ locations, if that’s what you mean.
OwnTracks support in Trackserver is still experimental, so I’m not sure it works for everyone, and it’s indeed not well documented. I dug up an OwnTracks configuration that used to work, maybe you can try it? Save this to a file (use
.otrcfor the filename extension) and import it into OwnTracks:{ "_type": "configuration", "mode": 3, "auth": true, "username": "your_username", "password": "your_password", "url": "https://your_owntracks_endpoint_url/" }Regarding your shortcode: use ‘user=@’ instead of ‘track=live’, and you can leave out the ‘continuous=y’, it’s only for when you have multiple tracks that are basically segments of one longer track.
The initial display coordinates are hardcoded into Trackserver, I’m sorry about that. I will make a setting for that in a future version.
I hope this helps.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] http UploadHi,
These ‘upload’ mechanisms seem to be TCP-but-not-HTTP based. Since Trackserver is a WordPress plugin, it could never natively support that kind of connection. This is actually a FAQ:
You could write some middleware to translate the NMEA stream into HTTP requests (or to insert the data into Trackserver’s database tables directly), but I have no idea how hard that would be.
Regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] How to display last two week tracks?Hi,
Sorry for the lack of replies. This feature is on the roadmap, in some shape or another. But I’m having trouble finding the time to work on Trackserver. Right now, I’m trying to get v5 ready for release, which focusses on code refactoring, with not many new features. But I’ve still got quite some work to do, and it’s going to take a while, sorry.
Regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Embedded mapAre you saying that if you use the shortcode in an embedded map, that it doesn’t work, but if you use exactly the same shortcode in a regular post or page, that it does work?
If the author of the embedded map and the owner of the track are the same user, or if the author of the embedded map is a WP admin, it should work. If it works in a regular post, but not in an embedded map, that is very weird, not to say impossible.
“Embedded map” is just a WP post type, the shortcode handling for different post types is exactly the same…
If you cannot get it to work, can you share the URL with me, so I can have a look?
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Use my custom mobile app?I have a blog post about client and protocol support in Trackserver coming up, but I can’t publish it until after the next release of Trackserver, because it’s not entirely applicable to v4.3.
Martijn.
Forum: Plugins
In reply to: [Trackserver] Use my custom mobile app?MapMyTracks API v1:
https://github.com/MapMyTracks/api-v1Regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Use my custom mobile app?Hi,
Trackserver uses more or less known protocols to upload location data, so I don’t have any documentation for that. You should look for the protocol documentation upstream.
The easiest way to get data into Trackserver if you don’t care about tracks (only locations), would be the OsmAnd protocol, which is just HTTP GET and doesn’t even need basic auth. It doesn’t even need documentation, because you can find all the URL parameters in your Trackserver profile:
/?lat={0}&lon={1}×tamp={2}&altitude={4}&speed={5}&bearing={6}&username=<usename>&key=<key>If you do care about Tracks, I suggest you look into the MapMyTracks protocol, which is HTTP POST + XML based. A little more complicated, but at least it does authentication in an acceptable way.
Regarding Google Maps: I can’t help you with that. You should try and find the tile URL, but G Maps is very restricted, license wise, so it’s likely illegal to use it with Trackserver, unless you pay.
Regards,
Martijn.- This reply was modified 5 years, 12 months ago by tinuzz.
Forum: Plugins
In reply to: [Trackserver] Plugin SetupJust to be sure… You say that TrackMe doesn’t give you any errors. Does that mean that it reports “Position added correctly.” in the log? Because that would mean that it’s talking to a server that accepts the locations. TrackMe will report what that server is when it starts up.
I think you should be able to figure this out.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Plugin SetupYou can also check your setup with, for example, cURL:
curl "https://www.mysite.com/tracker/wp-username/password/requests.z?a=upload&tn=Test&lat=58&long=5&do=2020-05-12%2012:19:18"If all is well, the result should be:
Result:0
If not, you will see an error.
Best regards,
Martijn.Forum: Plugins
In reply to: [Trackserver] Plugin SetupHi,
1. Username: testuser
3. URL Header: https://www.mysite.com/tracker/wp-username/passwordIf ‘wp-username’ means ‘testuser’ in this case, then I would say that the settings are correct.
The next place to look would be your webserver’s log file, to see of the requests are arriving.
Best regards,
Martijn.