(IFTTT) Forwarding messages to devices on the local network


jj_uk

Recommended Posts

Please excuse me if this is a bit of a ramble, i'm not sure what I'm actually looking for here...

 

Recently, I've started creating IoT devices that sit on the local network. I can control these with google home via IFTTT and webhooks.

 

The IFTTT service creates a webhook. I'm using unique ports for each device, e.g.

for IoT device 1: mywebhooks.duckdns.org:1001/command/

for IoT device 2: mywebhooks.duckdns.org:1002/command/

 

Then on my router, forward the port to the device. So each IoT device uses a different port, e.g:

 

WAN port 1001 ->> local IoT device 1:  192.168.1.101

WAN port 1002 ->> local IoT device 2:  192.168.1.102

etc

 

However, this seems like it could be simplified if there was a docker that could route data to the correct local IP address directly, so:

 

for IoT device 1: IFTTT sends webhook:  mywebhooks.duckdns.org:dockerport/DEVICE_1/command/

for IoT device 1: IFTTT sends webhook:  mywebhooks.duckdns.org:dockerport/DEVICE_2/command/

 

then the docker works out that "DEVICE_1" is 192.168.1.101 and forwards the data to the IoT device, and viceversa with the response.

 

Is there such a docker app? What do you use to do this? How do you do it?

 

Hope that makes sense :-/

 

 

 

 

Link to comment
  • jj_uk changed the title to (IFTTT) Forwarding messages to devices on the local network

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.