Page 1 of 2

additionnal command line parameters

Posted: Sun Apr 08, 2012 2:04 pm
by ppz
Hi again,

regarding my previous post (about different trackings, depending of the viewer), I created a new account and added "him" as a friend, so "he" will be able to view me (the main user).

That means that the guest can only view my present location (ok, it's what I need) and I hoped that I can create a simple link to my new (friend) user.

I set the normal link to :

http://www.greenalp.com/RealTimeTracker ... &viewuser=[username]&fs=1&zoom=15

Is it possible to create something like :

http://www.greenalp.com/RealTimeTracker ... uestmode=1&usermode=[friend]&password=[password]&viewuser=[username]&focus=[username]&fs=1&zoom=15

where
usermode = the name of the friend
password = the password related to the friend (because an account need a password, contrary to the guest)
focus= the focus on the username in place of the main google maps page (in the ocean...)

In fact, I want to obtain exactly the same view as the guest (same zoom), but logged with the optional datas (guest=track only, no trails, friend=track + trail)

Or to keep it simple :

http://www.greenalp.com/RealTimeTracker ... guestmode=[friend]&viewuser=[username]&fs=1&zoom=15

to allow the guest view + optional datas, but following the friend limitations...

Thank you for your reply.
Michel

Re: additionnal command line parameters

Posted: Sun Apr 08, 2012 7:40 pm
by admin
Hi,
I'm not sure what your goal is here. Would you like to have a URL which encodes username and password so you don't have to type your credentials into the login box?

Re: additionnal command line parameters

Posted: Mon Apr 09, 2012 2:54 am
by ppz
The goal is to provide to the non-guest users the same easy experience.

As a guest, without login, you are directly put on the right map, tracking the person linked (the target)

As a friend, after a login, you're in the middle of nowhere (in the atlantic ocean) and you need to focus and to zoom "a lot" to obtain the same view as a guest.

My request is to obtain, if it's feasible, through the command line, the same result : directly on the right map, with the proper zoom, tracking the right person.

so, the 4 command line parameters :
- friends' name (to avoid to put this on a form)
- target name (to zoom directly on the right linked friend)
- [optional] password (to avoid to put this on a form)
- zoom level, to avoid friends to click many times to obtain the right information

Is it a better explanation ?
If you can create it a different way, feel free to comment.
if you can't, I will use it anyway because your app is nice.

Michel

Re: additionnal command line parameters

Posted: Mon Apr 09, 2012 9:23 am
by admin
Hi,
If a registered user logs in, the app will initially select a zoom level so all friends can be displayed at once. I think I can add a parameter which allows to preselect a special friend. Parameter for zoom level is already supported. So if I add parameters username, password (for auto-login), and friendname for the user to focus on, the request will be solve, right?

But don't forget, you should not tell this URL containing your private password to other people.

Re: additionnal command line parameters

Posted: Thu Apr 12, 2012 5:34 am
by ppz
admin wrote:Hi,
If a registered user logs in, the app will initially select a zoom level so all friends can be displayed at once. I think I can add a parameter which allows to preselect a special friend. Parameter for zoom level is already supported. So if I add parameters username, password (for auto-login), and friendname for the user to focus on, the request will be solve, right?
Yep

Btw, do you have an estimate when it can be done (weeks, months ?) Just to know as another user asked.

Michel

Re: additionnal command line parameters

Posted: Mon Feb 04, 2013 2:25 am
by Saxtus
Sorry for reviving this thread, but I am interested to know if this is implemented yet.
Thanks in advance.

Re: additionnal command line parameters

Posted: Mon Feb 04, 2013 2:47 pm
by admin
Yes, I thinks this is supported. Which paramter do you need?

Re: additionnal command line parameters

Posted: Mon Feb 04, 2013 2:55 pm
by Saxtus
I want someone to be able to view my location zoomed in like it happens using a link like this if guest access is enabled:

Code: Select all

http://www.greenalp.com/RealTimeTracker/index.php?guestmode=1&viewuser=[user_to_view]&fs=1
but without guest access enabled (i.e. using his account credentials, access allowed to friends).

Re: additionnal command line parameters

Posted: Mon Feb 04, 2013 5:53 pm
by admin
Actually I do not recommend to set the password in url because it is provided as clear text, so everyone can read is. But there is inofficial support.
use parameter authuser for username, and authpwdclear for password.

Additionally you can use parameter zoom for zooming, maptype=satellite for satellite view, and maptype=hybrid for hybrid view.

Use it if you like but if I notice security problems I will cancel to support username and password parameters.

Re: additionnal command line parameters

Posted: Wed Feb 06, 2013 1:52 pm
by Saxtus
When I try this, the user is logged in correctly, but I 've been asked for guest password (if guests enabled)
or getting an error that this user doesn't accept guests to see (if guest access is disabled)...

What am I doing wrong?

Code: Select all

http://www.greenalp.com/RealTimeTracker/index.php?viewuser=xxx&authuser=yyy&authpwdclear=zzz&fs=1&zoom=15