What the crate `time' did was simple enough to rewrite it easily
PumoPM successfuly runs now, displays a notification on low battery, warning on very low battery, and suspends the computer on critical battery level.
It is now possible to manually set the different levels with command-line arguments.