Soracom

IoT Template Gallery

Receive email notifications when daily data usage of IoT SIMs exceeds specified thresholds, including data usage for the past 5 days. This assumes the use of Event Handler.

Overview

This app template notifies you by email when the data usage of IoT SIMs owned by a customer (operator) exceeds a threshold, along with data usage for the past 5 days. This app helps with:

  • Tracking data usage fluctuations
  • Monitoring unintended data transmissions
  • Maintaining budget visibility

The destination email address, email content, and threshold can be changed through configuration.

Email Example

The sent email will contain content like:

Operator: OP0012345678's data usage has exceeded the specified value.
Data usage for the past 5 days is as follows:
2025/6/11: Upload 149 MiB, Download 402 MiB
2025/6/12: Upload 166 MiB, Download 1089 MiB
2025/6/13: Upload 70 MiB, Download 181 MiB
2025/6/14: Upload 103 MiB, Download 828 MiB
2025/6/15: Upload 65 MiB, Download 478 MiB
2025/6/16: Upload 255 MiB, Download 81 MiB
  • Decimal places are rounded up.

Estimated Costs

Initial Costs

Item
Cost
Notes
SORACOM IoT SIM
From 902 yen
SORACOM IoT SIM
Estimate (plan-D D-300MB)
Required if you do not already have a SORACOM IoT SIM.

Monthly Costs

Item
Estimated Cost for This App
Notes
SORACOM Flux
Up to 3.41 yen/month (*1)
  • (*1) When you configure this Flux app and event handlers, the event handler based on data usage threshold will execute at most once per day. This Flux app counts 1 event per day, resulting in 31 events counted for a 31-day month of operation.
  • (*1) The SORACOM Flux Developer plan includes up to 10,000 events/month free per account. Events exceeding 10,000/month are charged at 0.11 yen per event.
  • Event counts and credits are initially set to the same upper limits as the free bundle allocation. When the limit is reached, app launches and action executions triggered by events will no longer occur. If you wish to use beyond these limits, please update the limits in advance. When you set limits that exceed the monthly bundle allocation, excess events and credits will be available on a pay-as-you-go basis.

The following is an estimate and actual costs may vary depending on your usage. For accurate pricing, please refer to usage details in the User Console.

Preparation

Before deploying this template, prepare the following:

  • Email Settings: A verified destination email address

For details, refer to SORACOM’s documentation on Email Settings.

Creating the App

You can set the destination email address when creating the app.

Select a verified destination email address from the [Select email address] button.

Post-Creation Tasks

Event Handler Configuration

Configure an event handler with data usage as the threshold. Refer to SORACOM’s documentation on Event Handler for setting up the event handler. For the rule, select Sim Daily total traffic, and for the action, select Execute web request. Specify the Incoming webhook URL of the event input channel as the URL.

Confirm the incoming webhook URL

  1. Click on Event Input Channel.

  1. Click on Show Webhook URL.

  1. Copy the Webhook URL.

Set the copied Webhook URL in the event handler’s action Send a request to a specified URL.

Customization

You can change the email content template in the email notification action settings screen.

  1. Click the [EMAIL Notification] action in Flux Studio.

  1. Update the email destination and body from [CONFIG].

Troubleshooting

If it’s not working properly, check the app’s execution history. For details, refer to View Logs.