OGame Automizer Development Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Get involved : If you really want to help the project, You can

- Help to write a detailed guide for OA

- OA web access (Web Programmer Wanted)

- 3 background images (Builder, Fleet scheduler and Hunter). It could be fun to have them. So if you have some interesting images, you can submit them to ogameautomizer (at) gmail [dot] com , Thanks

- Check buildings/techs/ships/defs translation in your Mather language (OA -> Translation Tab, just after [Ships] tag)

Author Topic: SMS via google calendar  (Read 2477 times)

0 Members and 1 Guest are viewing this topic.

chicosoft

  • Guest
SMS via google calendar
« on: October 15, 2009, 06:40:20 PM »

Hello Devil, what happend to this forum???

About the SMS via google calendar, i have found on the internet, a script that alerts users when they are being atacked with an SMS.

How? simple, it uses google calendar to send an sms with an alert. It makes a reminder in google calendar with that time and then google send an sms to my mobile with the message. Pretty cool, because it is free :D

Do you want the code? It is in javascript, it uses greasemonkey to work

Logged

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1,244
    • View Profile
Re: SMS via google calendar
« Reply #1 on: October 19, 2009, 09:33:41 PM »

I've checked gmail sms notification.
And the most easiest way is by forcing gmail to send a sms from your gmail account
1. By using python code :
source : http://thesteveblog.blogspot.com/2009/02/python-script-to-send-sms-via-gmail.html
Code: [Select]
#!/usr/bin/env python
import libgmail

stuff = libgmail.GmailAccount("me@gmail.com", "password")
myCellEmail = "1234567890@message.alltel.net"

stuff.login()
msg=libgmail.GmailComposedMessage(myCellEmail, "", "Hello World! From python-libgmail!")
stuff.sendMessage(msg)

2. Or by using gmail filtering :
source : http://healyourchurchwebsite.com/2007/10/15/how-to-use-gmail-aliases-to-send-yourself-text-notifications/

for sms gateways check here : http://www.notepage.net/smtp.htm

The problem is that it works well only with US providers.

For greasemonkey code it seems to just showing calendar and google chat in html frames, so it doesn't really add a calendar events by itself.
May be by tracing Android's request during the calendar synchronization we can get the method to add an event ... (by the way it's crypted = https)
Logged

chicosoft

  • Guest
Re: SMS via google calendar
« Reply #2 on: October 20, 2009, 03:15:41 PM »

i have that code in PHP, very simple and it is working...


The only thing that i have to do is having this PHP files working on a web server, and when i want it to send the sms, i just need to put this on my adress bar:

http://mywebsite.somedomain/sms.php?user=user@gmail.com&pass=password&texto=hello_world

Please note that you have to configure alerts by sms on gmail(free) and nothing else.
I have talked with the guy(he is spanish) that coded the php, he will give me the PHP files so i can use for m own purpose, im using he's site to send sms, and i want the files on my server.

You should integrate that in OA, that would work pretty well, and it is free.

About country sms, im from Portugal and i receive SMS with google :)
Logged

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1,244
    • View Profile
Re: SMS via google calendar
« Reply #3 on: October 20, 2009, 03:32:04 PM »

You had to start with that ;)

And what do you want from me ? Something like this :
1. Store the php script on OA Server
2. Write in OA trigger Tab the way to have the whole system works
Logged

chicosoft

  • Guest
Re: SMS via google calendar
« Reply #4 on: October 20, 2009, 07:44:46 PM »

lol,
i was wondering if you are not interested, because it is a cool feature to add on OA, in triggers section... :)

It is working fine for me, i just put the address in trigger bar.

yes, i was thinking that you could rewrite the trigger TAB so the system work automatic, and i could have the trigger address free for other things  ::)...
Logged

Devil's Hand

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1,244
    • View Profile
Re: SMS via google calendar
« Reply #5 on: October 20, 2009, 08:10:14 PM »

yes, i was thinking that you could rewrite the trigger TAB so the system work automatic, and i could have the trigger address free for other things  ::)...

Yes, just by adding a simple gmail sms configuration panel (with email address and password) and delete the panel with the text about sms services. But I need the agreement (and conditions) of the author in order to use the script.
Logged

chicosoft

  • Guest
Re: SMS via google calendar
« Reply #6 on: October 21, 2009, 02:34:16 PM »

hello, cool, you are going to rewrite ;D


The script is posted online by the autor:
http://userscripts.org/scripts/show/54749

It uses some libs under GPL, and the autor said to me that i can rewrite the code, and if i do so he will be glad to mencion his name.

I can give you the email of the autor, if you want he's agreement, or i can ask him :D
Logged
 

Page created in 0.102 seconds with 18 queries.