TP4056 read solar input and batterystatus

Battery voltage is easy, and the only relevant thing.

Connect a 100k resistor between battery(+) and A0, and get it's analogue value.
With 100k in series with the onboard divider, 4.2volt should return an A/D value of 1023.
Leo..