While starting with Opencomputers scripting (and learning some lua),
I found out that while not much, there computers still need some power.
So here came my idea to build a powercheck script (deamon) to show my power level of the computer (or network) and be ready to save my files before the computer shuts down mid editing a script.
this version is only a visual aid for knowing your energy leven, executing some functions if the power is to low to continue aren't implemented.
not much, the openOS should be enough, and a valid computer with screen.
script & installation:
after downloading this script:
copy or move it to /etc/rc.d/<your chosen filename>
rc <yourchosenfilename without .lua> enable
once you reboot your system you should have an indicator of the power level in the right bottom corner of the screen.
hope this is usefull for someone