Hi there,
Has anyone faced similar issue with google directions before? I've been googling for days with no luck...
My dashboard consists of single frame with google directions (to check best route to work in the morning).
Code: Select all
frames.directions = {height:500,frameurl:"https://www.google.com/maps/embed/v1/directions?origin=Sosnowiec&destination=Katowice&key=MY_API_KEY",width:12}
When I open dashticz (or refresh browser index page) it works like charm and shows the map with route, but after certain time dashticz enforces frame refresh.
The problem starts during this refresh, when the original request is changed, and for some reason the 't' parameter is added at the very end of the request, so it looks like:
Code: Select all
https://www.google.com/maps/embed/v1/directions?origin=Sosnowiec&destination=Katowice&key=MY_API_KEY&t=1547585442993
(note
&t=1547585442993 at the very end of the query)
As a result my map is gone, and the error message pops out:
Google Maps Platform rejected your request. Invalid request. Unexpected parameter 't'.
I do understand the error, but have no idea why '&t=..." parameter is added and how to avoid it.
Any clues? I'd appreciate any hint.
(PI ZERO W, Raspbian, Dashticz v2.5.2 beta, domoticz ver. 4.97, dzVents ver 2.4.6, Python ver. 3.5.1, PHP ver 7.0.30)