This is a solar controller which runs on a Raspberry Pi. The ultimate goal of this python script is to switch between your solar power and your city power seemlessly when the battery is dead.
To configure the ports, simply set values in the port config section of the code. Optional component also have an enabled variable allowing you to disable the feature.
More details to come!