Gravio Blog
April 28, 2025

How to trigger software at the Edge using n8n?

How to trigger a cctv camera at the edge from n8n using Gravio
How to trigger software at the Edge using n8n?

n8n is a tool that has gained popularity recently due to its simplicity. But even though n8n can be run on-premise, most people run it in the cloud. In this tutorial, we learn how you can trigger an action at the edge using Gravio, triggered by n8n. In this case we trigger a camera to take a picture and send it via e-mail.

The setup is simple:

n8n (cloud activity) ➡️ publish ➡️ MQTT ⬅️ subscribe ➡️ Gravio (edge activity)

The setup on n8n looks like this:

The form can be found under https://gregavio.app.n8n.cloud/form/f4aeb455-1b8b-4697-9525-0135f56d67af

The first step is to set up the form:

Then we use an MQTT publish event sending the JSON document to the respective broker (there are many available out there, we use ThingDash in this example):

That’s it. On the Gravio side at the Edge, we have the following setup for the subscription on the input side:

On the trigger side, we just push whatever comes in to the action:

Where we take a picture from the camera and send it via e-mail. We use the free option of Brevo.com as SMTP server:

The result from sending the form is an e-mail like this:

Needless to say, you can trigger all sort of activities at the edge, including sending data back using webhooks and HTTP requests. Your imagination is the limit. Do you like to find out what you can build? Get in touch with us: getstarted@gravio.com 

Latest Posts
Digital Transformation in Retail: How Premier Anti-Aging Corporation Used Gravio to Boost Off-Season Sales with AI and IoT
Discover how Premier Anti-Aging Corporation leveraged Gravio's no-code integration platform with AI and IoT sensors to collect and analyze customer data, achieving off-season sales comparable to their peak season.
Monday, April 28, 2025
Read More
Revolutionizing Food Manufacturing: How AI Empowers Efficiency, Safety, and Sustainability
The food manufacturing industry stands on the cusp of transformative change driven by Artificial Intelligence (AI), promising enhanced efficiency, safety, and sustainability. By leveraging AI's predictive capabilities, the industry can significantly reduce waste, optimize resource management, and refine consumer experiences. AI's impact extends across various applications, such as supply chain management, personalized food products, and food safety measures. Innovative applications including AI-driven robotics and predictive maintenance further illustrate AI's role in automating tasks, anticipating equipment needs, and offering personalized culinary experiences. Real-world examples, like aiOla's Speech Capture Technology, showcase AI's ability to enhance data collection efficiency and crop yields, all while promoting sustainability. However, challenges such as data security, algorithmic bias, and integration costs persist, necessitating strategic planning and ethical oversight. Overall, AI promises a revolutionary shift in food manufacturing, paving the way for a future characterized by innovative, efficient, and sustainable food production practices.
Wednesday, April 23, 2025
Read More