Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. (gelöst) google-sharedlocations Alternative?

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    (gelöst) google-sharedlocations Alternative?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Garfonso
      Garfonso Developer @dslraser last edited by

      @dslraser
      Ich habe einen Pullrequest mit meinen aktuellen Änderungen zum original Adapter gemacht. Wenn der Entwickler noch aktiv ist (im Repository und auch hier im Forum gab es von ihm > 1 Jahr keine Aktivität mehr, könnte also "nein" heißen), dann könnte er den Pullrequest annehmen und die Änderungen würden da einfließen. Bis dahin kann man den Adapter aus Github über den Link installieren.

      @Jan1 said in (gelöst) google-sharedlocations Alternative?:

      @dslraser
      Eigentlich ist es ja recht einfach, wobei das Einbauen wohl nicht so einfach sein dürfte. Könnte aber so ähnlich wie beim Alexa Adapter laufen, dass man eine URL im Log hat, die man aufruft und dann der Cookie automatisch geladen wird.

      Das ist mein Ziel. Hängt ein wenig ab von

      • wie schnell ich kapiere, was der alexa2 Adapter da macht
      • wie viel Zeit ich finde das in den Adapter einzubauen und wie stark es an Google angepasst werden muss
      • ob der ursprüngliche Entwickler sich meldet (wenn nicht, ist die Überlegung einen neuen Adapter zu machen um die Verteilung des Adapters mittelfristig über NPM und damit latest und stable zu erreichen)

      Die Geschichte im Alexa2 Adapter ist schon sehr komfortabel, da hab ich mich schon monatelang keine Sorgen mehr gemacht... keine Ahnung, wann ich mich da das letzte mal einloggen musste. Ist aber sehr stabil, würde ich sagen. Das wäre hier auch das Ziel (was mit Cookie-kopieren vermutlich nicht erledigt ist -> wobei es in HomeAssitant genauso gemacht wird und da zumindest keine große Hektik ist das zu ändern).

      J 1 Reply Last reply Reply Quote 2
      • J
        Jan1 @Garfonso last edited by

        @Garfonso
        hört sich auf alle Fälle mal danach, dass es gut wird 😉
        Jetzt schon mal danke dafür, dass es so wieder funktioniert und Deine Zeit und Mühe.

        1 Reply Last reply Reply Quote 0
        • J
          Jan1 last edited by

          Nu ist er wieder gelb und im Log steht ne Menge Zeug drin:

          google-sharedlocations.0	2020-06-01 17:48:10.930	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:48:10.930	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:48:10.930	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head><meta http-equiv="content-type" content="text/html; charset=u
          google-sharedlocations.0	2020-06-01 17:47:41.011	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:47:41.011	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:47:41.009	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head><meta http-equiv="content-type" content="text/html; charset=u
          google-sharedlocations.0	2020-06-01 17:47:10.985	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:47:10.984	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:47:10.983	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head><meta http-equiv="content-type" content="text/html; charset=u
          google-sharedlocations.0	2020-06-01 17:46:41.138	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:46:41.138	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:46:41.137	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head><meta http-equiv="content-type" content="text/html; charset=u
          google-sharedlocations.0	2020-06-01 17:46:11.032	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:46:11.032	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	</html>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	</body>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	</div>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	</div>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:46:11Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	</div>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	</form>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<input type='hidden' name='q' value='EgRNvvznGMLF1PYFIhkA8aeDS3VtHsd2Lmq4Kja-NxC-zmKKHMXqMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="wGLh6UB6Owq-Ovxtxwd0BgKMvZ31AzuhOI-UKRDUCbx2QKG3ueY9JpUScx_5xHbiZ
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	<html>
          google-sharedlocations.0	2020-06-01 17:46:11.031	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:45:40.966	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:45:40.966	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	</html>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	</body>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	</div>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	</div>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:45:40Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	</div>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	</form>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<input type='hidden' name='q' value='EgRNvvznGKTF1PYFIhkA8aeDS9hwJxjCRFoFlgL3Iw9dvbqKbZxXMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="9YaNjxy42ivClakZe2aV_8Bp2U7wagxkQWpQ3IEcg7n6BD5FiyWcwd61RnohRb6oA
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	<html>
          google-sharedlocations.0	2020-06-01 17:45:40.965	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:45:11.145	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:45:11.145	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	</html>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	</body>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	</div>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	</div>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:45:11Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	</div>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	</form>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<input type='hidden' name='q' value='EgRNvvznGIbF1PYFIhkA8aeDSwAhdyZYxj4nRjWaMjbopiU2ilMwMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="oYWRnbmJxCaQcBd5J_pWlqswvxhmWcsrHdP5dP9NukBevCaRCZIaQf_KUM7dt2i7x
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	<html>
          google-sharedlocations.0	2020-06-01 17:45:11.144	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:44:41.107	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:44:41.107	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	</html>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	</body>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	</div>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	</div>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:44:41Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	</div>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	</form>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<input type='hidden' name='q' value='EgRNvvznGOjE1PYFIhkA8aeDS15DPvTyipy2NUNAFRd2Ycr_I2DnMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="kkf-ZhYcbmZW04hZg2q-HhKioVepA8elLmvCUTpvJoEABr9pJy9WjypN-SL9udhvp
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	<html>
          google-sharedlocations.0	2020-06-01 17:44:41.106	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:44:10.946	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:44:10.945	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	</html>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	</body>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	</div>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	</div>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:44:10Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	</div>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	</form>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<input type='hidden' name='q' value='EgRNvvznGMrE1PYFIhkA8aeDS2ZbLAeFO8cmuDRr9CtBeW7ydl-NMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="g89NGF3AGcMbU7Za3HEn-62hpEYIdWbRUGMAOQALdrTppCsBQxYlW2rnJ8GYnoWYa
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	<html>
          google-sharedlocations.0	2020-06-01 17:44:10.944	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:43:41.132	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:43:41.131	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	</html>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	</body>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	</div>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	</div>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:43:41Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	</div>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	</form>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<input type='hidden' name='q' value='EgRNvvznGKzE1PYFIhkA8aeDS4yjebmoly-1F_29AYxISMGXFyrGMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="dKN7g0S4nwUPGfOoKk6G2Lm_g20c0Ptk1a-zJ7nG7984UdQr7iP59gTZJooi9qS8w
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	<html>
          google-sharedlocations.0	2020-06-01 17:43:41.130	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:43:10.965	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:43:10.965	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	</html>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	</body>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	</div>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	</div>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:43:10Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	</div>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	</form>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<input type='hidden' name='q' value='EgRNvvznGI7E1PYFIhkA8aeDSwjtmPz7erQldmO9AHghEoXtBFX7MgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="04mnkhCQMIqF_GP6oLAFgyKCtMPBsKgCgCUItL5AW-AEJEbyINahjbZHxmw6HElsp
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	<html>
          google-sharedlocations.0	2020-06-01 17:43:10.964	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:42:41.143	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:42:41.142	error	(2318289) An error occurred during getSharedLocation!
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	</html>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	</body>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	</div>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	</div>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	IP address: 77.190.252.231<br>Time: 2020-06-01T15:42:41Z<br>URL: https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;pb=<br>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	</div>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the <a href="//www.google.com/policies/terms/">Terms of Service</a>. T
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<div id="infoDiv" style="display:none; background-color:#eee; padding:10px; margin:0 0 15px 0; line-height:1.4em;">
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	Our systems have detected unusual traffic from your computer network. This page checks to see if it&#39;s really you sending the requests, and not a robot. <a href="#" onclick="document.getElementBy
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<b>About this page</b><br><br>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<div style="font-size:13px;">
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;">
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	</form>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<input type='hidden' name='q' value='EgRNvvznGPDD1PYFIhkA8aeDS9Pwp5WBBXtcz0mY4t25fYetmd_wMgFy'><input type="hidden" name="continue" value="https://www.google.com/maps/preview/locationsharing/read?auth
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<div id="recaptcha" class="g-recaptcha" data-sitekey="6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b" data-callback="submitCallback" data-s="t2t_EQl-4JXp-n8bmN8lbbatRF1c_bTLgJ2Ad79c9lk_lWZrULWMkjmfGygwtUyTQ
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<script>var submitCallback = function(response) {document.getElementById('captcha-form').submit();};</script>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<form id="captcha-form" action="index" method="post">
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<hr noshade size="1" style="color:#ccc; background-color:#ccc;"><br>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<div style="max-width:400px;">
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<body style="font-family: arial, sans-serif; background-color: #fff; color: #000; padding:20px; font-size:18px;" onload="e=document.getElementById('captcha');if(e){e.focus();}">
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content="initial-scale=1"><title>https://www.google.com/maps/preview/locationsharing/read?authuser=0&amp;
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	<html>
          google-sharedlocations.0	2020-06-01 17:42:41.141	error	(2318289) Failed getting locations: 429 - Too Many Requests - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          google-sharedlocations.0	2020-06-01 17:42:10.954	error	(2318289) An error occurred during polling the locations: undefined
          google-sharedlocations.0	2020-06-01 17:42:10.954	error	(2318289) An error occurred during getSharedLocation!
          
          Garfonso 1 Reply Last reply Reply Quote 0
          • Garfonso
            Garfonso Developer @Jan1 last edited by

            @Jan1
            "Too may requests" - interessant. Auf was hast du das poll Interval gestellt? Bei mir geht es schon den ganzen Tag.

            J 1 Reply Last reply Reply Quote 0
            • J
              Jan1 @Garfonso last edited by

              @Garfonso
              30 Sekunden, was wohl default ist, da ich mich nicht erinnern könnte das mal geändert zu haben.

              Garfonso 1 Reply Last reply Reply Quote 0
              • Garfonso
                Garfonso Developer @Jan1 last edited by

                @Jan1
                Hab's gestern erst installiert, da war default 600 Sekunden.

                Bei mir geht es mit 60 Sekunden jetzt immer noch. Ich bau mal ein, dass es nicht niedriger sein darf. Oder?

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jan1 @Garfonso last edited by

                  @Garfonso
                  Dann hat er wohl die 30 von der alten Installation übernommen, was ich wohl vor langer Zeit mal eingestellt hatte. Ich teste morgen mal die 60 Sekunden.

                  Stephan Schleich 1 Reply Last reply Reply Quote 0
                  • Stephan Schleich
                    Stephan Schleich @Jan1 last edited by Stephan Schleich

                    Wie visualisiert ihr das dann, Grafisch via iobroker.vis-map oder nur als Text?
                    Grafisch mit Route wäre geil, gab den Adapter noch nicht probiert

                    Außerdem muss Google Maps dann immer im Hintergrund laufen oder?

                    J Garfonso 2 Replies Last reply Reply Quote 0
                    • J
                      Jan1 @Stephan Schleich last edited by

                      @Stephan-Schleich
                      Ich glaube Du hast den Adapter nicht verstanden.

                      1 Reply Last reply Reply Quote 0
                      • Garfonso
                        Garfonso Developer @Stephan Schleich last edited by

                        @Stephan-Schleich
                        Also Google Maps läuft auf deinem (Android) Smartphone im Hintergrund und schickt an Google deine Position (wenn man das entsprechend einschaltet). Da hat man dann auch eine "Zeitachse" in der App usw. und man kann seine Position teilen, auch auf unbegrenzte Zeit. Das macht man dann mit einem "iobroker" User.
                        Der Adapter loggt sich als dieser User bei Google Maps ein und zieht die Daten der geteilten Standorte runter.

                        Insofern laufen "im Hintergrund" auf deinem Handy eine App und halt die Google Server. 😉

                        Die states kann man mit History Speichern -> ist der Verlauf schonmal da. In Lovelace kann man einen Standortverlauf anzeigen, hab ich aber noch nicht hinbekommen... was es da sonst in ioBroker gibt, weiß ich aktuell gar nicht (beschäftige mich erst seit dem Wochenende ernsthaft mit Standort in ioBroker 😉 ). Aber die visualisierungsfragen sind eher unabhängig vom Adapter und vielleicht auch schon geklärt (?).

                        dslraser J David G. 3 Replies Last reply Reply Quote 1
                        • dslraser
                          dslraser Forum Testing Most Active @Garfonso last edited by

                          @Garfonso
                          man kann nicht nur den Standort zu Hause definieren, sondern auch zum Beispiel den von der Arbeit/Schule und eben was man noch so möchte. (Über die Koordinaten/Umkreis)
                          Genau so ist es dann eben möglich ab zu fragen wo Jemand (bzw. das Handy) gerade ist, dann wird z.B. über Alexa die Anschrift angesagt.

                          J 1 Reply Last reply Reply Quote 1
                          • J
                            Jan1 @dslraser last edited by

                            @dslraser
                            Exakt das ist der Sinn des Adapter. Warum ich da noch visualisieren wollte erschließt sich mir nicht, denn das macht eh Google Maps schon perfekt. Oder gehts hier darum mal wieder was ins VIS zu packen das schön aussieht? Wenn ja, lässt sich da nicht auch einfach ne vorhandene Webseite darstellen?

                            1 Reply Last reply Reply Quote 0
                            • J
                              Jan1 @Garfonso last edited by Jan1

                              @Garfonso
                              So ganz sauber läuft das irgendwie nicht. Ich habe heute morgen mal den Cookie neu eingetragen und die poll Zeit auf 60 Sekunden geändert. Da wurde auch gleich mal der aktuelle Standort geladen und ich war zufrieden. Jetzt ne gute Stunde später ist der Adapter noch grün, keine Fehler im Log, aber es wurde nichts aktualisiert und somit stimmt auch der Standort nicht mehr.
                              Ein manuelles poll bewirkt auch keine Aktualisierung und ein Neustart des Adapter ändert auch nichts. Läuft das bei Dir?

                              Hab jetzt noch mal den Cookie neu geholt und eingetragen, was auch nicht mehr läuft. Wenn ich auf "Verbindung prüfen" im Adapter klicke, kommen diese Warnungen im Log:

                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	at processImmediate (internal/timers.js:456:21)
                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41)
                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5313:34)
                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	at Adapter.emit (events.js:315:20)
                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:110:29)
                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	at JSON.parse (<anonymous>)
                              google-sharedlocations.0	2020-06-02 10:11:02.009	warn	(3502686) SyntaxError: Unexpected token o in JSON at position 1
                              google-sharedlocations.0	2020-06-02 10:11:02.005	warn	(3502686) States system pmessage io.messagebox.system.adapter.google-sharedlocations.0 {"command":"checkConnection","message":{"cookie":"NID=204=uc3p1FbYt6Ycx-kgOZ7pJoWHK04blVkAwGYxyVP-*********
                              

                              Cookie hab ich mit Sternchen versehen.

                              Garfonso 1 Reply Last reply Reply Quote 0
                              • Garfonso
                                Garfonso Developer @Jan1 last edited by Garfonso

                                @Jan1
                                Ok, checkConnection ist kaputt gewesen, hab ich gefixt.

                                Grundsätzlich funktioniert es bei mir, hab eben extra mal geguckt, als ich weg war, wurde auch aktualisiert. Heute nachmittag ging es wohl auch, da waren beide Handys unterwegs (wobei da zwischendurch wegen der Wärme der Server abgestürzt ist, aber die letzten Daten in der Datenbank sahen "gut" aus im Sinne, wir waren noch weit weg 😉 ).

                                Ein Grund, dass es nicht updated könnte ja auch Stromspar-Funktionen auf dem Handy sein. Ich habe Google Maps da grundsätzlich von KI Optimierungen usw. ausgenommen, da ich den Standortverlauf sauber haben will. Ist aber nur ein "wild guess".

                                Ich habe mich ehrlich gesagt mit der inneren Mechanik des Adapters noch nicht so sehr auseinander gesetzt. Außer mit der Änderung beim Autorisieren habe ich auch nur ein paar Warnungen gefixt und sonst nichts geändert. (Habe jetzt mal reingeguckt, da wird im Grunde nur ein JSON geparst und in die richtigen Objekte und dann die richtigen States geschoben -> da kann eigentlich nicht wirklich was schief gehen, bzw. das müsste dann auch Exceptions geben).

                                Bezüglich des pollens kannst du mal das debug logging anmachen, da gibt er bei jedem Poll eine Rückmeldung, dass er was gemacht hat und welchen Result er von Google bekommen hat. Ich guck mal, ob er bei einem Fehler da auf Gelb schaltet oder nicht.

                                //Edit:
                                Ja, er setzt info.connection bei jedem Poll auf "true" wenn es geklappt hat bzw auf "false", wenn es nicht geklappt hat -> am Zeitstempel kann man da auch sehen, wann das letzte mal gepollt wurde und die Farbe der Instanz ändert sich damit auch von grün auf gelb bzw. auch von gelb auf grün, wenn es wieder gehen sollte.

                                //Edit 2:
                                Wobei ich natürlich nicht genau weiß, wie sich ein abgelaufener Cookie genau auswirkt, ggf. merkt er das beim pollen nicht, sondern kriegt nur keine Infos. Das muss ich nochmal untersuchen.

                                J 1 Reply Last reply Reply Quote 1
                                • J
                                  Jan1 @Garfonso last edited by Jan1

                                  @Garfonso
                                  Dann teste ich mal und zieh mir auch nen neuen Cookie.
                                  Wenn ich hier was poste, dass es nicht geht, dann ist das keine Kritik, sondern einfach nur die Info für Dich, dass bei mir ein Problem besteht und Du bei Zeit und Lust mal danach schauen kannst. Der Adapter läuft ja ab und zu mit Deiner Methode, nur eben bei mir leider nicht dauerhaft. An Handys liegt es nicht auf alle Fälle nicht, da die eine saubere Standortaufzeichnung haben, wenn ich mir das ansehe 😉

                                  Edit:
                                  läuft wieder, wenn ich den DP "poll" auslöse, werden die restlichen DP sofort aktualisiert (das lief gestern auch nicht mehr). Die "Verbindung prüfen" Funktion ist auch wieder funktionsfähig. Soweit sieht es schon wieder gut aus. Wenn was aussteigt poste ich es wieder.

                                  Hier mal das Logfile zu den Aktionen:

                                  google-sharedlocations.0	2020-06-03 07:46:03.590	debug	(766999) stateChange google-sharedlocations.0.info.connection {"val":true,"ack":true,"ts":1591163163551,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":159107602
                                  google-sharedlocations.0	2020-06-03 07:46:03.586	debug	(766999) stateChange google-sharedlocations.0.fence.2 {"val":true,"ack":true,"ts":1591163163551,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":1591021900977}
                                  google-sharedlocations.0	2020-06-03 07:46:03.583	debug	(766999) stateChange google-sharedlocations.0.fence.1 {"val":true,"ack":true,"ts":1591163163550,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":1591162995062}
                                  google-sharedlocations.0	2020-06-03 07:46:03.538	info	(766999) Checking fences.
                                  google-sharedlocations.0	2020-06-03 07:46:03.537	debug	(766999) Response: OK
                                  google-sharedlocations.0	2020-06-03 07:46:02.991	info	(766999) Polling locations.
                                  google-sharedlocations.0	2020-06-03 07:45:34.064	debug	(766999) system.adapter.admin.0: logging true
                                  google-sharedlocations.0	2020-06-03 07:45:31.362	debug	(766999) system.adapter.admin.0: logging false
                                  google-sharedlocations.0	2020-06-03 07:45:26.039	debug	(766999) sendTo "checkConnection" to system.adapter.admin.0 from system.adapter.google-sharedlocations.0: true
                                  google-sharedlocations.0	2020-06-03 07:45:26.037	debug	(766999) Response: OK
                                  google-sharedlocations.0	2020-06-03 07:45:34.064	debug	(766999) system.adapter.admin.0: logging true
                                  
                                  1 Reply Last reply Reply Quote 1
                                  • J
                                    Jan1 last edited by Jan1

                                    Ich versteh es einfach nicht. Jetzt aktualisiert er sich schon wieder nicht mehr:
                                    e4a9458b-cf02-4f80-834d-81ad6c78b44e-grafik.png
                                    die untere Zeile ist die poll Funktion und wie man sieht wurde um 8:41 gepollt und die andern DPs blieben einfach stehen.

                                    Das Log dazu:

                                    google-sharedlocations.0	2020-06-03 08:43:20.601	debug	(829881) system.adapter.admin.0: logging true
                                    google-sharedlocations.0	2020-06-03 08:42:51.546	debug	(829881) stateChange google-sharedlocations.0.info.connection {"val":true,"ack":true,"ts":1591166571540,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":15911662
                                    google-sharedlocations.0	2020-06-03 08:42:51.537	info	(829881) Checking fences.
                                    google-sharedlocations.0	2020-06-03 08:42:51.536	debug	(829881) Response: OK
                                    google-sharedlocations.0	2020-06-03 08:42:51.404	info	(829881) Polling locations.
                                    google-sharedlocations.0	2020-06-03 08:41:51.579	debug	(829881) stateChange google-sharedlocations.0.info.connection {"val":true,"ack":true,"ts":1591166511575,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":15911662
                                    google-sharedlocations.0	2020-06-03 08:41:51.571	info	(829881) Checking fences.
                                    google-sharedlocations.0	2020-06-03 08:41:51.570	debug	(829881) Response: OK
                                    google-sharedlocations.0	2020-06-03 08:41:51.404	info	(829881) Polling locations.
                                    google-sharedlocations.0	2020-06-03 08:41:10.596	debug	(829881) system.adapter.admin.0: logging false
                                    google-sharedlocations.0	2020-06-03 08:41:05.578	debug	(829881) stateChange google-sharedlocations.0.info.connection {"val":true,"ack":true,"ts":1591166465570,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":15911662
                                    google-sharedlocations.0	2020-06-03 08:41:05.566	info	(829881) Checking fences.
                                    google-sharedlocations.0	2020-06-03 08:41:05.565	debug	(829881) Response: OK
                                    google-sharedlocations.0	2020-06-03 08:41:05.443	debug	(829881) stateChange google-sharedlocations.0.trigger_poll {"val":false,"ack":false,"ts":1591166465438,"q":0,"from":"system.adapter.google-sharedlocations.0","user":"system.user.admin","lc":159116646
                                    google-sharedlocations.0	2020-06-03 08:41:05.437	debug	(829881) ack is not set!
                                    

                                    Adapter ist grün

                                    Was mir eben aufgefallen ist, die eingetragenen User sind nicht mehr da und deshalb wird auch nichts aktualisiert. Problem, der Adapter ist verbunden, kann aber keine User Auswählen.
                                    8340fb66-5bac-4862-8d31-b9ebcca64257-grafik.png

                                    Edit:
                                    Adapter neu installiert und läuft wieder, mal gespannt wie lange diesmal. Hab die poll time auf 300 gestellt, da 600 viel zu hoch ist um den Adapter sinnvoll nutzen zu können. Eigentlich lief der ja auch schon zuverlässig mit 30 🙂

                                    Edit2:
                                    Ich glaub ich habs, der Adapter läuft so lange, wie ich am PC auch bei Google mit meinem IOBroker Account angemeldet bin, sobald ich mich abmelde, wird nichts mehr aktualisiert.
                                    Ja das ist mein Problem. Eben noch mal frisch angemeldet und Cookie ersetzt, kann pollen so oft ich will, der Adapter aktualisiert jedes mal sofort alle DPs. Melde ich mich bei Google ab, ist auch sofort Schluss damit.

                                    Garfonso 1 Reply Last reply Reply Quote 0
                                    • Garfonso
                                      Garfonso Developer @Jan1 last edited by

                                      @Jan1 said in (gelöst) google-sharedlocations Alternative?:

                                      Ja das ist mein Problem. Eben noch mal frisch angemeldet und Cookie ersetzt, kann pollen so oft ich will, der Adapter aktualisiert jedes mal sofort alle DPs. Melde ich mich bei Google ab, ist auch sofort Schluss damit.

                                      Oh ja, das macht Sinn. Du hast ja das Cookie von der Session, wenn du die im Browser beendest, kann der Adapter sie nicht weiter nutzen.

                                      Das wird mit dem Proxy behoben werden (wird aber noch etwas dauern). Bis dahin ggf. einen "ungenutzten" Browser verwenden oder ein "Privates Fenster", da müsste man sich auch mit dem ioBroker-Account einloggen können und das Fenster einfach schließen, so dass man sich im Browser wieder mit dem eigenen Account einloggen kann (bzw. gar nicht ausloggen muss).

                                      Aber gut, dann weiß ich jetzt, dass da noch Fehlerbehandlung fehlt. (und dann weiß ich jetzt auch, wie ich den Fehler provozieren kann 🙂 )

                                      @Jan1 said in (gelöst) google-sharedlocations Alternative?:

                                      Wenn ich hier was poste, dass es nicht geht, dann ist das keine Kritik, sondern einfach nur die Info für Dich, dass bei mir ein Problem besteht und Du bei Zeit und Lust mal danach schauen kannst.

                                      Ne, sehe ich auch nicht so. Ist ja wertvolles Feedback.
                                      Wenn ich darauf so lange antworte, ist das weniger eine Rechtfertigung als "lautes Denken".

                                      1 Reply Last reply Reply Quote 2
                                      • M
                                        maxpd last edited by

                                        Hi, ich klinke mich ein und teste mit euch. Sagt ihr mir was ich jetzt genau zu machen habe um meinen Adapter wieder zum laufen zu bekommen.

                                        Garfonso 1 Reply Last reply Reply Quote 0
                                        • Garfonso
                                          Garfonso Developer @maxpd last edited by

                                          @maxpd
                                          Siehe: https://forum.iobroker.net/post/442647 bzw. auch Readme vom geforkten Adapter.

                                          M 1 Reply Last reply Reply Quote 1
                                          • M
                                            maxpd @Garfonso last edited by

                                            @Garfonso Mega. Funktioniert auf Anhieb fürs Erste.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            504
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter
                                            13
                                            124
                                            9746
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo