Yes I checked that first - all locations were there.
Strangely it’s working again. When I posted last night, the tiles were just blank and not loading the map inside them. This morning everything is working as it should so I’m not sure where the issue was.
In theory, you could make an API call and retrieve the current status. There’s not a documented way to get events from their API though, but perhaps it could be used to query for the status of a device (based off another event).
Alternatively, if you need something event driven, I’m not sure if they have an IFTTT integration that could be used to web hook events over to SharpTools.
I have been using your Live360 Map tile on Fully Kiosk everyday. Today, it seems it’s broken for all Android and Chrome platforms it can no longer show where anyone is. The only thing we see is just a map of the entire U.S. I tried on all Samsung tablets and Amazon Fire HD, and all showing just the US map. MacOS Safari doesn’t work either. It !looks like OpenStreet Map changed something today or last night.
However, all Apple iOS Safari do NOT have this problem. How can we fix the problem on Android or Fully Kiosk?
Does it center around this point? I’ve found that occasionally the Life360 API gets a bit wonky. Sometimes when the issue happens, I can go through the original authorization link from the first post and the various test commands there don’t work either.
If you’re on a computer, you could even try opening the Console in the browser’s developer tools and sometimes you’ll see the related error message (eg. Cross Origin issues).
Yes, I suspect it could. I just worked with @James to get the code transferred into our main SharpTools organization on GitHub and will try the tweaks out and let you know.
I have posted over in hubitat to see how this iframe can be added to sharptools, and am awaiting a reply. Could you possibly assist? His device works ace, I just need to have this in sharptools instead of hubitat’s default ui.
I can read the lat/long from virtually anywhere. The device created by gomce happens hhas some clever code which then takes this lat/long, creates an frame with the ability to set the zoom level on a Google map.
If I were using the default hubitat UI, I could have this device on it showing the map section in my image above. When you click the map, it open fullscreen in Google maps itself. You can update the frame location/image at any time via webcore or whatever.
If I could simply add this to sharptools, then job done.
I can’t. It only shows a bit of html code or whatever.
The reason it to have a map showing family location.
I think the Life360 map custom tile was potentially OK, but instead of taking lat and long, it asks for access tokens etc. Not relevant now, unfortunately
While the original Hubitat Map Custom Tile was designed around a Life360 driver, it should work with any driver which reports a latitude and longitude attribute.
You can use the Hubitat HTML Attribute Custom Tile to display attributes that stuff HTML into an attribute. The linked thread explains the what and why.
It refreshes every 5 minutes. It’s the very last line with the setTimeout() call if you want to adjust it, but I would caution you not to adjust it too low since it’s effectively polling the Maker API. (5 minutes * 60 seconds * 1000 millis = 300,000)
In theory, the custom tile code could be adjusted to have some sort of overlay on it that you could click. I’m heads down on some larger projects at the moment, so I don’t have the spare cycles available but it’s all open source if someone wants to take a crack at it.
Edit: I figured I should probably also clarify the two approaches again too.
Hubitat Map Tile - this is a custom tile that directly renders a map in a tile and grabs the latitude/longitude values from a device and maps them
It does not use the iframe attribute from the gomce62.web thread you mentioned, just the lat/long
HTML Attribute Custom Tile - this takes an attribute from a device which was stuffed with HTML (an unofficial ‘hack’ that some community drivers use) and renders that attribute in a sandbox
This can use the iframe attribute from the gomce62.web thread you mentioned, so any zoom levels or hyperlink features would be retained, but it hasn’t specifically been tested with that driver.
It refreshes every 5 minutes. It’s the very last line with the setTimeout() call if you want to adjust it, but I would caution you not to adjust it too low since it’s effectively polling the Maker API. (5 minutes * 60 seconds * 1000 millis = 300,000)
can this be updated at will via say, a webcore command?
Not as it’s currently designed. The Custom Tile is a bit of code that runs directly within your browser. So in this case, that 5 minute timer is running directly in your browser and you can’t really ‘send’ an update to it.
There’s a feature request to make Custom Tiles have direct access to Things which would make it so the latitude / longitude attribute updates would be realtime rather than relying on polling the Maker API within the Custom Tile. Personally, it’s a feature I would love to implement, but it hasn’t quite picked up enough votes from the community yet.
Changing the zoom level might seem a bit more intimidating than it actually is. I’m pretty confident you should be able to tweak the polling interval and zoom level. Feel free to post in the other thread for the Hubitat Map Tile if you need help with that.
Have you tried the HTML Attribute Custom Tile approach? That would use the existing zoom and clicking features of the driver, but also relies on the polling.
Hello - Quick question - - - Am I on the only one who’s having issues with this Life360 integration? I intermittently see the “failed to get circle” error multiple times per day. See the screenshot below. I’ve visited the Life360 link on the 1st post of this thread to try to reauthorize a token but it the authorize button doesn’t allow do anything when clicked (also shown below)
No you’re not. That integration was not an official. Life360 made changes to the API that is preventing us from using it. I am currently building a custom tile that will mimic this, however it will require the use of an Android app called Tasker to transmit the location data.