Raspbian Is Spying On You Through My Window! (Raspberry with a camera)

I bought a Raspberry Pi 4 in 2021, and never had any use for it. That's not true anymore. BECAUSE...

Well... I also now possess a little camera just for this little computer. I built a crude setup with cardboard, string, tape, and of course the computer itself.. and also the remnant of the supposedly aluminum case the raspberry was in that I had to remove with pliers since the screws were so stuck inside (and also were extremely round, no screwdriver could hold them). Did you know that the creator of Elite (the game series) is the co-founder of Raspberry Pi Foundation?

Credits to Adam Kasiński for writing the javascript script that is used for this page to check for any file modifications to the picture.jpg, then if there were modifications compared to previous modification date it updates just for you to see without reloading the whole page and hopefully without wasting bandwidth that would be used if the page just tried to update the image all the time without even checking if any changes occurred first.

How long until this stupid setup fails, what do you think?

The raspberry first makes a very small 64x64 image and checks the average brightness of pixels in the sky to determine if it's day or night, then chooses the appropriate photo taking settings. For night time a brighter image is attempted that takes longer to develop. I found out that even at the early hours of 4 AM the night taking method is SO bright that a bright blue neon image comes out. Only at pure night (very dark) it is good. For day time, normal image settings are used.. whatever that is for the rpicam-still program. I do know that I use the ISO of 16000 though. Hopefully this method adapts to any month of the year with variable day/night cycles, that's what I wanted!

The page looks for a new image every ~27 seconds and the images are taken every minute (let's hope orange mobile internet survives, it should based on my little calculations). If there are no image updates, you should assume that there's no electricity. I know the Raspberry Pi 4 is overkill for this task, but it is the only one I have.

There is now an archive of pictures taken, see it here: https://wicix.jdcraftmc.org/cameraimages/

UPDATE, JULY 23, 2026: There was a chain of events caused by a wasp I tried to kill that ended with me dropping a phone onto the Pi from ~50 centimeters, causing the whole setup to be destroyed. It seems that on first glance there are no glaring issues. Hardware issues after such occurrences are very likely, of course. This all was part of a bigger event where five wasps all at once entered through my window. As revenge for destroying my setup, I burned some of them. I got the chance to freshen up the tape holding the camera. Let's hope it survives much longer.

image has not updated yet

Hey, you! Stop looking out my window!