webOS Nation Forums >  Homebrew >  webOS homebrew apps > Longitude - Google Latitude substitute
Longitude - Google Latitude substitute

  Reply
 
LinkBack Thread Tools Display Modes
Old 10/15/2009, 11:38 PM   #101 (permalink)
Member
 
Join Date: Aug 2009
Posts: 4
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

hmm my connection to latitude stopped working yesterday all of a sudden, so i went back to the original setup. Happen to anyone else?

Reinstall does not work. The original method still works though.
dietfluffy is offline   Reply With Quote
Old 10/21/2009, 10:43 PM   #102 (permalink)
Member
 
Join Date: Sep 2009
Posts: 7
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I still can't get mine to not constantly upload.
m8rx007 is offline   Reply With Quote
Old 10/22/2009, 09:36 PM   #103 (permalink)
Member
 
Join Date: Sep 2009
Posts: 7
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is interesting now. I fixed my index.html tonight because originally, I thought that it would constantly upload. Turns out, it only uploads my location with the page is visited. Longitude doesn't have to be running, but as long as the page is visited, my phone transmits my location. Any idea why?
m8rx007 is offline   Reply With Quote
Old 10/22/2009, 09:37 PM   #104 (permalink)
Member
 
Join Date: Sep 2009
Posts: 7
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I suppose I should give some background. I have lighttpd running on my phone as the web server. However, I have it redirecting through a dyndns.com URL.
m8rx007 is offline   Reply With Quote
Old 10/23/2009, 05:19 AM   #105 (permalink)
Member
 
Join Date: Jan 2007
Posts: 13
Likes Received: 0
Thanks: 2
Thanked 0 Times in 0 Posts
Default

tested the lastest version 0.2.1 ... got the problem that it will update my server regularly if I choose intervalls up 30s. 1m and longer doesn't work and no updates are sent to my server. Is this a known bug? Is there a version with that bug fixed?
wovvbagger is offline   Reply With Quote
Old 10/26/2009, 11:47 PM   #106 (permalink)
Member
 
Join Date: Sep 2009
Posts: 3
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default Still having problems

Quote:
Originally Posted by Etgen View Post
Here are my php files to update latitude.

Make sure you have the latitude widget on you iGoogle homepage.
Etgen:

After digging through the class, and turning on a lot of the debugging, I think I've figured out that the google login is failing because of a new param "GALX" which is stored in the cookie *after* you attempt to login.

So, over and over, it sends, I get a cookie, but then I'm put at the generic (not logged in) page because it doesn't like the login attempt.

At least that is what SEEMS to be happening to me. I've verified the username and password by using cut/paste to the login form just in case I was messing up something simple.

Any ideas?
tskeeley is offline   Reply With Quote
Old 10/31/2009, 11:27 PM   #107 (permalink)
Member
 
Join Date: Sep 2009
Posts: 3
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by tskeeley View Post
Etgen:

After digging through the class, and turning on a lot of the debugging, I think I've figured out that the google login is failing because of a new param "GALX" which is stored in the cookie *after* you attempt to login.

So, over and over, it sends, I get a cookie, but then I'm put at the generic (not logged in) page because it doesn't like the login attempt.

At least that is what SEEMS to be happening to me. I've verified the username and password by using cut/paste to the login form just in case I was messing up something simple.

Any ideas?
Right, so I gave up waiting. I'm teasing, no offence ment! I just wanted to see if I could find another solution.

I did some searching, found out that another crew made a bridge for the iPhone from MyPhone. I looked at the code and it's simple. I mean, really simple. So I got to thinking. All of the code I've seen so far is php based on the Pre, but, I don't want to install wordpress. Not an objection to it, just saving room on my pre.

So, another solution. Originally, DolphinKing published Longitude as a client on the Pre and a server on a website. Taking that model, I stripped apart the iPhone php app. Removing the references to MyPhone was simple. Basically, if we call the luna-send location routine and send it to a website, the website can process the data. We can call luna-send directly from a shell script. Inelegant, but simple.

On the webserver, the iPhone people figured out how to update Google Latitude without using the iGoogle widget. By using the headers from that project, updating Latitude becomes a piece of cake. A fast update to the server script, and presto.

Going forward I would like to do the update to Latitude directly from the Pre, and skip the webserver all together. It'd be easy if I get up and install php on my Pre. *laughs* Tell you what, if you want it, you can do it. It's simple!

In the mean time, take a look at this, kick the tires, see what you think.
Attached Files
File Type: zip Longitude-New2.0.zip (5.6 KB, 45 views) Email Attachment
tskeeley is offline   Reply With Quote
Thanked By: roto22
Old 11/09/2009, 09:00 AM   #108 (permalink)
Member
 
Join Date: Dec 2004
Posts: 60
Likes Received: 0
Thanks: 1
Thanked 2 Times in 1 Post
Default

I wrote a server bridge in ASP for my Pre, as well as a simple client that ran on my Pre and updated Latitude via my bridge on a regular basis. It worked fine.

I then ported the server bridge code to the Pre, so that it would update Latitude directly, without the server bridge. I tested it on the emulator, and it worked perfectly! I could update Latitude directly.

However, when I moved it to my Pre, it failed - it wouldn't log in (I have it logging into the iGoogle page to do the update).

After some investigation, I found out that the user-agent string used with the httprequest object in the emulator is different than it is on the phone. And Google identifies the user-agent sent in the httprequest, says "hey, this is a phone" and sends you off to the mobile Google page instead of the iGoogle page.

Palm in its infinite wisdom has decided that despite the fact they have a property of the httprequest that allows you to change the user-agent - it is ignored, and always sends its own user-agent string, regardless of what you set it to.

So until a) Palm changes this, or b) Google releases a Latitude direct-update API, there's no way that I can think of that will work for updating it directly.
__________________
http://wwwebos.com - webOS User Community
GSMacLean is offline   Reply With Quote
Old 11/13/2009, 08:39 PM   #109 (permalink)
Member
 
Join Date: Sep 2009
Posts: 3
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by GSMacLean View Post
I wrote a server bridge in ASP for my Pre, as well as a simple client that ran on my Pre and updated Latitude via my bridge on a regular basis. It worked fine.

I then ported the server bridge code to the Pre, so that it would update Latitude directly, without the server bridge. I tested it on the emulator, and it worked perfectly! I could update Latitude directly.

However, when I moved it to my Pre, it failed - it wouldn't log in (I have it logging into the iGoogle page to do the update).

After some investigation, I found out that the user-agent string used with the httprequest object in the emulator is different than it is on the phone. And Google identifies the user-agent sent in the httprequest, says "hey, this is a phone" and sends you off to the mobile Google page instead of the iGoogle page.

Palm in its infinite wisdom has decided that despite the fact they have a property of the httprequest that allows you to change the user-agent - it is ignored, and always sends its own user-agent string, regardless of what you set it to.

So until a) Palm changes this, or b) Google releases a Latitude direct-update API, there's no way that I can think of that will work for updating it directly.
Agreed! That's why I went the route of letting the script pretend to be the iPhone. It was easier than trying to explain to Palm, "No, really, your app functions really should work, or you shouldn't offer them." *rolls eyes* Oh well, at least it's "getting there".
tskeeley is offline   Reply With Quote
Old 11/19/2009, 08:53 PM   #110 (permalink)
Member
 
d0lph1nK1ng's Avatar
 
Join Date: Jun 2009
Location: Charlotte, NC
Posts: 326
Likes Received: 0
Thanks: 1
Thanked 251 Times in 47 Posts
Default

hey guys, i've taken a liking to this program again and am doing some development. i grabbed a server and will be hosting a longitude service so that all you need is a login and will able to see your location as well as your friends! more coming soon. follow d0lph1nk1ng Software or @d0lph1nk1ng on Twitter for updates as well as keeping an eye on this thread
__________________
Thanks,
@d0lph1nK1ng
http://dolphinking-software.com

My apps →
dkGoogleVoiceScreamItdkStopwatchCoinTossDigiClockdkLightsaber
CowTasksiTunesRemoteAndroidAppLongitude
d0lph1nK1ng is offline   Reply With Quote
Old 11/21/2009, 10:50 PM   #111 (permalink)
Member
 
d0lph1nK1ng's Avatar
 
Join Date: Jun 2009
Location: Charlotte, NC
Posts: 326
Likes Received: 0
Thanks: 1
Thanked 251 Times in 47 Posts
Default

Here is a beta preview of the server side of this app. Now you will not have to do the hosting part of this app. Also, you will not have to generate your own google maps api key. Try looking for "ruby". This page is also viewable from your Palm Pre. Feedback is welcome.

Beta Link: Longitude

Thanks and enjoy!
__________________
Thanks,
@d0lph1nK1ng
http://dolphinking-software.com

My apps →
dkGoogleVoiceScreamItdkStopwatchCoinTossDigiClockdkLightsaber
CowTasksiTunesRemoteAndroidAppLongitude
d0lph1nK1ng is offline   Reply With Quote
Old 12/07/2009, 04:11 AM   #112 (permalink)
Member
 
Join Date: Aug 2009
Posts: 25
Likes Received: 0
Thanks: 2
Thanked 18 Times in 6 Posts
Default

Quote:
Originally Posted by tskeeley View Post
Right, so I gave up waiting. I'm teasing, no offence ment! I just wanted to see if I could find another solution.

I did some searching, found out that another crew made a bridge for the iPhone from MyPhone. I looked at the code and it's simple. I mean, really simple. So I got to thinking. All of the code I've seen so far is php based on the Pre, but, I don't want to install wordpress. Not an objection to it, just saving room on my pre.

So, another solution. Originally, DolphinKing published Longitude as a client on the Pre and a server on a website. Taking that model, I stripped apart the iPhone php app. Removing the references to MyPhone was simple. Basically, if we call the luna-send location routine and send it to a website, the website can process the data. We can call luna-send directly from a shell script. Inelegant, but simple.

On the webserver, the iPhone people figured out how to update Google Latitude without using the iGoogle widget. By using the headers from that project, updating Latitude becomes a piece of cake. A fast update to the server script, and presto.

Going forward I would like to do the update to Latitude directly from the Pre, and skip the webserver all together. It'd be easy if I get up and install php on my Pre. *laughs* Tell you what, if you want it, you can do it. It's simple!

In the mean time, take a look at this, kick the tires, see what you think.
I just installed this script on my Pre and webserver, and it works great. Now if I could only see other's locations on my Pre...

Thanks!

--Todd
roto22 is offline   Reply With Quote
Old 12/11/2009, 08:06 AM   #113 (permalink)
Member
 
Join Date: Oct 2005
Posts: 28
Likes Received: 0
Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by d0lph1nK1ng View Post
Here is a beta preview of the server side of this app. Now you will not have to do the hosting part of this app. Also, you will not have to generate your own google maps api key. Try looking for "ruby". This page is also viewable from your Palm Pre. Feedback is welcome.

Beta Link: Longitude

Thanks and enjoy!
Any chance you would make the source for the server side available like the first longitude app? I'm interested in sharing location info w/my wife (who also has a pre) but sufficiently paranoid about privacy that I'd like to be able to control access by placing it on my own server w/my own security controls.
35whl21 is offline   Reply With Quote
Old 12/11/2009, 08:17 AM   #114 (permalink)
Member
 
d0lph1nK1ng's Avatar
 
Join Date: Jun 2009
Location: Charlotte, NC
Posts: 326
Likes Received: 0
Thanks: 1
Thanked 251 Times in 47 Posts
Default

will not be happening, sorry
d0lph1nK1ng is offline   Reply With Quote
Reply

 

Tags
app, gps, pre

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0