iobroker-community-adapters / ioBroker.places

Adapter for ioBroker for analyzing location information
MIT License
5 stars 5 forks source link

need help on Blockly #20

Closed Starter4711 closed 3 years ago

Starter4711 commented 3 years ago

Hello, tried to feed the adapter via Blockly, but I always get the message "ignoring incomplete message" asking for help THX

places

places.txt

heiner1976 commented 3 years ago

Bei mir klappt es so. image

Starter4711 commented 3 years ago

OK, damit komme ich schon weiter, nur noch nicht zum Ziel.. da mach ich noch was falsch `

2021-04-25 10:02:43.684 - error: places.0 (28388) Error while requesting address: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Sun, 25 Apr 2021 08:02:43 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990 00:00:00 GMT","cache-control":"no-cache, must-revalidate","access-control-allow-origin":"*","server":"mafe","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","server-timing":"gfet4t7; dur=38","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","vary":"Accept-Encoding","connection":"close","transfer-encoding":"chunked"},"json":{"errormessage":"You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project//billing/enable Learn more at https://developers.google.com/maps/gmp-get-started","results":[],"status":"REQUEST_DENIED"},"requestUrl":"https://maps.googleapis.com/maps/api/geocode/json?language=de&latlng=48.13791855%2C14.10301148&key=AIzaSyCrDQ5z98tzbLYi3Urhb7DGOcnT8hQOR68","query":{"language":"de","latlng":"48.13791855,14.10301148","key":"AIzaSyCrDQ5z98tzbLYi3Urhb7DGOcnT8hQOR68"}}

2021-04-25 10:02:43.889 - error: places.0 (28388) Error while requesting elevation: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Sun, 25 Apr 2021 08:02:43 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990 00:00:00 GMT","cache-control":"no-cache, must-revalidate","server":"mafe","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","server-timing":"gfet4t7; dur=30","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","vary":"Accept-Encoding","connection":"close","transfer-encoding":"chunked"},"json":{"errormessage":"You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project//billing/enable Learn more at https://developers.google.com/maps/gmp-get-started","results":[],"status":"REQUEST_DENIED"},"requestUrl":"https://maps.googleapis.com/maps/api/elevation/json?locations=xxx%2C1xxxx&key=AIzaSyCrDQ5z98tzbLYi3Urhb7DGOcnT8hQOR68","query":{"locations":"xxxx","key":"AIzaSyCrDQ5z98tzbLYi3Urhb7DGOcnT8hQOR68"}} 2021-04-25 10:02:44.108 - error: places.0 (28388) Error while requesting route: {"status":200,"headers":{"content-type":"application/json; charset=UTF-8","date":"Sun, 25 Apr 2021 08:02:44 GMT","pragma":"no-cache","expires":"Fri, 01 Jan 1990 00:00:00 GMT","cache-control":"no-cache, must-revalidate","server":"mafe","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","server-timing":"gfet4t7; dur=31","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","vary":"Accept-Encoding","connection":"close","transfer-encoding":"chunked"},"json":{"destination_addresses":[],"errormessage":"You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project//billing/enable Learn more at https://developers.google.com/maps/gmp-get-started","origin_addresses":[],"rows":[],"status":"REQUEST_DENIED"},"requestUrl":"https://maps.googleapis.com/maps/api/distancematrix/json?departure_time=now&destinations=xxx%2Cxxxx&language=de&mode=driving&origins=xxx%2Cxxx&traffic_model=best_guess&key=AIzaSyCrDQ5z98tzbLYi3Urhb7DGOcnT8hQOR68","query":{"departure_time":"now","destinations":"xxx","language":"de","mode":"driving","origins":"xx","traffic_model":"best_guess","key":"AIzaSyCrDQ5z98tzbLYi3Urhb7DGOcnT8hQOR68"}} 2021-04-25 10:02:44.133 - info: places.0 (28388) Processed message, returning result: {"user":"Zoe","latitude":xxx,"longitude":xxxx,"timestamp":xxx,"date":"2021-04-25 10:02:43","atHome":false,"distance":6193,"name":"","address":"","elevation":0,"routeDistance":"","routeDuration":"","routeDurationWithTraffic":""} 2021-04-25 10:02:44.141 - info: javascript.0 (32427) script.js.common.Places: test 2021-04-25 10:02:44.172 - warn: places.0 (28388) State "places.0.Zoe.date" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.176 - warn: places.0 (28388) State "places.0.Zoe.latitude" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.179 - warn: places.0 (28388) State "places.0.Zoe.longitude" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.182 - warn: places.0 (28388) State "places.0.Zoe.address" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.186 - warn: places.0 (28388) State "places.0.Zoe.elevation" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.187 - warn: places.0 (28388) State "places.0.Zoe.routeDistance" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.189 - warn: places.0 (28388) State "places.0.Zoe.routeDuration" has no existing object, this might lead to an error in future versions 2021-04-25 10:02:44.190 - warn: places.0 (28388) State "places.0.Zoe.routeDurationWithTraffic" has no existing object, this might lead to an error in future versions

`

und wie kommst du zum debug - result?

Starter4711 commented 3 years ago

OK, google maps geocoding mit API Schlüssel geht nicht, ohne funktioniert es.

Allerdings wird für Home die Position im ioBroker Setup genommen und nicht der im Adapter angelegte Ort. Kann man das ändern?

BG

OK der Adapter verwendet für zu Hause die GPS Koordinaten von ioBroker und bei den Orten schreibt er es in ein Objekt.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] commented 3 years ago

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions. Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.