![]() |
is it possible to send a text with alarmed?
as title i want to send a text message at a set time to 3 people,is this possible? if so how?
cheers snake |
Re: is it possible to send a text with alarmed?
first of all thats a great idea, because we can use this for holidays, for example i would like my phone to send a message to all my contacts saying 'merry xmas' 25 december, or happy new year or.....without having to send it manually .
if there was a way to send messages via xterm than i think that should be possible. |
Re: is it possible to send a text with alarmed?
Yes, I have a script that does it
In Alarmed: Select "Command execution" and put this command /path/to/sendsms.py PHONENUMBER "MESSAGE" sendsms.py contains this: Code:
#!/usr/bin/env python2.5 Maybe it contains unused functions, but it works |
Re: is it possible to send a text with alarmed?
cool man,can u supply it wil simple instructions?
|
Re: is it possible to send a text with alarmed?
Edited #3
Make shure sendsms.py has exec permissions chmod +x /path/to/sendsms.py |
Re: is it possible to send a text with alarmed?
so i save the script in a file called sendsms.py
save say in my docs so chmod +x/MyDocs/sendsms.py in alarmed? sorry am a bit of noob! |
Re: is it possible to send a text with alarmed?
Nop.
Save the file in MyDocs Then open x-term and type: chmod +x /home/user/MyDocs/sendsms.py If you want to try if the script works then in x-term type /home/user/MyDocs/sendsms.py YOURNUMBER "Test message" If you receive a message from yourself then it works |
Re: is it possible to send a text with alarmed?
ahh cool man, i got ya, next question
i saved the file (am at work using n900) and its saved as sendsms.py.text, how do i remove the txt from the name? |
Re: is it possible to send a text with alarmed?
in x-term:
mv /home/user/MyDocs/sendsms.py.txt /home/user/MyDocs/sendsms.py |
Re: is it possible to send a text with alarmed?
ok getting some were i think, other then i now get this
/home/user # /home/user/MyDocs/sendsms.py 07********* "hay" /bin/sh: /home/user/MyDocs/sendsms.py: Permission denied /home/user # |
Re: is it possible to send a text with alarmed?
in x-term:
sudo gainroot chmod +x /home/user/MyDocs/sendsms.py chown user:users /home/user/MyDocs/sendsms.py |
Re: is it possible to send a text with alarmed?
Quote:
/home/user is a better place for this. Maybe /home/use/bin or /home/user/scripts. (May need to create.) |
Re: is it possible to send a text with alarmed?
Yes I forgot that
I have all my scripts in /home/user/scripts |
Re: is it possible to send a text with alarmed?
I tried not to run it gives errors.
The problem is that not send any sms, because recipients do not receive them. Any ideas? |
Re: is it possible to send a text with alarmed?
Put in /usr/local/sbin
chmod to 755 in xterm: /usr/local/sbin/sendsms.py 08numeric**** "message" works for me. thanks all |
Re: is it possible to send a text with alarmed?
"sendsms.py" I have never worked
|
Re: is it possible to send a text with alarmed?
in xterm when i try to run it, its saying no such file or directory, this is how i ran it,
Went to the location of sendsms.py (/home/user/SendSchedSMS/)and typed the following ./sendsms.py numericnumber "Message" No Such File or Directory is what i get |
Re: is it possible to send a text with alarmed?
Quote:
best stick it in /usr/sbin maybe, and chmod 755 Someone else may have a better solution, but that works for me. |
Re: is it possible to send a text with alarmed?
how about e mails , cantbis be done with it .
|
Re: is it possible to send a text with alarmed?
Quote:
is the syntax right? ./sendsms.py <number> <message inside quotes> someone help!!! |
Re: is it possible to send a text with alarmed?
Quote:
should run it like this: /usr/local/sbin/sendsms.py <number> <message inside quotes> or /whatever/directory/you-put-it-in/sendsms.py <number> <message inside quotes> DId you chmod it to be executable? |
Re: is it possible to send a text with alarmed?
Hi,
I've tried the script. While it does run, it doesn't seem to send an sms. I've combined this script and the old script (pymaemosms or some such) into a script that shows some more debug info. When running it, it completes, but my sms doesn't show up (number formatted as +<countrycode><phonenumber>. Anyone knows what's going on or how I can troubleshoot some more? (You can use the --verbose argument to show some more details). Code:
#!/usr/bin/env python2.5 |
Re: is it possible to send a text with alarmed?
Quote:
Interesting, wonder whether that depends on your cellular operator or whether the script can be improved?!?!? |
Re: is it possible to send a text with alarmed?
Quote:
|
Re: is it possible to send a text with alarmed?
Quote:
Perhaps you need python which I got long ago by installing something that had a dependency on python. Am checking now, but I think I got it when I was working on advanced-clock-plugin. do you have a directory /usr/share/python ? if you do, then it is probably something else missing |
Re: is it possible to send a text with alarmed?
Quote:
the version is python 2.5 |
Re: is it possible to send a text with alarmed?
Quote:
|
| All times are GMT. The time now is 08:48. |
vBulletin® Version 3.8.8