Skip to content

use gsm module to send messages, get gps location and send data via gprs

Notifications You must be signed in to change notification settings

Stevemwa/Rasp_gsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Rasp_gsm

Use of a gsm sim module to send messages, get gps location and send data via gprs. Applicable in making a tracking device or remote controlling of the raspberry pi or a security system. to use :

  1. cd /path/to/your/desired/directory

  2. clone the repository

git clone https://github.com/Stevemwa/Rasp_gsm.git
  1. create your main file i.e send_messages.py

  2. Add the script below:

from gsm import GSM
import time

if __name__ == "__main__": 
    gsm = GSM("/dev/ttyS0", 9600, None)
    gsm.send_text("+123456789", "Hi can we meet outside CE now!")
    time.sleep(5)
    coordinates=gsm.get_gps_coordinates()
    gsm.send_text("+123456789", coordinates)
    

About

use gsm module to send messages, get gps location and send data via gprs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages