So, this looks interesting, and peer to peer, but I can't read code well enough to see if this is secure, and possible in case of emergency collapse with power for a while or some locations.
https://github.com/kristoffer-paulsson/angelos
https://github.com/kristoffer-paulsson/angelos