Script & Plug-In LibraryIf you have a script for HomeSeer that you would like to share, please post it here. This forum is for scripts only, and no replies are allowed here. You may discuss these scripts in the Scripts Discussion forum.
Snevl Latitude gathers location information from your phone (and the phone of friends). The primary features:
Maintains a track database of the location for each person (specifically, the location of their phone).
Creates up to two static Google map images for each person, which can be placed in a device string for display on HSTouch. Maps can show either a track of the most recent locations (up to 20) or the most recent location reported. Road, satellite, or hybrid maps are supported. A handy way to use the two available maps for each person is to have one device show the track of the last N locations, and the other to show the most recent location.
Also can create a static Google map showing a group of people, e.g. the location of everyone in the family on one map.
You can create and maintain any number of "places" (e.g. home, work, mall, etc.) as well as a set of distances from any person to a places. These can be assigned to devices, and the distance value will be place in the appropriate device. In addition, a distance device will be turned ON when the associated person is "near" the associated "place", and turned off when the distance is no longer "near". You can use this ON/OFF to trigger events when someone approaches or departs a place.
With the demise of Google Latitude (RIP), location information can be from either FollowMee, Btraced, Backitude or any combination of the three. FollowMee and Btraced apps support either Android or iOS devices, Backitude is Android only, and FollowMee also supports Windows Phones. For more information about BTraced, see the BTraced site (http://www.btraced.com) and/or read the attached document descriging how BTraced works with Snevl Latitude. For more information about FollowMee, see the FollowMee site (http://www.followmee.com). Note: FollowMee now only supports a subscription Web Service API, and v2.7 is required to interface to that service. For information about Backitude, see the Google Play Store.
Several other data items can be kept in device strings for use in HSTouch. These include date/time of last update, latitude, longitude, position (a composite of street address, city, and state/province), GPS accuracy, and a few others. BTraced also reports a few other fields (e.g. altitude and phone battery status) which can also be put into devices.
A simple capability to stream semi-realtime data from Snevl Latitude into Google Earth.
If you are upgrading, install everything from the attached ZIP except the data directory. Follow the instructions (in the docs directory) and your existing data should be preserved while upgrading your database, the web pages, and the main script. Instructions for setting up the for use with the specific apps are accessed via the FollowMee or Btraced/Backitude tabs of the web page.
NOTE: If you are upgrading, you will need to manually run the script once before attempting to bring up the web page. The web page expects the new database schema, and the script will automatically upgrade the database. (See the README)
The changes since the previous generation version, v1.x are:
Significant restructure of the database, which had been keyed around the Google Latitude "badge" ID. This change was necessary to support BTraced.
Added a new ASPX page that is used by BTraced to send location information to your HS Server.
Restructured the tabs of the main web page to include "People", "Latitude", and "Btraced/Backitude" where you can define people to be tracked, where to get the tracking information, and what devices to create and populate for each person.
Incorporated more error prevention / handling in several places (see the change log file for specifics)
See the bottom of this thread or the discussion thread for changes since v2.0.
Attached are the ZIP of the files to install, as well as a document describing how Btraced works (in case you want to understand it better before moving to v2).
The first message of this thread has been updated with version 2.4 of Snevl Latitude. The main changes in this version include:
With the discontinuation of Google Latitude (effective today, 9-Aug-2013) removed references to Google Latitude.
Added support for the FollowMee phone app, available for most phones.
Added a "Last Source" field to the track history table. Currently this will display either a "B" (for Btraced) or "F" (for FollowMee) to indicate what source provided the most recent update.
Added a sample capability to stream data from Snevl Latitude into Google Earth.
Be sure to follow the instructions, and if upgrading please run the script one time before attempting to bring up the web page. As always, please post any comments or issues in the discussion thread (here).
Gogs discovered that I had left some experimental stuff in the ASPX web page, and it breaks when trying to update the Btraced/Backitude table. The replacement for the main web page is here. No other changes. My apologies.
The first message of this thread has been updated with v2.7 of Snevl Latitude. The only change in this version is to support the new subscription-based Web Service API for FollowMee. No other changes were made.
If you are upgrading from v2.6:
Only the main script (SnevlLatitude.vb) and the main web page (SnevlLatitude.aspx) have changed. No other files need to be copied over from the ZIP.
Before upgrading, disable the periodic event that runs SnevlLatitude.vb.
v2.7 will upgrade the schema of the database from v9 to v10. While this should go smoothly, I'd recommend making a backup of the database (Data/SnevlLatitude/SnevlLatitude.mdb) before doing the upgrade.
Copy over the two files mentioned in the first bullet.
Manually run the SnevlLatitude.vb script, via the now disabled event. Watch the Homeseer log. You should see messages that the database has been upgraded.
Now bring up the Snevl Latitude web page (SnevlLatitude.aspx) and click on the FollowMee tab. Follow the instructions on the bottom of the page to fill in the fields for the new API.
Re-enable the periodic event that runs SnevlLatitude.vb
If you have any issues or questions, post them in the discussion thread here.