Also, I have a script which converts the time between pulses into a Wattage. I don’t know how accurate it is and it’s unlikely to be so, but it is cheap. I ran the script with extra Priority which helped with accuracy.
If an interfacer’s being made, happy to share the script. Converting time to wattage with the known imp/Wh value is all it does.
I didn’t add the callbacks btw, I only changed the while loop at the end so it didn’t use 100% CPU.
Optical Pulse Sensors are great for the price.