I have a ready-made solution. I spent 3 weeks creating it and wrote detailed instructions.
If someone needs it, write here, I will translate it into English and send it.
I don't post it right away, because I need several hours to translate the instructions, perhaps this is no longer relevant...