Table of Contents

Creating Module

This page describes how to configure communication modules in SIWENOID v2. Modules are the components that enable SIWENOID v2 to send outgoing notifications — such as SMS messages and emails — in response to events. Modules are created once and then referenced by Tasks (see the Creating Tasks page) which define when and to whom notifications are sent.

What Is a Module?

A module in SIWENOID v2 is a configured communication channel that the server can use to send outgoing messages. Each module defines the technical connection parameters for one specific communication method. The two supported outgoing notification module types are:

Multiple modules of the same type can be created — for example, two SMS modules using different SIM cards for redundancy, or two email modules using different sender accounts for different notification types.

Modules themselves do not define when messages are sent or to whom. That configuration is done in Tasks. A module is purely the technical sending channel.

Prev ← Creating Categories Next → Everyday Operation of SIWENOID v2

Opening the Modules Configuration Screen

To access the Modules configuration, navigate to File → Preferences → Modules.

Modules menu icon

The Modules screen lists all currently configured modules. Click the Add button (plus icon) to create a new module. Enter a name for the module and select the module type (SMS or Email) from the type dropdown. The configuration fields that appear depend on the selected type.

SMS Module

The SMS module enables SIWENOID v2 to send text messages using a USB GSM modem or a USB device containing a SIM card connected to the server machine.

Step 1 — Find the VID and PID of the GSM Device

Before configuring the SMS module, the Vendor ID (VID) and Product ID (PID) of the USB GSM device must be identified. These values uniquely identify the USB hardware to SIWENOID v2 and are required for the software to communicate with the device.

To find the VID and PID on Windows:

  1. Connect the USB GSM device to the server machine.
  2. Open Windows Device Manager (right-click the Start button and select Device Manager, or run devmgmt.msc).
  3. Locate the GSM device in the device list. It typically appears under “Ports (COM & LPT)” or “Modems”.
  4. Double-click the device to open its properties window.

Device Manager showing the GSM device

  1. Select the Details tab in the properties window.
  2. In the Property dropdown, select Hardware IDs.

Device properties Details tab showing Hardware IDs

The Hardware IDs value contains the VID and PID in the format: USB\VID_XXXX&PID_XXXX

Note these values before proceeding to the module configuration.

Step 2 — Configure the SMS Module

SMS module configuration screen

In the SMS module editor, fill in the following fields:

Name A descriptive name for this SMS module, used to identify it when assigning it to a Task. Example: “GSM modem 1” or “SMS notification channel”.

PIN code The PIN code of the SIM card installed in the USB GSM device. If the SIM card does not have a PIN code set, leave this field empty. Entering an incorrect PIN code will cause the SIM card to lock after three failed attempts — verify the PIN code before saving.

VID (Vendor ID) Enter the Vendor ID value found in Step 1 (for example: 067B).

PID (Product ID) Enter the Product ID value found in Step 1 (for example: 2303).

After filling in all fields, click Save. SIWENOID v2 will attempt to initialise communication with the GSM device using the configured VID/PID. Verify that the module status shows as connected or ready after saving.

The SMS module is now available for selection when configuring Tasks. Recipient phone numbers are configured in the Task definition, not in the module itself.

Email Module

The email module enables SIWENOID v2 to send email notifications via an SMTP mail server.

Email module configuration screen

Fill in the following fields:

Name A descriptive name for this email module. Example: “Security notifications email” or “SMTP outbound”.

Username The username for authenticating with the SMTP server. For most email providers this is the full email address of the sender account (for example: siwenoid.alerts@yourdomain.com).

Sender address The email address that will appear in the “From” field of all outgoing notifications. This is typically the same as the username.

Password The password for the sender email account used to authenticate with the SMTP server.

Host The SMTP server address of the email provider. Examples:

Port The TCP port used by the SMTP server. Common values:

Consult your email provider's documentation for the correct host and port values.

Important Note on Gmail Accounts

Google has removed the “Allow less secure apps” option that was previously required for direct SMTP access to Gmail accounts. Gmail can no longer be used directly as an SMTP sender with a standard username and password in this configuration.

If a Gmail account must be used, the following alternatives are available:

For new installations, it is recommended to use a dedicated email account on a corporate mail server or a professional SMTP relay service rather than a personal Gmail account.

After filling in all fields, click Save. The email module is now available for selection when configuring Tasks. Recipient email addresses are configured in the Task definition, not in the module itself.

Important Notes

Prev ← Creating Categories Next → Everyday Operation of SIWENOID v2