Find my iDevices!

Posted on
Fri Jul 01, 2011 6:55 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

five337 wrote:
Same here.. I get this in the logs:


WebServer Displaying Find My iDevices Web Page
WebServer internal server error "http://192.168.15.XXXXXX/Find-My-iDevices/" from 192.168.15.XXX
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 536: ordinal not in range(128)


I think I found the root of the issue, for some reason the Cheetah templating isn't handling non-ascii characters. As a temporary work around, I am going to be filtering the name into something that works in ascii space...

I'll be pushing a test version to the Beta testors later today...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Jul 06, 2011 8:10 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices! v0.95 general release

http://dl.dropbox.com/u/241415/Find%20M ... elease.zip

What is Find my iDevices

Find My iDevices, is a Indigo plugin that will use information from Find My iPhone (via Mobile Me, and/or iCloud)
to locate your iDevice (iPhone, iPod Touch via Wifi, iPad, etc). If the device is registered with MobileMe, then it
will be available for Find My iDevice.

You can also designate "Zones", that will be highlighted on a Google Map. So for example, you can indicate
where your Home, Work, etc, is on the map.

Find My iDevice requires an active Internet connection for the Google Map Data, and MobileMe location data.

Installation

1) Open the "Add to Plugin Directory" folder, and take the Find-my-idevice.indigoPlugin and place it into

/Library/Application Support/Perceptive Automation/Indigo 5/Plugins

2) Open the "Add to IWS Plugin Directory" folder, and copy the "find-my-idevice" folder, and place it into:

/Plugins/Library/Application Support/Perceptive Automation/Indigo 5/IndigoWebServer/Plugins

4) Restart the Indigo 5 Server

5) After the Indigo server restarts, it will immediately open a dialog window,
asking you to the set the default settings for the find-my-iDevice plugin.

a) Please ensure that you add the MobileMe account information for the iDevices you wish to monitor.
b) Place the Longitude & Latitude that you want the map to center on.

You can use this web page to generate the Longitude & Latitude from your address.

http://stevemorse.org/jcal/latlon.php

If you are upgrading from previous version of Find My iDevices, please go into any "Find My iDevices" device
records, and check your settings. Please make sure to save the device, since there are new fields in v0.95,
and if you do not save the device, those fields will not contain valid data.

Basic Usage:

1) Open a web browser window, and go to your Indigo Web Server.

You will see a entry at the bottom:

Find My iDevices Displays the MobileMe Location Data for your iDevices

If you click on that link, the find-my-idevice web page will open, and
display the locations of all known iDevices. Of course, location services need to be active, and
the device needs to be on the internet…

Advanced Configuration:

1) You can capture the state of the MobileMe devices, by creating a Indigo device to store the MobileMe information.
⁃ Click on the Devices list
⁃ Click on New...
⁃ Add a descriptive test in the Name field (eg. Elise's iPhone)
⁃ Optional - Add a description to the device
⁃ Change the Type to Plugin
⁃ Change the Plugin to Find My iDevices
⁃ Change the Model to Find My iDevices
⁃ In the Configure Find My iDevice dialog, choose the iDevice from the Popup list

When Find My iDevice polls MobileMe, this device's states will be updated with the following information:

⁃ GPS Accuracy
⁃ Battery Status ( 1.00 is fully charged? 0.0 is fully discharged?)
⁃ Device Class (eg. iPad, iPod Touch, etc)
⁃ Device Model (eg. FirstGen, SecondGen, etc)
⁃ Device status
⁃ DistanceAway from Home Latitude & Longitude
⁃ Last Updated time/date (from MobileMe).
⁃ Current Latitude
⁃ Current Longitude
⁃ MobileMe Account used to gather the data

Now, when the Timed MobileMe refresh occurs, those devices will be updated at the same time.  This allows
other plugins, or programs to get the data from the device states.

2) You can setup a different MobileMe accounts for specific device. To turn on a different set of
MobileMe credentials for a device, follow these steps.

⁃ Make a new device.  Choose Plugin, and choose "Find My iDevices!".  
⁃ Edit the Device Settings
⁃ Choose "Use an alternative MobileMe Login for this iDevice".
⁃ Enter in the Username & Password.
⁃ Save the Configuration
⁃ Edit the Device Settings
⁃ Choose the iDevice for the alternative MobileMe account.

3) To step up a "Fence" (Rectangle Zone on the Google Map):

⁃ Make a new device.  Choose Plugin, and choose "Rectangle Fence Zone".  
⁃ Edit the Device Settings
⁃ fill in the Latt / Long for the 4 pairs of coordinates
⁃ Save the configuration

Support:

For issues or questions, please contact Benjamin@schollnick.net.

Donations:

To help fund the continued development of this plugin... Please consider donating.

At this time my software is free, including the Indigo Web Plugin’s and attachment scripts…

But the cost to make the plugins and other software is not cheap. Not to mention the additional cost of
keeping current in the Home Automation field, and research, etc…

Some of the users of my software has asked about making Donations… So, here’s the plan:

If you want your donation to be payment for a software package, please write it down in the donation’s
comments. Otherwise the donation will go towards paying for Web Hosting. Anyone that indicates that
they wish to be credited for a donation, will be listed as a donor, either on the website and/or
software plugin (if the user was donating to a specific plugin).

To Donate, please go to http://www.schollnick.net/wordpress/about/donations/ and click on the
donate icon.

--- Changes ----

# Changes on the Drawingboard
#
# TBD
#
# Changes
# v0.95 General Release
#
# v0.95 Beta 5 - Release Candidate for General Public
# - Added Trigger Action "Increase Sleep Interval (+1)", this will change the
# refresh rate up one step (eg. 15 Minutes to 30 Minutes to 1 Hour, etc)
# - Added Trigger Action "Decrease Sleep Interval (+1)", this will change the
# refresh rate up one step (eg. 1 Hour to 30 Minutes to 15 Minutes to 1 Hour, etc)
# - Added Device Option "Disable MobileMe Locating for this device.". If set this
# will disable MobileMe tracking for this device.
#
# v0.95 - Beta 3.5 / 4
# - Last minute typo found after Beta 3 release (Typo in pygmaps.py)
# - Worked around yet another issue with UTF-8 / ASCII conversion.
#
# v0.95 - Third Beta
# - Added Multiple MobileMe Account Support
# - The Find My iDevice Devices now offer an Alternative MobileMe Checkbox
# Selecting the Alternative MobileMe Checkbox will allow you to designate
# a different MobileMe account for that one device.
# - The Find My iDevice Map now shows the account for the map items
# - Fixed UTF encoding for the MobileMe Device IDs in __init__ for FindmyiPhone
#
# Line 238 - device.id = json_device['id']
# changed to
# device.id = json_device['id'].encode ("utf-8")
#
# To resolve ASCII issues with the ID not always fitting into ASCII name space.
# - Changed Device Naming to force it into ASCII name space. The UTF-8 encoding appears
# to be having an issue with the CheetahTemplate.
# - Added "Rectangle Fence Zone" device. It will take 4 points of Latt & Long, and
# produce a rectangle marker, using the latt & long pairs as the corners of the rectangle.
# - This is a cosmetic marker on the map.
# - Removed some error checking, and cleaned up some of the code.
# - Added more debugging code (if Debugging is turned on)
#
# v0.90 - Added distance calculations back to the web display
# - Cleaned up the display of the following variables
# - Battery Level, truncated to 5 places
# - distanceaway, is truncated to 6 places
# - Added, displaylatitude & displaylongitude, which are both truncated to 9 places
# - Added timestamp to template
# - Added Latitude & Longitude map center announcement to template
# - Added FindMyiDevice "devices"
# - You can now define iDevices in your Indigo Device List.
# - When the MobileMe scan occurs, the device will be updated with updated Status's
# - This includes:
# * Device Class
# * Device Model
# * Device Status
# * Distance Away from the defined "Map Center" / Home
# * Last Updated Time Stamp
# * Latitude & Longitude (Full Precision)
# - This information is available to other devices / plugins, etc.
#
# v0.85 - Second Public Beta
# - Fixed naming from "Find my iDevice" to "Find my iDevices" (Should be consistent now)
# - Added better error checking for valid values in configuration
# - Fixed issue with Google Maps only being valid for 127.0.0.1:*
# - Fixed issue with Plugin not reloading preferences after preferences window was closed.
#
# v0.75 - First Public Beta Release
# - Renamed from Find My iPhone to Find My iDevices
# - Added multiple device support
# - Created an expanded Google Maps Page
# - Added timed refreshes for MobileMe Find my iPhone location data
#
# Upcoming Enhancements
#
# These are going to be added once IWS is added to the v5 plugins.
# - Remote Lockout
# - Send Message to iDevice
# - Remote Wipe
# - Finish adding Status support

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Jul 24, 2011 3:23 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Find my iDevices!

Downloaded the plugin and entered lat/lon, mobileme account and PW. I live in Georgia, but this is the info I got when I logged onto my GoPrism server page. Looks like Rochester NY. To protect the innocent I've only grabbed a portion of the map and device content.

Does a setting need to be changed by the user to get it to latch onto the proper account?
Attachments
Find my iDevices screen shot 110723.png
Find my iDevices screen shot 110723.png (167.85 KiB) Viewed 6070 times

Posted on
Sun Jul 24, 2011 4:31 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

hamw wrote:
Downloaded the plugin and entered lat/lon, mobileme account and PW. I live in Georgia, but this is the info I got when I logged onto my GoPrism server page. Looks like Rochester NY. To protect the innocent I've only grabbed a portion of the map and device content.

Does a setting need to be changed by the user to get it to latch onto the proper account?


I forgot to remove the pickled data file.. It needs to run a cycle before your data will be updated....

Check the log and see that it's actually run a update...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sun Jul 24, 2011 8:19 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

hamw wrote:
Downloaded the plugin and entered lat/lon, mobileme account and PW. I live in Georgia, but this is the info I got when I logged onto my GoPrism server page. Looks like Rochester NY. To protect the innocent I've only grabbed a portion of the map and device content.

Does a setting need to be changed by the user to get it to latch onto the proper account?


I just added this to the Readme file...

Troubleshooting:

1) If you are seeing a different location in the web browser, especially one centered in the Rochester, ny area… Blame me. Go into the IWS directory, and remove the "Pickled_Data" file. That file is used to exchange data between the Indigo Plugin, and the IWS plugin. I don't always remember to remove it, when I package up the plugin for distribution.

The file is regenerated with the MobileMe information every time the plugin is run, so you can just do a forced update,
or reload the plugin, to force the Pickled_Data file to be updated with your devices information.

If after doing this, you are still not seeing updated information reflecting your devices. Please send me the Indigo Log
Entries showing a Find My iDevices! update. It is possible that you may have found a bug, or issue that is preventing
a successful MobileMe poll.

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Jul 25, 2011 8:56 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Find my iDevices!

Hi Ben,

Tried again tonight. Got the following:

iPhone is marked as disabled. Skipping iDevice...

I've installed the latest version of Find My iPhone from the app store and to the best of my knowledge is is enabled. I have the proper username/pw in the iDevices config window. Have not seen anywhere a spot to disable the iphone. I also set up the alternate login when I created a device for my iDevices iPhone. Same result.

Any thoughts?

Posted on
Mon Jul 25, 2011 9:46 pm
five337 offline
Posts: 52
Joined: Jun 21, 2010

Re: Find my iDevices!

Are you on iOS 5 ?

Everytime I update to a new beta, the setting gets disabled.

Go to Settings -> Location Services and make sure they are ON.

Posted on
Tue Jul 26, 2011 3:19 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

hamw wrote:
Hi Ben,

Tried again tonight. Got the following:

iPhone is marked as disabled. Skipping iDevice...

I've installed the latest version of Find My iPhone from the app store and to the best of my knowledge is is enabled. I have the proper username/pw in the iDevices config window. Have not seen anywhere a spot to disable the iphone. I also set up the alternate login when I created a device for my iDevices iPhone. Same result.


I just tested, and I don't see any problems with my iDevices.

Have you checked the settings for your iDevices in Indigo? If you created any devices, please go into the device, and then save them (don't hit cancel). One of the beta testers did have an issue where they had been running an earlier version, and then upgraded, and had a similar problem. He needed to go into each Find My iDevice "Device record", and resave them since there was new fields for each device.

Each Device Record should have a "Disable MobileMe Locating for this Device", as the first field in the record. If not, then go back to the Device Screen and Change the Plugin to a different device (eg an ApplianceLinc), and then change it back to the Find My iDevice. This will force Indigo to reload the plugin data.

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Thu Jul 28, 2011 6:53 am
pegoto offline
Posts: 27
Joined: Jul 21, 2011

Re: Find my iDevices!

My setup works like a charm. I was able to add my two iDevices and create a geo fence which I can see on the map. For this excellent work you have done I have donated to your cause.

I do have a question, how or what do I have to configure to alert me when a geo fence area has been left? I tried triggers but I do not see any options for it in there.

Posted on
Thu Jul 28, 2011 8:35 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

pegoto wrote:
My setup works like a charm. I was able to add my two iDevices and create a geo fence which I can see on the map. For this excellent work you have done I have donated to your cause.

I do have a question, how or what do I have to configure to alert me when a geo fence area has been left? I tried triggers but I do not see any options for it in there.


Pegoto,

I believe I have a prototype for checking if a device is in a geofence, but I need to test it.... I will be releasing a update later this week, which includes shortcuts to the Geofences...

Thank you for the Donation... I greatly appreciate it.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Aug 03, 2011 4:11 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

pegoto wrote:
My setup works like a charm. I was able to add my two iDevices and create a geo fence which I can see on the map. For this excellent work you have done I have donated to your cause.

I do have a question, how or what do I have to configure to alert me when a geo fence area has been left? I tried triggers but I do not see any options for it in there.


If you would like to beta test, I have just sent out a version of Find My iDevice that allows you to check what Fenced area the the device is in...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed Aug 03, 2011 7:33 am
pegoto offline
Posts: 27
Joined: Jul 21, 2011

Re: Find my iDevices!

Sure, I am looking forward to testing it! Where did you send it to?

Posted on
Wed Aug 03, 2011 9:19 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

pegoto wrote:
Sure, I am looking forward to testing it! Where did you send it to?


Contact me directly at Benjamin AT schollnick DOT net...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Thu Aug 04, 2011 5:17 pm
artpics offline
Posts: 232
Joined: Feb 24, 2009
Location: Calabasas CA

Re: Find my iDevices!

i am getting this but i have put in my GPS coordinates. the tick box for disabled is not ticked. When i go to the map it is centered on my location.

Aug 4, 2011 4:10:45 PM
Find My IDevices Retrieving location data
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices Robert Taylor’s iPhone is marked as disabled. Skipping iDevice...
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices Finished retrieving location data

Posted on
Thu Aug 04, 2011 8:06 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Find my iDevices!

artpics wrote:
i am getting this but i have put in my GPS coordinates. the tick box for disabled is not ticked. When i go to the map it is centered on my location.

Aug 4, 2011 4:10:45 PM
Find My IDevices Retrieving location data
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices Robert Taylor’s iPhone is marked as disabled. Skipping iDevice...
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices No Location Attribute Found, skipping Robert Taylor’s iPhone
Find My IDevices Finished retrieving location data


Did you upgrade from a previous version of Find my iDevices?

If so, go into the "Robert Taylor's iPhone" device, Edit the device, and Click on the Save button.

If you have upgraded, it's possible that the data that is stored for the disabled field is invalid....

If that doesn't solve it, then go into the device, and set it to disabled. Save the device, and then re-edit the device to turn off the disabled flag...

If those two steps don't work, then I'll want to test the latest beta on your system, and see if that solves the problem...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Who is online

Users browsing this forum: No registered users and 4 guests