Open thonnycleuton opened 8 years ago
listenclosely-whatsapp is just a backend service for listenclosely. It works also with telegram.
I recommend you to start with listenclosely demo: https://github.com/jlmadurga/listenclosely/tree/master/demo Then configure in settings the message service backend to whatsapp. It is explained in dcos: https://listenclosely-whatsapp.readthedocs.org/en/latest/usage.html
Hi Jlmadurga, I'm almost there (I hope so) I've followed the steps according your docs, but I got the following error when I try to execute celery --app=demo_app.celery:app worker -P gevent
ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Any idea why it's happening? Cheers..
You need RabbitMQ installed as broker for celery. http://docs.celeryproject.org/en/latest/getting-started/brokers/index.html#broker-instructions
Ok, your tip really works and it's running. Now, I dunno what I have to do after the celery service being started. Which address I have to access to see it running. I've tried 127.0.0.1:5672 and nothing happened. I've tried also to access 127.0.0.1:8000 after to run both commands _- celery --app=demo_app.celery:app worker -P gevent & python manage.py runserver_ and I could access the Django site, but nothing like what I think your system is.
Really, I never asked help to do nothing in my entire life, that's the first time and that makes me embarrassed coz I'm totally lost at this project and thinking is missing too much information to make it done in my local server... so if u don't mind...
You should start the celery worker
celery --app=demo_app.celery:app worker -P gevent
Create some agents in Online state from django admin.
Then call the tasks, from the django web process or directly you can do from python manage.py shell
from listenclosely import tasks
tasks.listen.delay()
https://listenclosely.readthedocs.org/en/latest/usage.html
But I recommend you to understand first what is celery if you dont http://www.celeryproject.org/ http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html
Hey man, I've tried to run this project since 2 days. I dunno if it's coz I'm a noob in Django or anything else like that but I couldn't use it. I've done everything with the master project - The Listen closely - but I didn't understand how to use it properly. Do I need to install the listen closely lib first, I mean this project depends from the listen closely? Or do I need to integrate this project "listenclosely-whastapp" with listenclosely, maybe putting one into the another one? which steps can I follow to run this project? Thank you so much and congratulation for the initiative.