I made this and got it working well! 3D printed funnel, cup and holder, integrated a Wifi door contact (I used TPLink Tapo). The rocking of the cup, counts the “door open and close”, and you can do the maths to calculate amount of rainfall in mm.
So far so good!
I have found that the daily graphs are not correct - and I am stumped on the maths… “today” will show yesterday’s value. “Yesterday” seems to be a sum of the last 48 hours… day before that seems to be last 36 hours…