Send SMS every 24 hours


I need the Digi Connect WAN 3G to send an SMS to a number every 24 hours. I’ve written a python script to do this, and while sending the SMS from the script isn’t a problem, getting it to repeat is.

There isn’t any cron functionality on the device so I’m left with the option to do this using Python.

This is the script:

import digisms
import threading
import time

msg="Ping from "+addr

class RepeatEvery(threading.Thread):
    def __init__(self, interval, func, *args, **kwargs):
        self.interval = interval  # seconds between calls
        self.func = func          # function to call
        self.args = args          # optional positional argument(s) for call
        self.kwargs = kwargs      # optional keyword argument(s) for call
        self.runable = True
    def run(self):
        while self.runable:
            self.func(*self.args, **self.kwargs)
    def stop(self):
        self.runable = False

def sendMessage():
    digisms.send(addr, msg)

thread = RepeatEvery(30, sendMessage)


The number in addr would normally be a complete phone number, but it’s been censored for privacy sake.

When I run this, it locks up the Digi Connect 3G and kills my SSH session, and no messages are sent.

Does anyone know how I can configure the Digi Connect 3G to send an SMS message every 24 hours?

You need to factor this in if you haven’t already:’s_Guide#thread_and_threading