Giter VIP home page Giter VIP logo

gsm-sms's Introduction

gsm-sms

A small python script that allows you to send, receive and delete SMS's using a USB GSM dongle modem

I created this using a HUAWEI E220 modem and a vodaphone sim card, not sure but i gues it should work with other modems

first find and install the driver software for your particular modem

Next set up and connect to your modem within network settings, set the APN to your network (Look up your networks APN online) set the phone number ( you can use default #99*, or your number no country code) and chose GPRS 3G as modem type

Next find the USB directory that your modem is plugged into by running $ ls /dev/tty* within terminal. Find the path to your modem and set that to the modem path within the sms.py file

run the sms.py file in your shell

to send sms type:

sendsms('number','text that you want to send')

eg:

sendsms('0711100011','this is the message im sending')

to read all sms's on your sim card:

read_all_sms()

To read just the read sms's:

read_read_sms()

To read the unread sms's on your sim card:

read_unread_sms()

to delete all sms's from the sim card:

delete_all_sms()

to delete just the read sms's from the sim card:

delete_read_sms()

all positive commands when speaking to the GSM modem return an "OK" message

Software is free to do as you wish with commercial or otherwise (thin it's a MIT licence), a very simple script enjoy

gsm-sms's People

Contributors

colins44 avatar

Watchers

Robert Tulke avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.