Python Forum
sending sms messages from your smartphone
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sending sms messages from your smartphone
#1
What library can I use to send sms messages from my smartphone?
Reply
#2
All of the PyPi packages related to this are here: https://pypi.org/search/?q=%27sms+message%27
Reply
#3
import sms
m = sms.Modem('/dev/ttyS0') what does '/dev/ttyS0 ' mean ?

I'm trying this code
from sms4 import send,  nonblocking_send
result =  send('+123456798',  'The server is down!') 
print(result)
error 3 arguments !?

https://pypi.org/project/sms4/
Reply
#4
(Apr-01-2020, 08:59 PM)skorost5 Wrote: import sms
m = sms.Modem('/dev/ttyS0') what does '/dev/ttyS0 ' mean ?

On Linux, it's the path to a file representing a serial port to which the modem is attached.

A couple questions then:

1. Which OS are you running and does this library support it?
2. Do you even have a modem attached?

If the answer to 2 is no, presumably you're out of luck (the library homepage wasn't working, so I couldn't really take a look). You might want to find an HTTP API that lets you send messages, because then you'd not need anything special, just that the machine you're sending from is on the Internet so you can make the HTTP request. Twilio offers that kind of service (and there are probably others these days), but I don't know what their pricing is like.
Reply
#5
I work on windows. I installed the library. But I want this code to work not on a computer, but on android. But I don't know how to do it.???
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Logstash - sending Logstash messages to another host in case of Failover in python Suriya 0 1,681 Jul-27-2021, 02:02 PM
Last Post: Suriya
  Reading Smartphone Battery Level via Bluetooth maxwell 1 2,190 Jun-17-2020, 12:48 AM
Last Post: Larz60+
  logging messages ahead of print messages vindo 6 3,214 Jun-18-2019, 02:45 PM
Last Post: vindo
  Importing photos from smartphone Robinbux 2 3,895 Apr-29-2017, 05:24 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020