Skip to content

Plugin sms adj

Martin Pihrt edited this page Oct 13, 2026 · 1 revision

SMS Modem

Receives authorized SMS commands through a Gammu-compatible modem and returns OSPy status by SMS.

At a glance

Item Value
Version 1.0.0
Category Notifications and remote communication
Author Martin Pihrt
License GPL-3.0
OSPy 3.0.211 or newer
Python 3.8 or newer
Permissions files, email, system
Hardware interfaces: serial_modem
Dependencies None
Python/OS packages gammu / python3-gammu (required)
Interfaces No provider or mobile API declared
Source Open the plug-in directory

What it is for

Receives authorized SMS commands through a Gammu-compatible modem and returns OSPy status by SMS.

How it works and how to configure it

Old extension for Python 2 (for using in Python 3 is patched but I not have hardware for testing - not tested with hardware)

The plug-in includes a plugin.json manifest and reports its worker, Gammu and modem availability, configured administrator count, signal, latest check, command and errors through the OSPy system health interface. Telephone numbers are not included in diagnostics.

Control your sprinkler using SMS (Short Message Service). For this plugin is needed to SMS modem with the telephone service provider. This plugin needs Gammu. If not installed use: sudo apt install -y gammu python3-gammu. Reports shall be transmitted only on the phone number of administrator who sent the order (to other phone numbers plugin unresponsive and SMS messages deletes).

Plugin setup

  • Check Use SMS modem: If checked use SMS modem plugin is enabled.

  • Check Signal strength in the status window: If checked use Signal strength in the status window in list is information about the signal strength.

  • Number 1: Type 1 telephone number for 1 administrator in format +xxxyyyyyyyyy.

  • Number 2: Type 2 telephone number for 2 administrator in format +xxxyyyyyyyyy.

  • Command for info: Type command for send two SMS with system information (default command is "info").

  • Command for stop irrigation: Type command for stop irrigation (disabled sheduller). (default command is "start").

  • Command for start irrigation: Type command for start irrigation (enabled sheduller). (default command is "stop").

  • Command for reboot system: Type command for reboot system (hard reboot system - not OSPy service). (default command is "reboot").

  • Command for poweroff system: Type command for poweroff system (hard shutdown system - not stop OSPy service). (default command is "poweroff").

  • Command for update OSPi from GITHUB: Type command for update OSPy from GITHUB. (default command is "update").

  • Command for send foto from webcam: Type command for send foto from webcam. For this function required e-mail and webcam plugin with all function setup. E-mail with photo attachments from USB webcam. (default command is "foto").

  • Command for help: Type command for help. Send SMS with all available commands. (default command is "help").

  • Command for run now program: Type command for run now program xx number. (default command is "run"). (Example: run1 = run now program 1 if exists)

  • Status: Status window from the plugin.

Visit Martin Pihrt's blog. for more information.

In-app help and settings notes

The following notes are generated from the help page shipped with this plug-in. Field names are also explained directly in the OSPy settings page.

For this plugin is needed to SMS modem with the telephone service provider

This plugin needs Gammu. If not installed Gammu and Python-Gammu, plugin installs Gammu and Python-Gammu in to the system himself

On first use please wait for status

Visit for more information

Related links and diagrams

Support

Check OSPy → Diagnostics first and remove passwords, tokens, private addresses and other secrets before sharing logs. Report reproducible plug-in problems in the OSPy-plugins issue tracker.

Back to the plug-in catalog

Clone this wiki locally