Google Latitude Script

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
raptor_demon
Senior Member
Posts: 141
Joined: Tue Jul 07, 2009 12:55 pm
Location: NC

Google Latitude Script

Post by raptor_demon »

Hi Guys,

while browsing the inter webs i found this:


http://board.homeseer.com/showthread.php?t=143249
it seems to be a Google latitude VBScript for homeseer.

From what i can see is the only homeseer specific part is how it writes the variables to Homeseer.

I would have thought this would be very easy to modify for use with housebot.


I have spoken to the Author and he said we can use the script and chage it as needed so long as it stays Public Domain.

What the script does is allow you to use google latitude location data to trigger actions such as turn down the hvac etc..

Can someone who knows about scripting point me in the right dircetion for this?

Raptor
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Google Latitude Script

Post by jacco van der Ven »

Is this already working in Housebot?
raptor_demon
Senior Member
Posts: 141
Joined: Tue Jul 07, 2009 12:55 pm
Location: NC

Re: Google Latitude Script

Post by raptor_demon »

Hi,

No it is not,

but it should not be too hard todo for someone who can build scripts for housebot.

Rpator
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Google Latitude Script

Post by jacco van der Ven »

Ok, I will give it a try.
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Google Latitude Script

Post by jacco van der Ven »

Well, I changed some code and it is working now in Housebot.
I will make an export file and post it.
Jacco
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Google Latitude Script

Post by jacco van der Ven »

Raptor has spoken to the Author and he said we can use the script and change it as needed so long as it stays Public Domain.

So I rebuild the script and we can use it now in Housebot.
I made an device called "Positie Jacco" and an device "P_1min" and an task that will be run every minute.

In the script you can fill in your home location, the script will calculate your distance between you and your location.
Also you have to fill in your Google badge you can create own at https://www.google.com/latitude/b/0/apps

Thanks to Mike Scott, http://board.homeseer.com/showthread.php?t=143249

Regards, Jacco
Attachments
Copy of latitude.zip
Script latitude
(2.05 KiB) Downloaded 678 times
Last edited by jacco van der Ven on Wed Jan 05, 2011 6:16 pm, edited 1 time in total.
Autodomain
Member
Posts: 23
Joined: Sun Sep 27, 2009 6:41 am
Location: London GB

Re: Google Latitude Script

Post by Autodomain »

Hi there,

Jacco, I have imported your hbx file but I can't find the vbs script :o
Can you publish it to the forum please?

Thanks in advance.
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Google Latitude Script

Post by jacco van der Ven »

Now I posted the script file.

Jacco
PServais
Member
Posts: 29
Joined: Tue Feb 03, 2009 6:13 am
Location: Maastricht, Netherlands

Re: Google Latitude Script

Post by PServais »

Hi Jacco,

i have setup the script in Housebot and made the required device and properties.
The timer for the script runs the script every minute.
The strange thing is that the distance from me to home is approx. 5000 km.????
To test the the script i have entered the same latitude and longtiude as the current position from google latitude.
The distance tells me that I am 4995,15 km from home, but the home coords in the script are the same as my current coords.
Any suggestions??

Thanks, Patrick
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Google Latitude Script

Post by jacco van der Ven »

Can you send me your coordinates by PM, so I can test it?
Post Reply