@Dave_Thomas thank you so much for this. This was a million times easier to set up and work with than “Life360 and MQTT”. These are the steps I took to get this setup and running.
- SSH into my openhabianpi using putty. I created a new script
sudo nano /etc/openhab2/scripts/life360_presence.sh - Paste in @Dave_Thomas’s script from above with some minor changes.
2.1 change all occurrences ofggreptogrepthere are two
2.2 change the IP addresshttp://192.168.0.120:8080/gpstracker/gpslogger >/dev/nulltohttp://127.0.0.1:8080/gpstracker/gpslogger >/dev/null - Add execute permissions to the script
sudo chmod +x /etc/openhab2/scripts/life360_presence.sh
3.1 You can test the script/etc/openhab2/scripts/life360_presence.sh - Now we want to run the script on a timer. I set mine to run once a minute.
4.1 Open crontabcrontab -eand add the line*/1 * * * * /etc/openhab2/scripts/life360_presence.sh >/dev/null 2>&1. Then exit and save.
4.2 Restart crontabservice cron reload - Go into the paper UI and install the “GPSTracker Binding”
- Once the binding is installed you should automatically see each member of your family circle from life360 (They will show as GPS Tracker initials) appear in your inbox.
- Now you can work with this data the same as you would with the standard “GPSTracker Binding”
Thank you again @Dave_Thomas I have you give you all the credit for getting this working so easily for me.