Yes, exactly this.
You need to uncomment this line in cron/crontab:
#*/5 * * * * root *msg/process_sms_via_api
You also need to ensure that one of the cron modes will work:
http://www.web2py.com/examples/default/cron
Most notably, cron doesn't work with a Windows service currently (it
works fine when running on Windows in other modes, however).
Best Wishes,
Fran.
msg is the controller
process_sms_via_api is the function within the controller.
This is the web2py extensions to cron syntax:
http://www.web2py.com/examples/default/cron#extensions
F
Great - so no need to make any modifications?
It just worked?
> Due to there are two serer running(one is for admin), recipient will get
> two same messages.
I don't understand this - can you clarify?
> Be the way,the other method to send the sms is via the 3G modem.
> But there is driver problem in ZTE MF637 3.5G USB Modem card.
It doesn't work as an AT modem? :/
Compatible devices listed here:
http://eden.sahanafoundation.org/wiki/UserGuidelinesMsg#WhatHardwaredoIneedtosendSMS
F
> Be the way,the other method to send the sms is via the 3G modem.It doesn't work as an AT modem? :/
> But there is driver problem in ZTE MF637 3.5G USB Modem card.
Compatible devices listed here:
http://eden.sahanafoundation.org/wiki/UserGuidelinesMsg#WhatHardwaredoIneedtosendSMS
2010/8/5 Chao Lung Huang <regi...@gmail.com>:
> I had test the SMS Gateway ok.Great - so no need to make any modifications?
> Chinese Message is ok,too.
It just worked?
> Due to there are two serer running(one is for admin), recipient will getI don't understand this - can you clarify?
> two same messages.
It doesn't work as an AT modem? :/
> Be the way,the other method to send the sms is via the 3G modem.
> But there is driver problem in ZTE MF637 3.5G USB Modem card.
Compatible devices listed here:
http://eden.sahanafoundation.org/wiki/UserGuidelinesMsg#WhatHardwaredoIneedtosendSMS
I too use BlueTooth :)
> pyBluez is the Python module to make the bluetooth connection.
On Windows, I just have the Windows Bluetooth stack present the phone
as a modem to the OS - a virtual COM port.
I don't think we need to interface with the Python at all...although
perhaps Linux needs other parts of Bluez to present a TTYSx?
F