This project checks the actual traffic between two locations (e.g. work+home) and displays the estimated time needed for arrival (eta) on a ePaper screen. The data is provided by the Google Maps API, the related Arduino sketch is just 59 lines long ;-). It triggers regularely a Webhook and displays the received response on the screen, then goes to sleep for most of the time. The code runs with controllers from the Particle family (Photon, Electron, Bluz).
The HTTP request should contain the individual start address, destination address and your private API key. As a starting point you can try this example in combination with your key:
By inserting this line in the browser URL field you should get the estimated time of arrival and the distance for the requested route in the JSON format. If this works fine just replace the origins and destination address with your own examples. Great!
3
Generate a Particle Webhook
At Particle's Console in the Web IDE, following the section "Integration" and "New Integration" we can generate a new Webhook via Browser IDE by selecting "Webhook".
Event Name = TrafficIndicator (or anything else you'd like to use in the sketch lateron)
URL = (the above generated & tested HTTP request string)