Here it is in its permanent location:

I thought maybe the Pi was switching off the wifi as a power saving feature, I followed the instructions
here and it stayed connected for several days. I thought that had fixed it but today it was gone from the network again.
So I went and opened the enclosure and disconnected the pi from the power(I can't shut it down safely without SSH), I noted the green act light was flashing so it seemed to be doing something before I cut the power. I unplugged its usb stick and copied the time lapse pics onto my PC, they're time stamped so I know it took its last pic at 8:27 this morning.
I did try to connect to the pi with a network cable and a laptop running a DHCP server but nothing happened, although I can't remember how I'd set up the ethernet on the pi I think it still should have connected anyway. But would it do that without a reboot?
So I have no idea what's up with it, but here are some things of note:
The pi was pretty hot, mostly the metal of the USB slots.
I read the CPU temperature when I was able to connect to it and it was around 45c.
From what I understand the pi can't overheat as it lowers the CPU frequency when required in order to cool down and it was definitely on and seemed alive because of the green act light.
Could the wifi adapter dying/switching itself off/overheating cause the timelapse script to halt?
Could the wifi adapter dying/switching itself off/overheating cause the pi to crash?
At 8:27am it would have been probably 10c at the most outside so why would it overheat then and not yesterday when it was 23c outside?
I plugged the USB stick back into the pi and powered it up but just the red light showed, no green act light flashing, so I cut the power again. This could be because the OS on the SD card has become corrupted, or the pi is too hot(although I've sort of ruled that out), or maybe its the wifi dongle preventing it from booting(although that makes no sense).
Anyway I've left it for a bit to cool down so I'll see what happens when I power it up later.