Could we send analog value in SMS content?

Hello,

Are you reading the temperature data from an external modbus sensor, or directly from the TRB device itself?

While the modbus alarms functionality can send an SMS alert when a configured temperature threshold is exceeded, it unfortunately cannot include the live temperature value in the alert by default.

To achieve this, custom scripting would be needed. As this is beyond my scope, I can only provide you with suggestions/insights on how the setup could look. The script should:

  1. Read the temperature register from the Modbus server using a command like ubus call. Discussed relevant threads:
  1. Save the output in a variable.
  2. Compare the value against your threshold.
  3. If the condition is met, send an SMS message with gsmctl, embedding the actual temperature value.

You can find more information and guidance for creating custom scripts in our wiki article here:

Best regards,

1 Like