I am working on a project at a company where I read the temperature of a machine with a raspberry pi. I have downloaded the necessary program and can use it through Wine.
In addition, I have made a python script that takes a screenshot of the screen every 10 seconds, cuts out the necessary cells, reads these values and saves them in a csv file.
Now I want to keep the raspberry pi there for several weeks to read the machine during this period. So far I have only tested it with a monitor and the program worked perfectly. Then I thought if I pull out the HDMI cable now, the program will continue to run and I can connect it to the machine. But when I pulled out the HDMI cable, the program no longer recognized a screen and only black screenshots were made.
Is there a way I can make the raspberry pi think that there is a monitor connected so that it continues to take screenshots of the program?