How to start and stopp threads in Django/Channels while using websockets

2017-10-27 Thread 'matrix1900' via Django users
Hi , in my project, I want to use Django and Web sockets. The Solution is --> Channels. But I have a problem. How can I start and stop an external long running thread from inside Django. I don't want to start an separate worker via console. I want to start it inside Django (Maybe in Consume

Receive Websocket Message from extern task

2017-10-23 Thread 'matrix1900' via Django users
Hello together, how can I receive websocket messages form a extern python -task. I need a example to receive websocket messages from a defined group. I can send messages to a existing Websocket Group with: * from channels import Group* and function* Group('sensor').send({'text': 'Hello, world

Django and Background Tasks

2017-10-17 Thread 'matrix1900' via Django users
Hi, I want to use a Data Collector Process to receive data from a separate Source (Sensor Data, etc) and deliver new values via websocket to a client (Website). Steps to do: 1. User opens website : *page 01*, 2. Django receives a web socket message: *page01* from the user (routing, consume

Re: Django Websockets / Several Users on the Website

2017-10-13 Thread 'matrix1900' via Django users
do as much of be the filtering on the client side as > possible, if there is no security concern with publishing the values to a > user send the values to them. The client side code can ignore it if > necessary. > > > > On 13 Oct 2017 07:14, "'matrix1900' via

Re: Django Websockets / Several Users on the Website

2017-10-12 Thread 'matrix1900' via Django users
change. (Providing Live DATA) Am Donnerstag, 12. Oktober 2017 20:05:42 UTC+2 schrieb Andrew Godwin: > > > On Wed, Oct 11, 2017 at 3:02 AM, 'matrix1900' via Django users < > django...@googlegroups.com > wrote: > >> Hi together, >> >> I try to get s

Django Websockets / Several Users on the Website

2017-10-11 Thread &#x27;matrix1900&#x27; via Django users
Hi together, I try to get started with Django Channels. I have actually two questions: 1. I use web sockets with channels. I want to have for each frontend user which opens the website his own websocket channel without groups. I am not sure how does it works when several Users opens the websit

Re: Can I use Django Channels to solve this architectural prolem?

2017-10-09 Thread &#x27;matrix1900&#x27; via Django users
Hi, i read the article, because i have the same situation. Its not clear for me how to use the receive_many function outside Django. Its only possible to send message *Group('sensor').send({'text': 'Hello, world!'}) *from outside and receive it on the browser. But not to receive a message.

Using Django /Channels for polling complex sensor data

2017-10-09 Thread &#x27;matrix1900&#x27; via Django users
Hi, My project is to develop a Web Interface for a complex machine. - The web interface should be applied for maintaining and diagnostics. - The webserver should run on a embedded device. - On the embedded device a process which takes all the required data from the complex machine