Need Help?
How to Forward Data from AlphaX Cloud via HTTP Post to Another Platform
Introduction:
AlphaX Cloud offers a powerful feature that allows you to forward data from your sensors to another platform or service using HTTP Post. This feature can be incredibly useful for integrating your data with external systems or performing specific actions based on sensor data. In this guide, we will walk you through the process of setting up and configuring data forwarding via HTTP Post in AlphaX Cloud.
Note: throughout this article the terms Webhook and HTTP Post are used interchangeably.
Note: The HTTP Post method only allows communication on SSL (HTTPS). HTTP non secure connections are not supported.
Step 1: Navigate to the Alerts Section
- To get started, log in to your AlphaX Cloud account and navigate to the “Alerts” section, located in the left menu bar.
- Click on “Alerts” to access a screen displaying all available alerts.
Step 2: Create a New Alert
- In this example, we will create a new alert for data forwarding, but you can also choose to edit an existing alert if one already exists.
- Click on the “Create New Alert” button located at the top right corner of the screen.
- A quick create wizard will appear, prompting you to provide some details for your alert.
Step 3: Configure Alert Details
- Enter a name for your alert to identify it easily.
- Assign the alert to an asset, preferably the highest-level asset that covers all the sensor points you want to include in the alert.
- Select the specific sensor points that you want to forward data from.
Step 4: Set Data Forwarding Conditions
- In the next window, define the conditions for when the data will be sent to the external platform.
- You can choose to forward data only when a specific value equals a certain value or select the option to forward all data received.
- Click “Next” to proceed.
Step 5: Select Actions for Data Forwarding
- On this screen, you can select the actions to be taken when a message is received that matches the alert conditions.
- Choose the “HTTP Post” feature, also known as a Webhook.
- Enter the Webhook URL where you want to send the data. Note that only basic URL parameters can be added in the wizard.
Step 6: Specify Active Time Range
- Select the date and time range during which the alert will be active. Data will only be forwarded within this active period.
Adding Headers to the Webhook:
To enhance your data forwarding setup, you can add custom headers to the Webhook. Here’s how:
Step 1: Navigate to the Alerts List
- Locate the alert you are interested in within the “Alerts” list.
Step 2: Access Notifications Section
- Click on the alert’s name or the edit icon to access its details.
- Scroll down to the “Notifications” section.
Step 3: Add Headers
- Find the “Webhook” heading, which includes the URL.
- Underneath the URL, there will be an “Add Headers” button.
- Click the “Add Headers” button to create custom headers.
- Enter the header in the first field and its corresponding value in the second field.
- If you make a mistake, you can edit or delete headers and add new ones using the provided buttons.
Conclusion:
By following these steps, you can easily configure AlphaX Cloud to forward data from your sensors to another platform or service via HTTP Post. Adding custom headers allows you to tailor the integration to your specific needs, ensuring seamless data transfer and integration with external systems.