Page 7 of 7 FirstFirst ... 567
Results 91 to 105 of 105

Thread: Отправка SMS-оповещений при помощи Google

  1. #91
    Подскажите установил как написано в 14 посте

    отправляю /opt/etc/calendarSMS/sendsms test

    вываливает
    /opt/etc/calendarSMS/calendarSMS.py: line 8: __author__: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 9: __username__: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 10: __password__: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 12: import: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 13: from: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 14: from: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 15: from: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 17: class: not found
    /opt/etc/calendarSMS/calendarSMS.py: line 18: syntax error: unexpected "("
    calendarSMS:

    Что это, как победить???

  2. #92

    500 - Internal Server Error (mod_fastcgi.c.1734) connect failed

    Доброго времени суток. Только не пинайте сильно.... Работало все нормально... Решил поставить google-sms-напоминалку. Как оказалось зря... Но, самое странное -перестали работать QuiXplorer, vnStat PHP - пишет 500 - Internal Server Error в логе вот это
    Code:
    2011-08-08 02:10:18: (mod_fastcgi.c.1734) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-0 
    2011-08-08 02:10:18: (mod_fastcgi.c.3027) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1 
    2011-08-08 02:10:21: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 1737 socket: unix:/tmp/php-fastcgi.socket-0 
    2011-08-08 02:10:21: (mod_fastcgi.c.3309) child exited, pid: 1737 status: 254 
    2011-08-08 02:10:21: (mod_fastcgi.c.3356) response not received, request sent: 1241 on socket: unix:/tmp/php-fastcgi.socket-0 for /ftp/index.php?, closing connection 
    2011-08-08 02:18:47: (mod_fastcgi.c.1734) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-0 
    2011-08-08 02:18:47: (mod_fastcgi.c.3027) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1 
    2011-08-08 02:18:48: (mod_fastcgi.c.2568) unexpected end-of-file (perhaps the fastcgi process died): pid: 2314 socket: unix:/tmp/php-fastcgi.socket-0 
    2011-08-08 02:18:48: (mod_fastcgi.c.3309) child exited, pid: 2314 status: 254 
    2011-08-08 02:18:48: (mod_fastcgi.c.3356) response not received, request sent: 1232 on socket: unix:/tmp/php-fastcgi.socket-0 for /ftp/index.php?, closing connection
    самое странное, что восстановление /opt из архива не помогла.... подскажите куда копать...
    RT-N66U Tomato Firmware 1.28.0000 MIPSR2-109 K26 USB AIO-64K
    WL-500W: 1.9.2.7-d-r2624 + huawei 353 - дачный интернет

  3. #93
    Не отправляется СМС через kyivstar.mobi
    Пишет

    root@ASUS root]$ /opt/etc/kyivstarSMS/sendsms hello world
    Traceback (most recent call last):
    File "/opt/etc/kyivstarSMS/kyivstarSMS.py", line 109, in <module>
    connect = SMTP(smtp_server)
    File "/opt/lib/python2.5/smtplib.py", line 244, in __init__
    (code, msg) = self.connect(host, port)
    File "/opt/lib/python2.5/smtplib.py", line 310, in connect
    raise socket.error, msg
    socket.error: (145, 'Connection timed out')


    Хотя раньше все работало
    Last edited by vlas_val; 16-09-2011 at 07:59.

  4. #94
    А как указать Календарь, в который записываются события, а то все пишется в календарь "Главный"
    Например создать календарь "Router" и в него все события и писать

  5. #95
    Присоединяюсь к предыдущему участнику темы! Неудобно немного, я пользуюсь календарем Гугла, наслаевается

  6. #96
    Quote Originally Posted by bugavka View Post
    Присоединяюсь к предыдущему участнику темы! Неудобно немного, я пользуюсь календарем Гугла, наслаевается
    Quote Originally Posted by Kvantos View Post
    А как указать Календарь, в который записываются события, а то все пишется в календарь "Главный"
    Например создать календарь "Router" и в него все события и писать

    Обновил скрипт calendarSMS.py

  7. #97
    Join Date
    Nov 2008
    Location
    Россия, Самара
    Posts
    4
    Делал все по инструкции, но работать не хочет
    Code:
    $ ./sendsms test
    calendarSMS: Error reminder0:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event0:local variable 'see' referenced before assignment
    Error reminder1:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event1:local variable 'see' referenced before assignment
    Error reminder2:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event2:local variable 'see' referenced before assignment
    Error reminder3:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event3:local variable 'see' referenced before assignment
    Error reminder4:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event4:local variable 'see' referenced before assignment
    Error reminder5:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event5:local variable 'see' referenced before assignment
    Error reminder6:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event6:local variable 'see' referenced before assignment
    Error reminder7:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event7:local variable 'see' referenced before assignment
    Error reminder8:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event8:local variable 'see' referenced before assignment
    Error reminder9:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event9:local variable 'see' referenced before assignment
    Error reminder10:'module' object has no attribute 'HTTPSConnection'
    Error Delete Event10:local variable 'see' referenced before assignment
    куда копать?

    upd.
    Погуглив, понял где проблема, доустановил python-openssl; всё работает
    Last edited by vrtx; 01-12-2012 at 08:01.

  8. #98
    Ребят настроил по ману все чудно работает спасибо автору
    прикрутил к мониторингу аплинков, скрипты отлично отрабатываются смс приходят (Когда интерфейс в дауне или апается).

    Тут в голове возникла идея смс оповещения о входе на рутер
    (после авторизации пользователя в смс приходил бы ip адрес авторизованного пользователя ну и время)
    Может кто что-либо подсказать в этом направлении что-нибудь
    (может технические выкладки какие есть) ?
    Спасиб еще раз.

  9. #99
    Приветствую! Может подскажите куда копать. Сыплет следующего рода ошибками:
    Code:
    Adding 1 minute reminder to event
    Error reminder9:{'status': 409, 'body': "<?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gCal='http://schemas.google.com/gCal/2005' xmlns:gd='http://schemas.google.com/g/2005'><id>http://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg</id><published>2012-12-13T19:20:03.000Z</published><updated>2012-12-13T19:20:03.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title type='text'>blala</title><content type='text'/><link rel='alternate' type='text/html' href='https://www.google.com/calendar/event?eid=YzEyY2g3ajJhZ3BlNjBrZW9xcjZxZXRhbWcgZnAyb241cTc1YXM4OTg0Ym9tMGwyZmJlMmtAZw' title='alternate'/><link rel='self' type='application/atom+xml' href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg'/><link rel='edit' type='application/atom+xml' href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg/63491109603'/><author><name>akunin73@gmail.com</name><email>akunin73@gmail.com</email></author><gd:comments><gd:feedLink href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg/comments'/></gd:comments><gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/><gd:where valueString=''/><gd:who email='fp2on5q75as8984bom0l2fbe2k@group.calendar.google.com' rel='http://schemas.google.com/g/2005#event.organizer' valueString='Router'/><gd:when endTime='2012-12-13T23:22:57.000+04:00' startTime='2012-12-13T23:21:57.000+04:00'/><gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/><gd:visibility value='http://schemas.google.com/g/2005#event.default'/><gCal:anyoneCanAddSelf value='false'/><gCal:guestsCanInviteOthers value='true'/><gCal:guestsCanModify value='false'/><gCal:guestsCanSeeGuests value='true'/><gCal:sequence value='0'/><gCal:uid value='c12ch7j2agpe60keoqr6qetamg@google.com'/></entry>", 'reason': 'Conflict'}
    Error Delete Event9:{'status': 409, 'body': "<?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gCal='http://schemas.google.com/gCal/2005' xmlns:gd='http://schemas.google.com/g/2005'><id>http://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg</id><published>2012-12-13T19:20:03.000Z</published><updated>2012-12-13T19:20:03.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title type='text'>blala</title><content type='text'/><link rel='alternate' type='text/html' href='https://www.google.com/calendar/event?eid=YzEyY2g3ajJhZ3BlNjBrZW9xcjZxZXRhbWcgZnAyb241cTc1YXM4OTg0Ym9tMGwyZmJlMmtAZw' title='alternate'/><link rel='self' type='application/atom+xml' href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg'/><link rel='edit' type='application/atom+xml' href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg/63491109603'/><author><name>akunin73@gmail.com</name><email>akunin73@gmail.com</email></author><gd:comments><gd:feedLink href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg/comments'/></gd:comments><gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/><gd:where valueString=''/><gd:who email='fp2on5q75as8984bom0l2fbe2k@group.calendar.google.com' rel='http://schemas.google.com/g/2005#event.organizer' valueString='Router'/><gd:when endTime='2012-12-13T23:22:57.000+04:00' startTime='2012-12-13T23:21:57.000+04:00'/><gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/><gd:visibility value='http://schemas.google.com/g/2005#event.default'/><gCal:anyoneCanAddSelf value='false'/><gCal:guestsCanInviteOthers value='true'/><gCal:guestsCanModify value='false'/><gCal:guestsCanSeeGuests value='true'/><gCal:sequence value='0'/><gCal:uid value='c12ch7j2agpe60keoqr6qetamg@google.com'/></entry>", 'reason': 'Conflict'}
    Мероприятия создаются, а вот оповещения не добавляются.
    Netgear WNR3500L V1 @532Mhz:3.0.6-r5110M
    [Ext. USB HDD Box+WD 200Gb SATA]
    [Lighttpd]+[vnstat]+[rrd]+[rTorrent]+[syslog-ng]+[mc]+[Tiny Tiny RSS]+[Accel-ppp]...

  10. #100
    Quote Originally Posted by kondrat View Post
    после: chmod +x /opt/etc/calendarSMS/calendarSMS.py в телнете решат эту проблему

    /opt/etc/calendarSMS/sendsms hello world
    /opt/etc/calendarSMS/sendsms: line 64: /opt/etc/calendarSMS/calendarSMS.py: not found
    calendarSMS:
    Эта проблема решается так:
    в файле calendarSMS.py правим первую строчку на то расположение python которое у вас в дистрибутиве.
    у меня например это
    Code:
    #!/usr/bin/python
    проверить где у вас лежит python можно так:
    Code:
    which python
    /usr/bin/python

  11. #101
    Code:
    calendarSMS: Calendar=g7u0anbo238epi15d6g@group.calendar.google.com
    CalendarURL=https://www.google.com/calendar/feeds/g7u0anbo238epi15d6g@group.calendar.google.com/private/full
    Error reminder0:No module named expat; use SimpleXMLTreeBuilder instead
    Error Delete Event0:local variable 'see' referenced before assignment
    Calendar=g7u0anbo238epi15d6g@group.calendar.google.com
    CalendarURL=https://www.google.com/calendar/feeds/g7u0anbo238epi15d6g@group.calendar.google.com/private/full
    Error reminder1:No module named expat; use SimpleXMLTreeBuilder instead
    Error Delete Event1:local variable 'see' referenced before assignment
    Calendar=g7u0anbo238epi15d6g@group.calendar.google.com
    CalendarURL=https://www.google.com/calendar/feeds/g7u0anbo238epi15d6g@group.calendar.google.com/private/full
    Error reminder2:No module named expat; use SimpleXMLTreeBuilder instead
    Error Delete Event2:local variable 'see' referenced before assignment
    доустановить модуль python-expat
    Asus WL-500gPv1 128RAM, 300Mhz, 2 inside USB, inside usb-flash 2Gb.
    Linux version 2.6.22.19 - 4 Dec 23 20:43:04 MSK 2012 1.9.2.7-rtn-r4772

  12. #102
    Quote Originally Posted by AkuNin View Post
    Приветствую! Может подскажите куда копать. Сыплет следующего рода ошибками:
    Code:
    Adding 1 minute reminder to event
    Error reminder9:{'status': 409, 'body': "<?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/2005/Atom' xmlns:gCal='http://schemas.google.com/gCal/2005' xmlns:gd='http://schemas.google.com/g/2005'><id>http://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg</id><published>2012-12-13T19:20:03.000Z</published><updated>2012-12-13T19:20:03.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title type='text'>blala</title><content type='text'/><link rel='alternate' type='text/html' href='https://www.google.com/calendar/event?eid=YzEyY2g3ajJhZ3BlNjBrZW9xcjZxZXRhbWcgZnAyb241cTc1YXM4OTg0Ym9tMGwyZmJlMmtAZw' title='alternate'/><link rel='self' type='application/atom+xml' href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg'/><link rel='edit' type='application/atom+xml' href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg/63491109603'/><author><name>akunin73@gmail.com</name><email>akunin73@gmail.com</email></author><gd:comments><gd:feedLink href='https://www.google.com/calendar/feeds/fp2on5q75as8984bom0l2fbe2k%40group.calendar.google.com/private/full/c12ch7j2agpe60keoqr6qetamg/comments'/></gd:comments><gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/><gd:where valueString=''/><gd:who email='fp2on5q75as8984bom0l2fbe2k@group.calendar.google.com' rel='http://schemas.google.com/g/2005#event.organizer' valueString='Router'/><gd:when endTime='2012-12-13T23:22:57.000+04:00' startTime='2012-12-13T23:21:57.000+04:00'/><gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/><gd:visibility value='http://schemas.google.com/g/2005#event.default'/><gCal:anyoneCanAddSelf value='false'/><gCal:guestsCanInviteOthers value='true'/><gCal:guestsCanModify value='false'/><gCal:guestsCanSeeGuests value='true'/><gCal:sequence value='0'/><gCal:uid value='c12ch7j2agpe60keoqr6qetamg@google.com'/></entry>", 'reason': 'Conflict'}
    Мероприятия создаются, а вот оповещения не добавляются.
    Присоединяюсь, перестали SMS приходить. В календаре создаются мероприятия в количестве от 3-5 штук сразу.

    Вобщем решил так:
    1) в файле calendarSMS.config нужно изменить параметр attempt:1
    теперь создается 1 мероприятие, а не 9 штук сразу.

    2) настроить уведомления Google как описано здесь: http://support.google.com/calendar/b...2527&ctx=topic
    Last edited by dmw; 01-02-2013 at 12:11.

  13. #103
    Join Date
    Jun 2009
    Location
    Smolensk
    Posts
    138
    работает отправка?
    А то стало вываливаться:
    Code:
    calendarSMS: 'module' object has no attribute 'HTTPSConnection'
    ('error sendsms ', RequestError({'status': 401, 'body': '<HTML>\n<HEAD>\n<TITLE>Authorization required</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Authorization required</H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': 'Authorization required'},))
    UPD
    Надо было доставить пакеты: python-expat, python-openssl
    Last edited by Omega; 10-09-2013 at 19:39. Reason: 2 posts merged
    ASUS RT-N56U [3.4.3.9-xxx]

  14. #104

    Как же всё-таки создавать события с уведомлением по СМС с помощью gcalcli?

    В gcalcli не реализована возможность выбора метода уведомления (об этом написано в TODO секции в начале скрипта). Хотя на уровне API это поддерживается. Но, тип уведомления можно изменить, слегка отредактировав код скрипта:
    • открываем gcalcli в любимом текстовом редакторе
    • ищем все вхождения слова 'popup'
    • заменяем его на 'sms'
    • ?????
    • тип уведомления у вновь созданных событий становится SMS!

  15. #105

    Перестали создаваться уведомления а также не отправляются HELP!

    Error reminder0:{'status': 403, 'body': '<HTML>\n<HEAD>\n<TITLE>Forbidden</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Forbidden</H1>\n<H2>Error 403</H2>\n</BODY>\n</HTML>\n', 'reason': 'Forbidden'}
    Error Delete Event0:local variable 'see' referenced before assignment

Page 7 of 7 FirstFirst ... 567

Similar Threads

  1. Подключаем USB HDD к роутеру
    By Hornet in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 3172
    Last Post: 31-08-2011, 12:03
  2. IDE Platte mit SATA Festplaten-Konvert anschliessen
    By spankingherr in forum German Discussion - Deutsch (DE)
    Replies: 0
    Last Post: 24-04-2009, 17:11
  3. Тормоза при подключении винта
    By Diz74 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 14
    Last Post: 15-08-2008, 09:07

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •