I have two python scripts using the same data source variables for reading the updated values in my raspberry pi 3, each with a while loop in it to detect any change in these variables. When I run both the scripts at the same time I get a JSON decode error but If I run them individually there is no problem. So I need to terminate a script before running other. Each script reads the value of a different variable and listens for a change in them.
I have two python scripts using the same data source variables for reading the updated values in my raspberry pi 3, each with a while loop in it to detect any change in these variables. When I run both the scripts at the same time I get a JSON decode error but If I run them individually there is no problem. So I need to terminate a script before running other. Each script reads the value of a different variable and listens for a change in them.