Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. S

    Web animations | A few questions?

    Thank you for the input. I need some time to read the whole tutorial and make some testings and experiments. Do you think, I can combine canvas with a basic picture, e.g. let's say the framing of the devices and with canvas insert the colors for the states? As I understand it correctly, I can...
  2. S

    Web animations | A few questions?

    Hi, I need help for a project, where states are to be mapped graphically, see the picture in the attachment. It is about the fact that when states and variables in javascript change, this should be displayed graphically. Until now I have done it so that there is a picture for all possible...
  3. S

    Python How to kill a thread?

    Fantastisc, thank you very much! I have tested it with your idea and it seems to work: #Before disconnecting Loop!!!!!!! MainThread Thread-4 Thread-5 After disconnecting from my websocket server, it seems no thread is running any more. def handleClose(self): self.thread_stop =...
  4. S

    Python How to kill a thread?

    Thank you, could you give me a minimal example, I am a bit overwhelmed with this problem? I didn't really want to use processes, as far as I've read, it's more complicated to implement than threading, unless you have an example that fits my problem? How could I start the loop outside the...
  5. S

    Python How to kill a thread?

    Hi, I want to kill / stop a thread at an event, within my websocket class, how can this be done? Will the same thread, that was opened when the connection was made, also be killed? import threading from threading import Thread import signal, sys, json import os import shutil import logging...
  6. S

    JavaScript How to update slider position via dynamic variable

    Ok, I have solved the problem, I had forgotten to synchronise the states cleanly via websocket. OldMan is right, in this point :)
  7. S

    JavaScript How to update slider position via dynamic variable

    Brilliant, a thousand thanks, that shifts the regulator. I'll just let it trigger via the wbsocket event, since data comes in periodically anyway. But one thing still doesn't work, when I reload the page, for example from another browser, the slider doesn't seem to be initialised. Only when I...
  8. S

    JavaScript How to update slider position via dynamic variable

    Is there also a way to initialise the slider when the page is called up? Or the variable tempinput? Somehow, when I look at it with two browsers and set a value in one with the slider, the variable is only updated properly when I also move the slider from the other browser. Of course it's event...
  9. S

    JavaScript How to update slider position via dynamic variable

    You are welcome to ask. It is an I/O (PLC) control APP that I am writing, with a python websocket backend. In the backend, the value is written to a sqlight database, which then runs various routines that control the heating regulation, for example. I want to be able to view and control the...
  10. S

    JavaScript How to update slider position via dynamic variable

    Hi, a websocket is already in use.:) Ok, please look at my last past, i have managed to update the variable through the websocket event but the slider does not change its position?
  11. S

    JavaScript How to update slider position via dynamic variable

    Ah thanks for the hint, at least I managed to update the tempinput variable via the socket event. However, the slider position is not updated. How could I do that concretely? // Set_Temp1 | Slide value comes back from thread2 | set_temp1: tempinput if ( data_array[0] [0] ===...
  12. S

    JavaScript How to update slider position via dynamic variable

    I have a slider, the position or the value of the slider is saved in a variable. But now I would like it to work the other way round, so that when the value of the variable changes, the position and the value of the slider should change dynamically. <h2>Temperature Controll</h2> <div...
Back
Top Bottom