I have two DS18B120 1-Wire temperature sensors connected to my PI and working. I then also start a Flask server to stream video using this code.
Everything works fine individually but if I try to read the temp sensors after the video has been streaming for a few seconds, the sensors aren't found. In fact, both "28-xxxx" directories (under /sys/bus/w1/devices) disappear. Once I stop streaming the video the directories reappear again after a few seconds.
The issue is I need to asynchronous;y read the temperature values (using AJAX requests) while the video is also streaming. Obviously I can't get it to work this way.
Shouldn't this be doable or is it possible that I am overwhelming the PI? Any hints or workarounds would be appreciated.