I want to have a portable battery that I can charge either with a solar panel, or with a wall outlet. I'm lazy, so I don't want to manually switch any cables to make this happen. Also, the goal of this is to have this in a laptop bag, so I'd like to use USB cables to move the power around if possible.
The solar panel I'm considering is something like this, or similar: https://www.amazon.com/dp/B017GQ7OEA/_encoding=UTF8?coliid=I2EY30UJZO7DZ0&colid=2HAJQ8D4NL2LX
I'd want to wire it together with some kind of wall-plug USB charger. I can work with just a USB in - as long as I know the proper rating to get.
Essentially I want to do what this user wanted: Combining multiple cables to increase current? (laptop charger)
Except instead of getting more current, I want to be able to charge with one or the other supply without changing any cables.
Now, if I'm not crazy, the VBUS and GND in a male/female/female USB cable are just wired together, so as long as one is supplying power (and the other one isn't exploding) then the male cable should be able to charge my battery pack and this is a good idea. But how do I keep from blowing up / melting power source A while power source B is operating? What ratings do I need to look for from either charger when all they need to do is not carry any current when they aren't plugged in/unfurled?