I fractured my Patella very badly in November '16, borderline removing the Patella completely. I can completely sympathise with you regarding paid at night. It took a good 3 months before the pain at night started to subside. I was given Amitriptyline as well as codeine and paracetemol. I believe Amitriptyline is an anti depressant but is also given for pain relief, in a different dosage. I thoroughly recommend this drug, as it really helped, maybe you could ask your doctor to look into the possibility of prescribing it for you. I am now 4.5 months post surgery and things are getting better but very slowly. I am still on Amitriptyline but not Paracetemol or Codeine.
Walking gets easier but I find I have good days and not so good days. Sitting with my leg bent for anything more than 10 minutes and the top part of my knee starts to hurt. My OS says this is due to the K wire, which hopefully will come out in about 6 months time. I am going to be given a CT scan to make sure that the bone has completely fused. Unfortunately my OS says that an X-Ray is a 2D image of a 3D structure, so while it looks ok, he can't be 100% sure! Great.
Hang on in there, things will start to get better but listen to your body and don't try to do too much too soon. Very tempting.
Good luck and I hope this helps.