Realtime reading data

27 views
Skip to first unread message

Sonia Ayachi

unread,
Jun 12, 2020, 8:22:58 AM6/12/20
to django...@googlegroups.com
how python / django can read the state of a sensor in real time? I would like to read the state of my PIR sensor in real time with python . Ajax does not work . Is there any solution ?

karan rathore

unread,
Jun 12, 2020, 10:06:10 PM6/12/20
to django...@googlegroups.com
You can use Django Channels and use WebSockets to connect. Also, you can integrate Django Channels with MQTT protocol

On Fri, Jun 12, 2020 at 5:52 PM Sonia Ayachi <ayachis...@gmail.com> wrote:
how python / django can read the state of a sensor in real time? I would like to read the state of my PIR sensor in real time with python . Ajax does not work . Is there any solution ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMLH%2Bfe%3D69R%3DnVDjnJSRP1N1x_K96j12Afs39TVrrzK1CQGM-w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages