Welcome to the era of automation. We stand at the threshold of a new age where the majority of tedious and repetitive physical tasks will soon become obsolete. We anticipate automating approximately 37% of current jobs within the next decade, with the potential for even greater impact. Our belief is that when automation is applied thoughtfully and positively, it will yield more benefits than drawbacks. Therefore, we are vigorously embracing automation in our everyday operations. Here, you can observe initial small-scale automation initiatives, which serve as previews of the significant automation advancements to come.

Showcase Example

In this example we will showcase how we can log censored meter temperatures in ERPAG.
It is a simple idea-we will use a Wi-Fi thermostat and we wish to log each time the temperature goes over 22 Celsius. How? we will use thermostat app to send a webhook call to ERPAG when triggered.

  • Choose a Wi-Fi Thermostat: Select a Wi-Fi thermostat that supports temperature monitoring and can trigger actions based on temperature thresholds. Ensure that it allows integration or has an API that can be used to send webhook calls.
  • Set up the Wi-Fi Thermostat: Install and configure the Wi-Fi thermostat according to the manufacturer’s instructions. Connect it to your Wi-Fi network and ensure that it can reliably monitor the temperature in the desired location.
  • Identify Webhook Integration: Check if the thermostat’s app (in this case SmartThings) or API supports webhook integration. A webhook allows you to send HTTP POST requests to a specific URL when a certain event occurs, such as the temperature going over 22 degrees Celsius.
  • Set up ERPAG Integration: In ERPAG, you’ll need to set up a webhook listener or an endpoint that can receive the webhook calls from the thermostat. This endpoint should be capable of processing incoming requests and logging the temperature data.
  • Configure Temperature Threshold: Within the thermostat’s app or configuration settings, set up a rule or trigger that activates when the temperature goes over 22 degrees Celsius. When this threshold is met, the thermostat should send a webhook call to the designated URL in ERPAG.
  • Handle Webhook Requests in ERPAG: Develop or configure the functionality in ERPAG to handle incoming webhook requests from the thermostat. This may involve parsing the incoming data, logging the temperature event, and storing relevant information in your ERPAG database or logs.
  • Testing and Monitoring: Test the integration thoroughly to ensure that the webhook calls are being sent correctly from the thermostat to ERPAG and that the temperature events are being logged accurately. Monitor the system for any errors or issues that may arise.


To seamlessly integrate our thermostat-triggered events with ERPAG, we require the ERPAG webhook service to facilitate the receipt of web requests triggered by IFTTT. This essential connection will enable ERPAG to promptly respond to events initiated by the thermostat via IFTTT.

With the ERPAG webhook service in place, each time the thermostat triggers an event through IFTTT, such as when the temperature reaches a predefined threshold, ERPAG will promptly receive the corresponding web request. This integration empowers ERPAG to efficiently capture and process the triggered events, ensuring seamless coordination and automation within our system.

Install and configure the Wi-Fi thermostat according to the manufacturer’s instructions. Connect it to your Wi-Fi network and ensure that it can reliably monitor the temperature in the desired location.

First, we need to connect our thermostat with SmartThings, to get more info and to learn how to connect, please go to: https://www.samsung.com/us/support/answer/ANS00078853/. You can also use other services like: SmartLife. After we have added our device to SmartThings app, we can open a new account (if you don’t have one) on IFTTT.

To open iFTTT account please follow this video tutorial:

By default, IFTTT has seamless integration with SmartThings which will allow us latter to invoke automated applets in IFTTT.

What is an IFTTT applet?

It’s an automation or integration/connection between two services that enables you to do something that those services couldn’t do on its own. Applets are composed of triggers and actions. Triggers tell an Applet to start, and actions are the end result of an Applet run.

To seamlessly integrate our thermostat-triggered events with ERPAG, we require the ERPAG webhook service to facilitate the receipt of web requests triggered by IFTTT. This essential connection will enable ERPAG to promptly respond to events initiated by the thermostat via IFTTT.

1.Open your ERPAG account and go to menu/automation/Api scripts:


2.Then click CREATE and select webhook

3. Next define basic metadata for your future webhook.
Have in mind that URL endpoint is automatically generated and cannot be modified.

4. Next, we need to insert parsing logic, for when we receive data we can handle it.

5.We also need to define another variable – JSON temp and insert body JSON

6. Now, we will log message using the log API method

7. Next, we need to define a NEW TRANSACTION TABLE that we will use to log messages, which we can access later and analyze them.

Go to automatization/customization and click custom transaction tables

Next design your table (add column names) in this example e.g. temperature.

8. Save table and get back to edit Blockly script.

9.We will now connect our log message to Custom Transaction Table, this way; all webhook messages will be logged in Custom Transaction Table.

10. Select the Custom Transaction Table (the one that you have created in steps above)

Next: go to database and add Custom Transaction Table block to workspace:

11.Have in mind: transaction date filed is fixed (for logging purposes date MUST be defined).
In order to extract temperature value to table we need to use NUMBER from JSON variable method from JSON menu:

12.Next, we will select the column value (need to be the exact name as in JSON object – caps included)

Remember this step because in call method of IFTTT service we need to define.
JSON object {“name” : “value”}, We will use TEMP as name and for measured sensor value, we will use VALUE !!!

In order to connect IFTTT with ERPAG webhook, you need to create IFTTT Applet.

By default, IFFTT has integrated SmartThings platform connection, for this reason, you will go to applets and create new SmartThings applet.

Go to: CREATE

click create in top menu
Now click IF this

Then search for SmartThings:

And from new selection choose:

Now enter details in the applet setup> It will automatically recognize SmartThings environment, therefore simply select params from dropdown:

Click create trigger – Next we need to create web request-> click Add:

Now select the webhooks from the listed services:

Now we will create a new web request:

OK save this applet and start it.
By starting applet we are enabling service to send info to ERPAG webhook when triggered.
Each time that temperature goes over threshold level, it will trigger IFTT to call ERPAG webhook.
By receiving info, webhook is activating Blocky script that will parse data and fill the Custom Transaction Table.
To see transactional data go to Menu Automatization/Customization -> Custom Transaction Tables.

NOW we can see data entries received by ERPAG’s webhook:

By using built in ERPAG features like exporting data (csv/xml/xls or API ) you can export custom transaction data to analytics SaaS software.

Start NOW

Read More

Related Posts

How Great Inventory Software Can Help Fight Inflation

In today's rapidly fluctuating economy, businesses face the daunting challenge of fighting inflation. Rising costs can erode profits and disrupt operations, making it essential to adopt strategies that mitigate these impacts. One powerful tool in this battle is...

read more
​ERPAG API – Xero OAuth 2.0 authorization

​ERPAG API – Xero OAuth 2.0 authorization

In this instruction blog, we will describe how to create OAuth 2.0 API keys on your Xero account. These API keys are necessary in order to make API calls from ERPAG via Blockly scripts. The instructions show how the process itself currently looks. If in the meantime...

read more