Zend certified PHP/Magento developer

How to create my own Peephole camera

If this is not the right area please suggest where to post. I want to build my own peephole camera. My apt won’t let me remove the peephole or and no video doorbells. I want to put a camera on the apt side and nothing on the outside. I have a regular circle peephole. I tried using a mobile phone and the results are good especially when I zoom in. I don’t need a viewer as I can use my phone. Can’t remove or modify the outside. Would prefer to see outside when not at home and motion sensing. Don’t have a computer running at home so if possible if, it works on its own. Open to ideas! Thanks!