Passing Data into Rule Machine via web call

I have a very simple rule that says when a local end point is triggered via a web call to the URL, then have echo speaks say a specific phrase on a specific echo.

I can imagine a variety of complex ways to do what I want to do, but is there any simple way for the thing that is making the web call (an Excel spreadsheet), to be able to pass in a string that you be used for the echo speaks phrase instead of just hard-coding the message? I was thinking basically of putting the string into a variable and having echo speaks say the contents of the variable, but can't figure out if there is an easy way to push the string into the variable.

You could do something like this (use an app) which would allow you to make posts with a payload and then have a parse method called to get the data out of the call and do things to it.

I have an applet in IFTTT setup like this that works with this app.


I blurred out my token and hub id but the app shows you how to get them I think. If it doesn't, the Ring app I wrote shows you how to build the URL.

For completeness, the instance of that app looks like this.

2 Likes

Thanks for the examples. This falls into the category of slightly more complex than I am looking to implement at the moment. That said, I don't see why it wouldn't be adaptable to my needs. I was just hoping there was something very simple like an undocumented way of passing data via local end point call.

@codahq looks like that code is no longer on github? Any chance I can take a look?

I have a similar use case, I want to trigger an action (LED Scrolling sign matrix) to display meeting details 15min before a calendar event starts.

I wanted to go IFTTT route since that allows for triggers based on event starting, rather than getting the hub to poll the google api 100's of times a day.

Otherwise I could look at setting up a webhook on the hub somehow? using google's push notifications. Push Notifications  |  Calendar API  |  Google Developers
This I assume is what IFTTT would use internally? Seems much easier letting IFTTT handling that bit of complexity.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.