Please enable JavaScript to view this site.

Waijung 2 User Guide

Navigation: aMG Hardware Devices

How to set up the Alert System

Scroll Prev Top Next More

Note: The purpose of this document is not to explain every single feature of the alert system. It is to demonstrate the working of the most important features to help you get started.

 

Alert channels available:

1.Email

2.LINE

3.SMS

 

Before setting up the alert channels, you need to register the users on the system with details such as email address, phone number, etc who you would like the alerts to be sent to.

 

1.Go to the gateway’s web interface at 192.168.10.10 after connecting to the gateway’s access point.

alert_37

2.Log in [default username: admin, default password: 1234]

3.You will be forced to change the password upon first login for higher security.

4.Create a new user under System settings > Users

alert_38

5.Add personal details so you can receive email, LINE and SMS alerts. Leave "Line UID" empty for now. We will show you how to generate it later on in this document. Can select role to be "admin" (especially if you are registering yourself). Remember, all registered users can access your device locally or remotely (via VPN) once they are given their username and password. They will then be able to configure the device via the webapps without restrictions if they are given the "admin" role. The role will determine whether the registered user has partial access or full access to the device. Roles and permissions details can be edited under System settings > Permission.

alert_39

6.Save. You will see the registered user in the table.

alert_40

 


Setting up email alerts

Part 1: Creating a SMTP server

 

You will need to create a SMTP server account. For that, we highly recommend creating a new Gmail account and using Gmail’s SMTP server to send the emails. Do not use your main personal email to send emails via the gateway. If something goes wrong in the code or if you make too many requests by mistake, you can be banned or have your account temporarily disabled.

 

Once the account is created, you need to create an app password so that the gateway can send emails using your Gmail account. An app password can only be used with accounts that have 2-step verification turned on.

 

After enabling 2-step verification, you can create an app password.

 

1.Open your Google Account. Please make sure you are signed in to the new account you just created.

2.In the navigation panel, select Security.

3.Under “How you sign in to Google” select App Passwords.

alert_1

4.If you cannot find “App Passwords” in the list search for it.

alert_2

5.Give an App name and click “Create.”

6.Save the 16-digit password, you will need it later. You can remove the spaces in the password if there are any.

alert_3

7.Go to the gateway’s web interface at 192.168.10.10 after connecting to the gateway’s access point. Enter the following details Under Web app > Alerts management > General configuration > Email tab

SMTP Server: smtp.gmail.com

Port: 587

Username: Gmail address

Password: 16-digit code

Browse certificate: Upload this file. This will be used to establish a secure TLS connection between the gateway and your Gmail SMTP server account.

alert_4

8.Enter an endnote of the email (optional). This will appear at the end of all email alerts.

9.Save.

alert_5

 

 

Part 2: Selecting the sensors and setting alert conditions

 

1.On the gateway’s web interface, go to Alerts management > Sensor and Signal group alert configuration. On this page you will group the sensors (a group must be created even for just 1 sensor) that you want to receive an alert for and set the conditions. There will usually be an existing group on the webapp for you to understand what a group alert looks like. We will show you how to create a new sensor group as an example for alerting during over-current.

2.Click on “Insert” to create new sensor group.

alert_6

a.Give a group name, description, and select the sensors.alert_7

b.Turn the alert status ON, select user roles that you would like to alert for this created group (note: users are identified by their user roles. Refer back to the step to check which user roles you have assigned to the users registered on your device. If "Viewer Customer" is selected, all users with this role will be alerted). Enable the Email alert channel.alert_8

c.Specify email addresses to CC/BCC if those persons are not registered on Aimagin’s Database. Specify email subject and endnote.alert_9

d.Specify Smart filter values. Please refer to the information icon next to the “Smart filter” label.

e.Specify Return to Normal (RTN) value. Fluctuations in sensor values can trigger alerts frequently. In such a situation, the system will wait for the specified RTN time to recheck the condition. For example, if the set condition is to alert when Temp > 40, and the RTN time is set to 2 minutes, the system will alert only if the Temp > 40 for 2 minutes or more. If you would like to receive an alert as soon as Temp > 40 (even if it is only exceeds 40 for a few seconds), then set RTN value to 0.

f.Specify Group alert description.alert_10

g.Set the alert conditions based on an advanced filter and click on “Apply”. For example, we set the condition to if L1_I or L2_I or L3_I > 1800, but any complex conditions using a combination of AND & OR logic can be set up easily as well.

alert_11

h.Click on “Submit” to save the data.

i.Once submitted, it will be registered in the table on the web app.

alert_12

 

3.On the gateway’s web interface, go to Alerts management > Alert periods. On this page you can customize the time periods during which you want the alert to be enabled/disabled. Some examples are shown. You may also choose to keep alerts active 24/7 if you would like to receive an alert whenever the sensor reading is outside the set threshold.

alert_13

 

4.Once everything has been configured correctly, log out of the web app. If sensor value outside the threshold is detected, you should be receiving an email alert on your email registered on the Aimagin server or the CC/BCC email.

alert_14                       alert_15

 


Setting up LINE alerts

Part 1: Creating a LINE Developer account

 

1.Go to https://developers.line.biz/en/ and create a new account or log in with existing account. Check this for more details.

alert_16

2.Create a new Provider.

alert_17
alert_18

3.Create a new messaging API channel under the new provider by filling in channel name, description, etc.

alert_19
alert_20alert_21alert_22

 

 

4.Under Messaging API settings, scan the QR code with LINE to add this newly created LINE Official Account as a friend.

alert_23 alert_24       alert_25

5.Issue the channel access token. Take a note of it, we will need this later again.

alert_26

 

6.Login to the Aimagin server with your credentials. Only Aimagin can generate this for you.

7.After logging in, go to System settings > Settings > Line

a.From the Messaging API settings, copy the Bot basic ID --> paste into Line group ID on the Aimagin server.

alert_27

b.From the Messaging API settings, copy the channel access token --> paste into Line channel access token on the Aimagin server.

c.Generate the Line webhook link on the Aimagin server --> paste into Webhook URL under Messaging API settings. Activate the use of webhook as well.

alert_28

 

alert_29

d.Verify Webhook URL.

alert_30alert_31

 

8.Go back to the LINE Official Account chat and send “UID” in the chat box. If you have done all the steps correctly, the bot will respond with a LINE UID, which is your unique User ID.

alert_32

 

 

Part 2: Enabling LINE alert on gateway

 

1.Copy the LINE UID --> Go to gateway's web interface at 192.168.10.10 --> System settings > Users via the gateway's web interface at 192.168.10.10 --> paste --> Update

alert_41

2.If you have not created a sensor group or set alert conditions yet, follow the steps in Email Part 2 section of this document to learn how to do so before moving on to the next step.

3.If you have already created a sensor group and set alert conditions as shown in Email Part 2 section of this document, select the sensor group under Web app > Alerts management > Sensor & Signal group alert configuration > Edit

alert_35

4.Enable the LINE alert channel and specify the endnote.

alert_42

5.Click on "Submit" to save the changes.

6.Under Web app > Alerts management > General configuration > LINE tab, enter the Channel access token previously generated in LINE Part 1 section of this document.

7.You can use https://api.line.me/v2/bot/message/push as the Messaging API.

8.Save.

alert_43

9.Once everything has been configured correctly, log out of the web app. If sensor value outside the threshold is detected, you should be receiving a LINE alert on your created LINE account.

alert_44

10.Please note that there is a monthly limit of 300 LINE messages in the Free Plan. If you would need more than 300 messages please upgrade your plan. More details can be found here.

alert_46   alert_45

 

 


 

Setting up SMS alerts

If interested to receive alerts via SMS, you must use a router that supports SMS functionality. We highly recommend using this industrial-standard 4G WIFI Router. A SIM card can be purchased and topped up with balance to enable SMS transmission.

 

This 4G WIFI router with a SIM card + internet package solves both purposes:

1.It can be used for sending data from the gateway to the server over 4G. For this, we recommend an internet package with a minimum speed of 15Mbps.

2.SMS alerts

 

If you have this 4G WIFI Router, continue following the next steps.

 

Part 1: Authorizing SMS functionality through router

 

1.Use the RUT200 Quick Start Guide or the booklet provided with the router for the installation and setup. Once that is complete, connect to the router and log in using the router’s Web interface.

2.After logging in and completing the preliminary required steps, a username and password is required to authorize SMS functionality of RUT200. This can be configured under Services > Mobile Utilities > SMS Gateway > POST/GET

alert_33

3.Once configuration is complete on the router’s web interface, go to the gateway’s web interface. Enter the details Under Web app > Alerts management > General configuration > SMS tab and save.

alert_34

 

 

Part 2: Enabling SMS alert on gateway

 

1.On the gateway’s web interface, go to Alerts management > Sensor and Signal group alert configuration.

2.If you have not created a sensor group or set alert conditions yet, follow the steps in Email Part 2 section of this document before moving on to the next step.

3.If you have already created a sensor group and set alert conditions as shown in the Email Part 2 section of this document, you need to select the sensor group in the table and click on “Edit”.

alert_35

4.Enable the SMS alert channel and specify the SMS endnote.

alert_36

5.Click on “Submit” to save the changes.

6.Once everything has been configured correctly, log out of the web app. If sensor value outside the threshold is detected, you should be receiving a SMS alert on your registered phone number. Make sure that:

The gateway is connected to the 4G router's WIFI network

The SIM card has balance to send SMS messages

 

alert_47

 


Copyright 2024 Aimagin Co.,Ltd. Rev.1680