@kat you need something like this that has a solar charge controller that charges batteries and then uses the batteries to power the M5Stack through the USB.
@kat@Rop you need to create and M5ez project, create a text place holder and set the code to replace the text with the values. Hopefully @Rop will pick up the notification and help you out. My knowledge is more towards Uiflow