Wouldn't it be also simpler to solve the power issue? In this case using a battery pack in between would possibly buffer the outages

--

   Gerard Braad | http://gbraad.nl
   [ Doing Open Source Matters ]