by Лариса Г.
Rotates phone screen when its power cord is plugged while it is connected to a specified WiFi network.
The flow doesn't reset rotation if power cord temporarily unplugged without disconnecting WiFi so you can continue reading without interruption when going into another room.
To reset rotation just unplug the phone and disconnect from WiFi manually or use another script to disconnect WiFi when leaving current location.
For phones with power socket on the bottom.