Page 6 of 7 FirstFirst ... 4567 LastLast
Results 76 to 90 of 105

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

  1. #76
    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:
    ты чтото непоставил,python setup.py install делал?
    Last edited by seregakot; 20-02-2011 at 20:23.

  2. #77
    Join Date
    Jun 2009
    Location
    Smolensk
    Posts
    138
    vassio, спасибо. Всё работает как по инструкции.
    ASUS RT-N56U [3.4.3.9-xxx]

  3. #78
    [KONDRAT@KONDRAT-WL gdata-2.0.13]$ python setup.py install
    -sh: python: not found

    А он есть:
    drwxr-x--- 6 102272 5000 4096 Nov 17 01:10 .
    drwxr-xr-x 3 KONDRAT root 4096 Feb 9 21:48 ..
    -rw-r----- 1 102272 5000 10947 Jul 8 2010 INSTALL.txt
    -rw-r----- 1 102272 5000 17715 Oct 30 00:42 MANIFEST
    -rw-r----- 1 102272 5000 1539 Nov 17 01:10 PKG-INFO
    -rw-r----- 1 102272 5000 1066 Jul 8 2010 README.txt
    -rw-r----- 1 102272 5000 34090 Nov 17 01:04 RELEASE_NOTES.txt
    drwxr-x--- 2 102272 5000 4096 Nov 17 01:10 pydocs
    drwxr-x--- 18 102272 5000 4096 Nov 17 01:10 samples
    -rwxr-x--x 1 102272 5000 3380 Nov 8 22:21 setup.py
    drwxr-x--- 4 102272 5000 4096 Nov 17 01:10 src
    drwxr-x--- 5 102272 5000 4096 Nov 17 01:10 tests
    -rw-r----- 1 102272 5000 62210 Oct 30 00:43 upload-diffs.py

  4. #79
    Quote Originally Posted by kondrat View Post
    [KONDRAT@KONDRAT-WL gdata-2.0.13]$ python setup.py install
    -sh: python: not found

    А он есть:
    Этими словами убедить роутер в том, что python есть не получится. Лучше скажите ему
    Code:
    $ ipkg install python

  5. #80
    [KONDRAT@KONDRAT-WL gdata-2.0.13]$ ipkg list | grep python
    ipython-common - 0.10.1-1 - An enhanced interactive Python shell
    mod-python - 3.3.1-2 - Mod_python is an Apache server module that integrates with the Python language.
    py-weatherget-doc - 0.4.0.1-2 - A command line based weather reporting tool written in python.
    py-wsgiref - 0.1.2-1 - Reference implementation of the python Web Server Gateway Interface specification.
    py24-cherrypy - 2.3.0-1 - A pythonic, object-oriented web development framework.
    py24-flup - 1.0.2-1 - A collection of python WSGI modules including those speaking AJP 1.3, FastCGI and SCGI.
    py24-formencode - 1.2.2-1 - A form generation and validation package for python.
    py24-mx-base - 3.1.3-1 - A collection of userful open source python packages from eGenix.com.
    py24-sabnzbd - 0.2.5-2 - A web-interface based binary newsgrabber written in python, with nzb file support.
    py25-cherrypy - 2.3.0-1 - A pythonic, object-oriented web development framework.
    py25-dbus-python - 0.83.0-2 - Python bindings to DBUS
    py25-epsilon - 0.5.12-1 - A small python utility package.
    py25-flup - 1.0.2-1 - A collection of python WSGI modules including those speaking AJP 1.3, FastCGI and SCGI.
    py25-formencode - 1.2.2-1 - A form generation and validation package for python.
    py25-ipython - 0.10.1-1 - An enhanced interactive Python shell
    py25-mx-base - 3.1.3-1 - A collection of userful open source python packages from eGenix.com.
    py25-nose - 0.11.4-1 - A discovery-based python unittest extension.
    py25-paramiko - 1.7.6-1 - ssh2 protocol for python.
    py25-sabnzbd - 0.2.5-2 - A web-interface based binary newsgrabber written in python, with nzb file support.
    py25-sqlobject - 0.15.0-1 - An object-relational mapper for python.
    py25-weatherget - 0.4.0.1-2 - A command line based weather reporting tool written in python.
    py25-webpy - 0.34-1 - A web framework for python that is as simple as it is powerful.
    py26-dbus-python - 0.83.0-2 - Python bindings to DBUS
    py26-epsilon - 0.5.12-1 - A small python utility package.
    py26-flup - 1.0.2-1 - A collection of python WSGI modules including those speaking AJP 1.3, FastCGI and SCGI.
    py26-formencode - 1.2.2-1 - A form generation and validation package for python.
    py26-ipython - 0.10.1-1 - An enhanced interactive Python shell
    py26-mx-base - 3.1.3-1 - A collection of userful open source python packages from eGenix.com.
    py26-nose - 0.11.4-1 - A discovery-based python unittest extension.
    py26-paramiko - 1.7.6-1 - ssh2 protocol for python.
    py26-sqlobject - 0.15.0-1 - An object-relational mapper for python.
    py26-weatherget - 0.4.0.1-2 - A command line based weather reporting tool written in python.
    py26-webpy - 0.34-1 - A web framework for python that is as simple as it is powerful.
    python - 2.5-1 - This is a package that sets up the default python.
    python24 - 2.4.6-2 - Python is an interpreted, interactive, object-oriented programming language.
    python25 - 2.5.5-2 - Python is an interpreted, interactive, object-oriented programming language.
    python26 - 2.6.6-1 - Python is an interpreted, interactive, object-oriented programming language.
    python27 - 2.7.1-1 - Python is an interpreted, interactive, object-oriented programming language.
    python3 - 3.1.3-1 - Python is an interpreted, interactive, object-oriented programming language.
    sabnzbdplus - 0.5.6-1 - A web-interface based binary newsgrabber written in python, with nzb file support.
    svn-py - 1.6.15-1 - python SWIG binding for subversion

    А он есть

  6. #81
    Quote Originally Posted by kondrat View Post
    [KONDRAT@KONDRAT-WL gdata-2.0.13]$ ipkg list | grep python
    ipython-common - 0.10.1-1 - An enhanced interactive Python shell
    ...
    svn-py - 1.6.15-1 - python SWIG binding for subversion

    А он есть
    А не убедил Лучше посмотри так:
    Code:
    $ ipkg list_installed | grep python

  7. #82
    Верно
    [KONDRAT@KONDRAT-WL root]$ $ ipkg list_installed | grep python
    -sh: $: not found

    ipkg install python - норма

    python setup.py install - норма

    /opt/etc/calendarSMS/sendsms hello world

    calendarSMS: Incorrect username or password
    ('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'},))
    [KONDRAT@KONDRAT-WL gdata-2.0.13]$

    calendarSMS.config есть

    [sendsms]
    user: <ХХХХХХХХХХХХ@gmail.com>
    pw: ХХХХХХХХХХХ
    starttime: 120
    endtime: 180
    remindertime: 1

  8. #83

    activSMS

    Quote Originally Posted by vassio View Post
    Т.к. у меня киевстар , была необходимость отправлять смс уведомления о закаченных торрентах
    Привет. Хотелось бы как ты подогнать под себя такой скрипт. Про нашего великого и могучего оператора Kcell и Activ (Казахстан) гугл не знает.

    У нас имеется услуга SMS e-mail. Можно отправить письмо с любого адреса на номер вида номер_телефона@sms.kcell.kz и он придет в виде SMS.

    Хотелось бы загрузке роутера и при завершении закачки rtorrent уведомил об этом на почту номер_телефона@sms.kcell.kz. Подскажите пожалуйста как можно все это грамотно организовать.
    До этого смски приходили. Роутер настроен по учебнику для чайников.
    Last edited by bekkuz; 11-03-2011 at 17:29.

  9. Quote Originally Posted by akm2008 View Post
    Почему-то ругается на ntpclient хотя установлено

    Code:
    02:38:33 18-02-2011 (notice|user|root) root: sendsms:Отправляем информацию об успешной загрузке
    02:38:41 18-02-2011 (notice|user|root) root: calendarSMS:  Synchronizing time
    02:38:41 18-02-2011 (notice|user|root) root: calendarSMS: Не установлен ntpclient время не будет синхронезировано
    02:38:41 18-02-2011 (notice|user|root) root: calendarSMS: стартуем отправку SMS
    02:38:46 18-02-2011 (notice|user|root) root: calendarSMS: New single event inserted: http://www.google.com/calendar/feeds/default/private/full/p110ielou56mb3g9lhah9qgub8 \011Event edit URL: http://www.google.com/calendar/feeds/default/private/full/p110ielou56mb3g9lhah9qgub8/63433669125 \011Event HTML URL: http://www.google.com/calendar/event?eid=cDExMGllbG91NTZtYjNnOWxoYWg5cWd1YjggNTY1NDgxMEBt Adding 1 minute reminder to event
    02:38:46 18-02-2011 (notice|user|root) root: calendarSMS: Не установлен ntpclient время не будет синхронезировано calendarSMS: New single event inserted: http://www.google.com/calendar/feeds/default/private/full/p110ielou56mb3g9lhah9qgub8 Event edit URL: http://www.google.com/calendar/feeds/default/private/full/p110ielou56mb3g9lhah9qgub8/63433669125 Event HTML URL: http://www.google.com/calendar/event?eid=cDExMGllbG91NTZtYjNnOWxoYWg5cWd1YjggNTY1NDgxMEBt Adding 1 minute reminder to event

    Получается только у меня ругается ???

  10. #85
    Quote Originally Posted by akm2008 View Post
    Получается только у меня ругается ???
    у меня тоже ругается но смс идут нормально

  11. #86
    Вставил в rtorrent отправку смс по завершению задания. Однако в логах пишет вот такое:
    Code:
    ---
    ^@/opt/etc/calendarSMS/sendsms Торрент Сойер Роберт Дж. Вспомни, что будет 2010 closed
    ^@calendarSMS: (8, 'EOF occurred in violation of protocol')
    ('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 4$
    И смс не приходят, задача не создается.
    Если набрать в консоли
    Code:
    /opt/etc/calendarSMS/sendsms Торрент Сойер Роберт Дж. Вспомни, что будет 2010 closed
    то смс приходит.


    Кстати если зайти под p2p, то отправка не работает. Выдает выше написанное.
    Last edited by LazyRaven; 02-04-2011 at 19:42.
    Asus RT-N56U (3.0.3.5-058)

  12. #87
    Почему-то перестали приходить СМСки от Гугля. В календаре появляется, все как положено, а СМС не приходит. пробовал 180-240 - 2 в настройках прописывать, стояло 120-180 - 1. Даже телефон переприкрепил...
    У всех работает, или только я в гугле забанен?
    Подозрение, что они там чего-то с часовыми поясами перенамудрили.
    Еще подозрение - календать, контакты, звонки и смс у меня синхронизируются в календарь и из календаря на телефон
    Last edited by Taiser; 07-04-2011 at 11:19.
    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

  13. Quote Originally Posted by Taiser View Post
    Почему-то перестали приходить СМСки от Гугля. В календаре появляется, все как положено, а СМС не приходит. пробовал 180-240 - 2 в настройках прописывать, стояло 120-180 - 1. Даже телефон переприкрепил...
    У всех работает, или только я в гугле забанен?
    Подозрение, что они там чего-то с часовыми поясами перенамудрили.
    Еще подозрение - календать, контакты, звонки и смс у меня синхронизируются в календарь и из календаря на телефон
    Присоединяюсь Перестало отправятся
    В календаре все прописывается смс не приходит

    Code:
    [root@RT-N16 root]$ /opt/etc/calendarSMS/sendsms hello world
    calendarSMS: New single event inserted: http://www.google.com/calendar/feeds/default/private/full/a3stobok4ptkaj936a66aphg5o
            Event edit URL: http://www.google.com/calendar/feeds/default/private/full/a3stobok4ptkaj936a66aphg5o/63443430198
            Event HTML URL: http://www.google.com/calendar/event?eid=YTNzdG9ib2s0cHRrYWo5MzZhNjZhcGhnNW8gNTY1NDgxMEBt
    Adding 1 minute reminder to event
    Error reminder0:{'status': 302, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has moved <A HREF="http://www.google.com/calendar/feeds/default/private/full/a3stobok4ptkaj936a66aphg5o/63443430198?gsessionid=AkA51ksejn7377qWc6TNaA">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Redirect received, but redirects_remaining <= 0'}
    ('error sendsms ', RequestError({'status': 302, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has moved <A HREF="http://www.google.com/calendar/feeds/default/private/full/a3stobok4ptkaj936a66aphg5o/63443430198?gsessionid=SWcrxxBuTg5qCJJ56hpdPg">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Redirect received, but redirects_remaining <= 0'},))
    [root@RT-N16 root]$
    Last edited by akm2008; 11-06-2011 at 00:06.

  14. #89
    Join Date
    Jun 2009
    Location
    Smolensk
    Posts
    138
    такая же байда. Правда и мероприятие не создается. Хотя в логе никакой ошибки нет
    Хотя, не, виноват, не тот аккаунт посмотрел. Просто не приходят смс на телефон.
    Причем если вручную добавить событие через браузер, то приходит.
    Last edited by chyuliy; 14-06-2011 at 07:47.
    ASUS RT-N56U [3.4.3.9-xxx]

  15. #90
    Нормально работает (на МТС Украина).
    Asus RT-N16: Transmission, Dlengine, прошивка от энтузиастов, Google SMS, Asus O!Play HDP-R1: прошивка от HD2, moServices, IXtreamer

Page 6 of 7 FirstFirst ... 4567 LastLast

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
  •