Publish Google Maps [hook-response] to Azure IoT Hub

Scenario: Particle electron, with google maps sample project (google-maps-device-locator) using geolocation api to determine the location of the device based off the cell-tower. I need to send this location (as determined from the google maps integration) to an Azure IoT hub.

  1. The google maps webhook is triggered off the [deviceLocator] event from the device
  2. This then responds with a [hook-response/deviceLocator/deviceID/0] event which appears from a “particle-internal” device
  3. If I setup an Azure IoT Hub integration to trigger off this event [hook-response/deviceLocator/deviceID/0], it is not triggered

I’ve tried different different forms of the event name, e.g. [hook-response/deviceLocator], [hook-response/deviceLocator/api], without any success. Is it possible to do this without using the API to get the event steam?

2 Likes

Bumping this. How does one redirect/channel web hook responses to other web hooks?

Ping @rickkas7

To get around this I had to send the webhook response (from google api) back to the device. Once back in the device I was able to create a new event which was redirected to the other webhook (Azure IoT Hub). Not ideal, so I’m interested to see if Particle have a solution for us.

Yeah, that is less than ideal. I see that there is an open source visualization application that uses the data, I'll look around there and see if I find anything useful.